Lemma Soft Forums

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


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email pytom@bishoujo.us.
It is currently Thu Nov 27, 2014 12:11 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. 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: 3714
Completed: Too many! See my homepage
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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 438 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: 3714
Completed: Too many! See my homepage
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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: 12275
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004
Code > Drama
(When was the last time you backed up your game?)
"The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; who knows the great enthusiasms, the great devotions and spends himself in a worthy cause; who at the best, knows in the end the triumph of high achievement, and who, at worst, if he fails, at least fails while daring greatly; so that his place shall never be with those cold and timid souls who know neither victory or defeat." - Theodore Roosevelt


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: 3714
Completed: Too many! See my homepage
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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: 12275
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.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004
Code > Drama
(When was the last time you backed up your game?)
"The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming; who knows the great enthusiasms, the great devotions and spends himself in a worthy cause; who at the best, knows in the end the triumph of high achievement, and who, at worst, if he fails, at least fails while daring greatly; so that his place shall never be with those cold and timid souls who know neither victory or defeat." - Theodore Roosevelt


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: 3714
Completed: Too many! See my homepage
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
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]


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