still can not understand why this does not work here.
On Sep 25, 12:29 pm, "RB[0]" <
roeb...@gmail.com> wrote:
> If you will note:
> Lines 84-99 are changing the texture on any object in the "to_swap" list.
> In the loop, it specifically checks if it is a mesh (if isinstance(i,
> pyggel.mesh.BasicMesh)) and then updating the material that way.
> What you need to do, is exactly what that is doing - create a new Material -
> but assign it a texture, so:
> swap_material.texture = some_texture
> then follow the steps in line 90-95 and it *should* work - been a long time
> since I did this.
> But basically, what it is doing is setting up a list of swap_materials, and
> in the loop every few seconds it is swapping between the original texture
> and the swap texture.
>
> You could also do like what is happening on lines 124-130 - which is
> actually a better idea, but hey, didn't see that til now... LOL
> Basically, it is looping through the objs in the mesh, and assigning them a
> new texture when you press the spacebar...
>
> Hope that helps! :)
>
>
>
>
>
>
>
> On Sun, Sep 25, 2011 at 8:54 AM, Gemayel Lira <
gemayell...@gmail.com> wrote:
> > I am using the version 0.08-alpha4c as an example I will use the
> > example file test_texture_swap.py then I can not set
> > obj=(pyggel.mesh.OBJ("data/bird_plane.obj") the data.Texture the
> > texture("data/stickdude.png") for example would tell me how this
> > implementation?