newbie to opengl 3d and jpct-ae, about texture mapping

Started by guillaume, November 24, 2011, 05:03:20 AM

Previous topic - Next topic

guillaume

hi,
     I am working a opengl demo using jpct-AE, and I am new to opengl and jpct-ae.
can somebody show me some code about how to do texture mapping in jpct-ae ?
just simply setTexture of a Object3D seems can not get a good looking. help please.
thanks.

EgonOlsen

"not good looking" is a bit vague. You need a good texture and proper texture coordinates for your object (the objects from Primitives don't have them...like the docs state) and a setTexture() is sufficient. Unless you work with the emulator, which renders everything ugly.

guillaume

Thanks, Egon, I know what's the problem now.
It's because the texture coordinates didn't  set properly. :D