Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.

Visit our new games list, blog aggregator, and IRC channel.
Activation problem? Email pytom@bishoujo.us.
It is currently Mon Aug 29, 2016 5:33 pm

All times are UTC - 5 hours [ DST ]


Forum rules


This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like, and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Focus_mask issues part 2
PostPosted: Fri Feb 17, 2012 2:16 pm 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3885
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Twitter: @pcmacgames
Tumblr: winterwolvesgames
Haha sorry for the thread name, but reading the other thread remembered me I had a problem too. I defined a screen with LOTS of BIG imagebuttons with focus mask:
Attachment:
campsite.jpg
campsite.jpg [ 188.91 KiB | Viewed 512 times ]

Here works, is a bit slow but works, but on Aleema computers it doesn't recognize the focus mask at all (so even the transparent part of the sprites get focus). I am not sure what is the reason, she had problems before the 6.13.8 version (game was crashing) so maybe she doesn't have a videocard with lots of VRAM or something else.
Just thought to point out since is very different behavior using same code on two PCs.

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Mon Feb 20, 2012 2:57 pm 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3885
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Twitter: @pcmacgames
Tumblr: winterwolvesgames
Ok I was able to reproduce the bug even on my PC, is quite simple:
- if you use OpenGL the focus mask works correctly
- if you use DirectX/Angle, the focus mask is ignored and even the transparent part of the image get focus

so I think I just found a bug or at least very different behavior from GL/DX versions.

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Fri Feb 24, 2012 3:02 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 14121
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Twitter: @renpytom
Github: renpytom
I will be investigating this over the weekend.

_________________
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Code > Drama


Top
 Profile Send private message  
 
PostPosted: Fri Feb 24, 2012 4:07 pm 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3885
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Twitter: @pcmacgames
Tumblr: winterwolvesgames
Thanks! :)

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 1:57 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 14121
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Twitter: @renpytom
Github: renpytom
I figured out and fixed the problem. Basically, I was using GL_BYTE, rather than GL_UNSIGNED_BYTE. GL_BYTE is basically useless, as it represents 128 rather than 256 colors per channel, so they removed it from OpenGL ES. The code, which is really simple, worked with the smaller range - but it didn't work on ES, since the call totally failed.

Took me a couple days to track it down, but it's gone now.

_________________
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Code > Drama


Top
 Profile Send private message  
 
PostPosted: Thu Mar 01, 2012 3:36 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3885
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Twitter: @pcmacgames
Tumblr: winterwolvesgames
Cool, one less bug to worry about :)

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group