Author Topic: Moving textures in the Hello World example  (Read 580 times)

Offline Yatoom

  • byte
  • *
  • Posts: 8
    • View Profile
Moving textures in the Hello World example
« on: September 03, 2014, 01:05:54 pm »
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.
« Last Edit: September 03, 2014, 01:17:25 pm by Yatoom »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Moving textures in the Hello World example
« Reply #1 on: September 03, 2014, 02:43:18 pm »
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.