Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Moving textures in the Hello World example
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Moving textures in the Hello World example (Read 1738 times)
Yatoom
byte
Posts: 8
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
»
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Moving textures in the Hello World example