www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: MichaelJPCT on July 23, 2017, 01:12:02 pm

Title: can i obtain all vertex pos and normal and uv data from an object3d?
Post by: MichaelJPCT on July 23, 2017, 01:12:02 pm
i want to change some vertices in an object loaded from 3DS or OBJ file, and create another object from these vertex data.
can i do that?
Title: Re: can i obtain all vertex pos and normal and uv data from an object3d?
Post by: MichaelJPCT on July 23, 2017, 01:49:20 pm
the reason i want that is: my coordinate system is different from JPCT system, so an object loaded from 3DS has wrong orientation and wrong lighting.
a way to solve this is i switch vectors of the vertices.
or i have to find other ways.
ps: my coord system is forward-left-up.
Title: Re: can i obtain all vertex pos and normal and uv data from an object3d?
Post by: EgonOlsen on July 24, 2017, 10:20:43 am
You can use a combination of http://www.jpct.net/doc/com/threed/jpct/IVertexController.html (http://www.jpct.net/doc/com/threed/jpct/IVertexController.html) and http://www.jpct.net/doc/com/threed/jpct/PolygonManager.html (http://www.jpct.net/doc/com/threed/jpct/PolygonManager.html) for that.