www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: tinhtinhcd on May 19, 2017, 10:57:40 am
-
Hi,
My app load object from file .obj.
Inside the .obj also contain texture
vt 1.000000 0.011329 0.000000
vt 1.000000 0.011329 0.000000
vt 1.000000 0.024390 0.000000
vt 1.000000 0.024390 0.000000
vt 1.000000 0.024390 0.000000
vt 1.000000 0.975610 0.000000
vt 1.000000 0.975610 0.000000
how can i load that texture.
-
Like so: http://www.jpct.net/wiki/index.php?title=Loading_models (http://www.jpct.net/wiki/index.php?title=Loading_models)
-
Hi,
I don't get it, in that example need to create a texture from a png file.
Texture skinTex=new Texture("textures/dogtex.png");
But I don't have that .png file, I only have the .obj.
-
OBJ file are ASCII files. They don't contain any texture data. They contain texture coordinates, but these are just pointers into a texture. You have the provide the texture file somehow.
-
Thanks EgonOlsen,
It is first time I work with 3D object, so I don't know it.