Arkathorn Posted January 13, 2016 Share Posted January 13, 2016 I need to use a custom graphic for an 'ImageButton' widget, so I need to make an atlas for it. Could someone detail the process? I've been fiddling with it, but it seems more efficient to ask the forums. Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/ Share on other sites More sharing options...
Mobbstar Posted January 13, 2016 Share Posted January 13, 2016 Atlas, huh? How familiar are you with XML? Did you take a look at the API docs? Among the little content there's a page specifically about image atlases. Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-708557 Share on other sites More sharing options...
Arkathorn Posted January 14, 2016 Author Share Posted January 14, 2016 I assumed as much. I didn't realize about the vertical inversion, or the clipping compensation. Thanks for your help! Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-708754 Share on other sites More sharing options...
Arkathorn Posted January 14, 2016 Author Share Posted January 14, 2016 What are the potential reasons a specific texture's cursor collision would not work? The widget functions when using the default textures, but not the custom ones. Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-708995 Share on other sites More sharing options...
Mobbstar Posted January 15, 2016 Share Posted January 15, 2016 15 hours ago, Arkathorn said: What are the potential reasons a specific texture's cursor collision would not work? The widget functions when using the default textures, but not the custom ones. Odd, I thought Image widgets simply use a hitbox rectangle based on the given dimensions. (e.g. if I select a texture using the dimensions 25x30 then the hitbox would be 25x30 too) I don't mess with widgets a lot, so don't take my word for it! Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-709377 Share on other sites More sharing options...
Arkathorn Posted January 18, 2016 Author Share Posted January 18, 2016 On 1/15/2016 at 9:40 AM, Mobbstar said: Odd, I thought Image widgets simply use a hitbox rectangle based on the given dimensions. I'm pretty sure it's based on alpha pixels. Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-710733 Share on other sites More sharing options...
Arkathorn Posted January 27, 2016 Author Share Posted January 27, 2016 Perhaps it's that TEX subsidiaries of atlas files must also be powers of two? Is this true? Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-714340 Share on other sites More sharing options...
Kzisor Posted January 28, 2016 Share Posted January 28, 2016 On 1/27/2016 at 9:31 AM, Arkathorn said: Perhaps it's that TEX subsidiaries of atlas files must also be powers of two? Is this true? If you're running on Windows you can use the following application which will take all the guess work out of it. The program allows you to try out several different configurations for the atlas/texture file to determine which is best for your use. Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-714793 Share on other sites More sharing options...
Arkathorn Posted January 28, 2016 Author Share Posted January 28, 2016 Nice, thanks! Link to comment https://forums.kleientertainment.com/forums/topic/62385-custom-atlases/#findComment-714823 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