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 - a 3d engine for Java
»
Support
»
SimpleVector[] model.getStack().peekAt(int)
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: SimpleVector[] model.getStack().peekAt(int) (Read 6062 times)
AGP
quad
Posts: 1726
SimpleVector[] model.getStack().peekAt(int)
«
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.
Logged
cyberkilla
float
Posts: 413
SimpleVector[] model.getStack().peekAt(int)
«
Reply #1 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.
Logged
http://futurerp.net
- Text Based MMORPG
http://beta.rpwar.com
- 3D Isometric MMORPG
Mizuki Takase
int
Posts: 97
SimpleVector[] model.getStack().peekAt(int)
«
Reply #2 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...
Logged
EgonOlsen
Administrator
quad
Posts: 12297
SimpleVector[] model.getStack().peekAt(int)
«
Reply #3 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.
Logged
athanazio
byte
Posts: 49
SimpleVector[] model.getStack().peekAt(int)
«
Reply #4 on:
December 13, 2006, 12:47:24 pm »
is there possible to apply a texture to each face of the Mesh ?
Logged
halcor
byte
Posts: 28
SimpleVector[] model.getStack().peekAt(int)
«
Reply #5 on:
December 14, 2006, 10:05:25 am »
Yes, uv mapping.
Logged
EgonOlsen
Administrator
quad
Posts: 12297
SimpleVector[] model.getStack().peekAt(int)
«
Reply #6 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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
SimpleVector[] model.getStack().peekAt(int)