www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on December 13, 2006, 01:18:18 am

Title: SimpleVector[] model.getStack().peekAt(int)
Post by: AGP on December 13, 2006, 01:18:18 am
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.
Title: SimpleVector[] model.getStack().peekAt(int)
Post by: cyberkilla on December 13, 2006, 02:26:41 am
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.
Title: SimpleVector[] model.getStack().peekAt(int)
Post by: Mizuki Takase on December 13, 2006, 04:22:38 am
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...
Title: SimpleVector[] model.getStack().peekAt(int)
Post by: EgonOlsen on December 13, 2006, 07:15:57 am
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.
Title: SimpleVector[] model.getStack().peekAt(int)
Post by: athanazio on December 13, 2006, 12:47:24 pm
is there possible to apply a texture to each face of the Mesh ?
Title: SimpleVector[] model.getStack().peekAt(int)
Post by: halcor on December 14, 2006, 10:05:25 am
Yes, uv mapping.
Title: SimpleVector[] model.getStack().peekAt(int)
Post by: EgonOlsen on December 14, 2006, 08:29:10 pm
Quote from: "athanazio"
is there possible to apply a texture to each face of the Mesh ?
The PolygonManager can do this.