Rincevvind Posted May 4, 2014 Share Posted May 4, 2014 (edited) How to get this parameters in xml files for tex?i am talking about things like<Element name="mactusk.tex" u1="0.250244140625" u2="0.312255859375" v1="0.62548828125" v2="0.74951171875" />how to calculate this u1, u2, v1, v2? for example i made 1 png file with few image parts on it, what step is next? Already tired to create pairs of tex and xml files for every new image. Edited May 4, 2014 by Rincevvind Link to comment https://forums.kleientertainment.com/forums/topic/35919-texture-atlas-or-whatever-its-called/ Share on other sites More sharing options...
Rincevvind Posted May 7, 2014 Author Share Posted May 7, 2014 shameless bump! Link to comment https://forums.kleientertainment.com/forums/topic/35919-texture-atlas-or-whatever-its-called/#findComment-472755 Share on other sites More sharing options...
simplex Posted May 7, 2014 Share Posted May 7, 2014 For more info, see this. Link to comment https://forums.kleientertainment.com/forums/topic/35919-texture-atlas-or-whatever-its-called/#findComment-472773 Share on other sites More sharing options...
Rincevvind Posted May 7, 2014 Author Share Posted May 7, 2014 (edited) cool thxbut wait, i have to calculate this values manually? so actually its a rectangle with lower left corner as (x1/width,y1/height) and right upper as (x2/width,y2/height) ?am i right? Edited May 7, 2014 by Rincevvind Link to comment https://forums.kleientertainment.com/forums/topic/35919-texture-atlas-or-whatever-its-called/#findComment-472792 Share on other sites More sharing options...
simplex Posted May 7, 2014 Share Posted May 7, 2014 cool thx but wait, i have to calculate this values manually? Yes, but in almost every case what you want is (0, 0) as the bottom left corner and (1, 1) as the top right corner. so actually its a rectangle with lower left corner as (x1/width,y1/height) and right upper as (x2/width,y2/height) ? am i right? Yes. Link to comment https://forums.kleientertainment.com/forums/topic/35919-texture-atlas-or-whatever-its-called/#findComment-472803 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now