Hi. I am reading the book by Mario Zechner and am on Chapter 8 which 
discusses Sprite Batching. It is relatively straight forward when dealing 
with OpenGL 1.1 but I am trying to write the code using shaders and OpenGL 
2. I am quite confused though as the matrix needs to be updated for the 
positions and sent to the shader but his code doesn't deal with shaders and 
I am not getting anything appearing on the screen. Something isn't right. I 
read on this page that you should send an array of matrices to the shader 
at each update:
 
http://antonholmquist.com/blog/sprite-batching-opengl-es-2-0/
 
But this means you can only send a maximum of 24 sprite positions with each 
update. That isn't good enough. Mario's code is sending 100 sprites every 
frame, not 24. Surely it should be easier under OpenGL 2 and not more 
complicated. Anyone got any advice?
 
Steve

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to