View Full Version : mode9/GLES question
vHaB
20th February 2009, 07:56 PM
Does anyone know what the UV value for a GLESSSprite2D block actually does?
From fooling with it it seems to be related to how the image gets clipped when it renders, but I can't figure out how the values work.
Example:
<Object>Type="GLESSprite2D"
<Property> Name=UV Value="X=0 Y=0 Width=24990 Height=11730"
<Property> Name=Center Value="X=0 Y=-28 Z=0"
<Property> Name=Instance Name Value="AlarmTab"
the 24990 and 11730 are the numbers I'm talking about.
Anyone? Bueller? Anyone?
NisseDILLIGAF
20th February 2009, 08:14 PM
I think it's like this...
http://forum.xda-developers.com/attachment.php?attachmentid=159237&stc=1&d=1235157147
But the values has to be recalculated...
24990 and 11730 is the wrong values...
I think u should have asked this in the m9editor thread and not started a new one.... :rolleyes:
vHaB
20th February 2009, 09:06 PM
I think it's like this...
http://forum.xda-developers.com/attachment.php?attachmentid=159237&stc=1&d=1235157147
But the values has to be recalculated...
24990 and 11730 is the wrong values...
I think u should have asked this in the m9editor thread and not started a new one.... :rolleyes:
Yeah but it's not really related to the editor itself. :D
I got those values because I noticed on a 256x256 image, the UV values were both 65280, which is 256 x 255. So I was hoping it was just that simple. If they are used like you say, what are the min/max values, and where are they measured from? The parent group of the group being edited?
NisseDILLIGAF
20th February 2009, 09:50 PM
Yeah but it's not really related to the editor itself. :D
I got those values because I noticed on a 256x256 image, the UV values were both 65280, which is 256 x 255. So I was hoping it was just that simple. If they are used like you say, what are the min/max values, and where are they measured from? The parent group of the group being edited?
I think its where to 'cut' the image... what to show...
It was some time ago i did this.. so you have to experiment to figure out exactly what/where it goes :)
To calculate the big numbers use the hex values...
I use windows calculator for hex converting... Or I used to do it before m9editor :D
get the hex value (C8)
using the 'hex' button in winCalc type C8
Now press 'Dec', u get 200
If the hex value looks like this (B5FF) Then it's a negative value
In hexmode in wincalc... reverse the order of the hex (FFB5)
Press Dec and u get 65461
Now take 65461-65536 and u get -75 (always 65536)
Thanx to mun_rus for teaching me that! :)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.