Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Atlas Converter Utility #218

Open
1 of 4 tasks
ShinyHobo opened this issue Sep 20, 2023 · 2 comments
Open
1 of 4 tasks

Enhance Atlas Converter Utility #218

ShinyHobo opened this issue Sep 20, 2023 · 2 comments
Labels
enhancement New feature or request priority Top of my todo list

Comments

@ShinyHobo
Copy link
Owner

ShinyHobo commented Sep 20, 2023

@ShinyHobo ShinyHobo added the enhancement New feature or request label Sep 20, 2023
@ShinyHobo ShinyHobo changed the title Add atlas sheet generator to Atlas Converter tool Add atlas lsx generator to Atlas Converter tool Sep 20, 2023
@ShinyHobo ShinyHobo changed the title Add atlas lsx generator to Atlas Converter tool Enhance Atlas Converter Utility Sep 29, 2023
@Padme4000
Copy link

Padme4000 commented Nov 14, 2023

okay now I've made 3 custom atlases. this helped a ton, this is what I found:

edit: for clarity this is the size of the atlas

            <node id="TextureAtlasIconSize">
                <attribute id="Height" type="int32" value="150"/>
                <attribute id="Width" type="int32" value="150"/>
            <node id="TextureAtlasTextureSize">
                <attribute id="Height" type="int32" value="2048"/>
                <attribute id="Width" type="int32" value="2048"/>

like the example in the spreadsheet so 13 icons across.

for top left icon it was correct as:

                <attribute id="U1" type="float" value="0.0"/>		
                <attribute id="U2" type="float" value="0.0732421875"/>	   
                <attribute id="V1" type="float" value="0.0"/>	   
                <attribute id="V2" type="float" value="0.0732421875"/>

for second icon on top row

                <attribute id="U1" type="float" value="0.0732421875"/>		
                <attribute id="U2" type="float" value="0.146484375"/>	   
                <attribute id="V1" type="float" value="0.0"/>	   
                <attribute id="V2" type="float" value="0.0732421875"/>	

V1 and V2 should always remain the same for its row. But U1 and U2 should always increase by the first value you have in U2. So each move to the right adds 0.0732421875 to U1 and U2.

Still need to test for row two you but going by this I think it would add 0.0732421875 to V1 and V2 and then follow same pattern as Row 1 for U1 and U2

@Padme4000
Copy link

Padme4000 commented Apr 12, 2024

because I forgot to add my findings for Row 2:

For doing down a row 0.0732421875 was added to V1 + V2

Row 2 Image 1

                <attribute id="U1" type="float" value="0.0"/>		
                <attribute id="U2" type="float" value="0.0732421875"/>	   
                <attribute id="V1" type="float" value="0.0732421875"/>	   
                <attribute id="V2" type="float" value="0.146484375"/>

Row 2 Image 2 and once a new row repeats the each move to the right adds 0.0732421875 to U1 and U2

                <attribute id="U1" type="float" value="0.0732421875"/>		
                <attribute id="U2" type="float" value="0.146484375"/>	   
                <attribute id="V1" type="float" value="0.0732421875"/>	   
                <attribute id="V2" type="float" value="0.146484375"/>	

@ShinyHobo ShinyHobo added the priority Top of my todo list label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority Top of my todo list
Projects
None yet
Development

No branches or pull requests

2 participants
  翻译: