yeah this is exactly what i do
i create a vertex list for each texture so that i am able to just swap
out the textureregion for animation and the coords for movement. i
think everything works now as expected and fast too so i dont think
that i still do much wrong ;)
but since i want to fill the textures my own for this reason it would
be nice to know how far it is reasonable to go for the texture size.
the maximum on my hardware seems to be 2048x2048 but what is a save
value on even five year old gfx cards?
i very much look forward to your pyweek contribution so please let me
be no hindrance :) since you cooperate with biccy again i'm very eager
to see her nice artwork, "make me" was one of the code pieces i
learned from the most so far!
cheers
josch

On Sep 14, 11:27 am, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On 9/14/08, josch <[EMAIL PROTECTED]> wrote:
>
>
>
> >  okay i got the trick.
> >  to do a vertex_list.delete() and batch.add() for each movement is no
> >  problem as long as one does not pack each tile into its own vertex
> >  list so that delete() and batch.add() are called very often (this
> >  seems much overhead) but organizes all tiles with the same texture in
> >  one vertex list that is added with one batch.add() per texture used to
> >  draw the scene.
>
> If a vertex list contains only tiles with the same texture, then you
> don't need to remove/add it from/to the batch just to change texture;
> just change the texture on the vertex list's group.
>
> Forgive me if I misunderstand; I'm not entirely following your
> description, and am a bit fuzzy headed after PyWeek to be reading
> source code.
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" 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/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to