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-AE - a 3d engine for Android
»
Support
»
newbie to opengl 3d and jpct-ae, about texture mapping
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: newbie to opengl 3d and jpct-ae, about texture mapping (Read 2529 times)
guillaume
int
Posts: 67
newbie to opengl 3d and jpct-ae, about texture mapping
«
on:
November 24, 2011, 05:03:20 am »
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.
Logged
EgonOlsen
Administrator
quad
Posts: 12295
Re: newbie to opengl 3d and jpct-ae, about texture mapping
«
Reply #1 on:
November 24, 2011, 07:03:27 am »
"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.
Logged
guillaume
int
Posts: 67
Re: newbie to opengl 3d and jpct-ae, about texture mapping
«
Reply #2 on:
November 25, 2011, 01:00:07 am »
Thanks, Egon, I know what's the problem now.
It's because the texture coordinates didn't set properly.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
newbie to opengl 3d and jpct-ae, about texture mapping