SimpleVector[] model.getStack().peekAt(int)

Started by AGP, December 13, 2006, 01:18:18 AM

Previous topic - Next topic

AGP

How can I have access to a model's polygons? I'm porting a bone structure I wrote several years ago to JPCT and I need access to any given polygon. My implementation used a stack.peekAt(int) method. Is there a similar method in jpct? Also, is there any readily built bone classes to distart 3d characters? Thanks in advance.

cyberkilla

I don't know much about this, but I have heard of a class called PolygonManager, who's javaDoc sounds very similar to what you speak of.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Mizuki Takase

You can also try looking at IVertexController since it has getSourceNormals(), which returns an array of the normals, represented by Simplevector... I bent a mesh in a cloth-like fashion by using that...

EgonOlsen

Yes, there's a PolygonManager to get access to the underlying polygons and you may extend the GenericVertexController to get access to the the vertices of a mesh.

athanazio

is there possible to apply a texture to each face of the Mesh ?


EgonOlsen

Quote from: "athanazio"is there possible to apply a texture to each face of the Mesh ?
The PolygonManager can do this.