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

Atlas Generator by display list order #2

Open
neelts opened this issue Jul 2, 2013 · 5 comments
Open

Atlas Generator by display list order #2

neelts opened this issue Jul 2, 2013 · 5 comments
Assignees

Comments

@neelts
Copy link

neelts commented Jul 2, 2013

So without ordering atlases generated randomly and then switching between atlases cause many unwanted drawcalls.
Is it possible to generate atlases by display list order? So if one atlas is not enough for one set generator puts only topmost objects to the next.

@gilamran
Copy link
Collaborator

gilamran commented Jul 2, 2013

Can you please give a deeper example of your problem and the suggest solution?

@neelts
Copy link
Author

neelts commented Jul 2, 2013

order

I think we need to change RectanglePacker somehow, so it fills atlases by display tree depth

@neelts
Copy link
Author

neelts commented Jul 2, 2013

Sorry, 2 drawcalls in "After"

@gilamran
Copy link
Collaborator

gilamran commented Jul 2, 2013

This is not so easy to implement, because we can't know for sure what art will fit where...
We can try to do groups that must (If can) be on the same texture atlas, these groups will be all the same Display-Tree children.

Putting that into your example: 1,2,3 will be on the same group/atlas (If they fit)

I'll think about it.

@ghost ghost assigned rotium Jul 2, 2013
@neelts
Copy link
Author

neelts commented Jul 2, 2013

Thank you! Love your framework, it saves so much time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants