Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - CultiMAN

#1
Support / Re: changing Texture on Polygon at runtime
February 24, 2012, 02:18:56 PM
Thanks Egon! That did the trick! Groovy. Great job on a Great engine! Hats off to you.
#2
Support / Re: changing Texture on Polygon at runtime
February 23, 2012, 10:48:40 PM
the UV mapping
#3
Hi

I have a strange problem with my project.
I have a method on my cube class that changes the UV mapping of a textureatlas for one of the sides of the cube.
The method uses model.getPolygonManager().setPolygonTexture(...) to change the UV mapping of the polygons in question - and i know it works fine.
My problem is that i only works in my initial onSurfaceChanged (when game starts). If i call the same method when scene is running/updating/drawing - it won't do the update of the texture.

I know the method is being called while the game is running (debugger confirms)

Do i need to call somekind of update method on my world like : world.RefreshAllUVMappings() ?

Hope you can help.

/Kristian, Denmark