Moving textures in the Hello World example

Started by Yatoom, September 03, 2014, 01:05:54 PM

Previous topic - Next topic

Yatoom

Hi, it has been a while since I used jpct. Now, I forgot how to fix this problem that I had before in the Hello World example. When I load in a texture and add it to a box, the texture starts rotating and stretching when the box rotates.

Texture:


Output:

Note: gif is at 6 fps.

EgonOlsen

That's because the example uses environment mapping. Just set that to false or remove the line at it will stop. However, the box in this example has no proper texture coordinates, so the result won't look great anyway.