Hello world without envmap?

Started by D4NM4N, February 06, 2011, 11:01:20 PM

Previous topic - Next topic

D4NM4N

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?

EgonOlsen

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.

D4NM4N

Gotcha so the UVs are not set for any primitives correct?
I had a sneaky feeling it was something along those lines.

EgonOlsen

No primitive (except for the plane) has texture coordinates. They are meant to be used as quick and dirty placeholders only.