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
»
Hello world without envmap?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Hello world without envmap? (Read 2766 times)
D4NM4N
byte
Posts: 15
Hello world without envmap?
«
on:
February 06, 2011, 11:01:20 pm »
I cannot seem to get settexture working without an environment map :S
Using the hello world example, if i turn off (comment out) the environment map line all i get is a grey cube.
Are there any examples anywhere of texturing?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Hello world without envmap?
«
Reply #1 on:
February 06, 2011, 11:07:43 pm »
That's because the cube used in HelloWorld has no texture coordinates. You can create some dirty ones using the calcTextureWrap...methods in Object3D. Or have a look at the advanced example in the wiki.
Logged
D4NM4N
byte
Posts: 15
Re: Hello world without envmap?
«
Reply #2 on:
February 06, 2011, 11:54:03 pm »
Gotcha so the UVs are not set for any primitives correct?
I had a sneaky feeling it was something along those lines.
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Hello world without envmap?
«
Reply #3 on:
February 07, 2011, 06:52:07 am »
No primitive (except for the plane) has texture coordinates. They are meant to be used as quick and dirty placeholders only.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Hello world without envmap?