Author Topic: SimpleVector[] model.getStack().peekAt(int)  (Read 3833 times)

Offline AGP

  • quad
  • ******
  • Posts: 1520
    • View Profile
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.

Offline cyberkilla

  • float
  • ****
  • Posts: 413
    • View Profile
    • http://futurerp.net
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.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
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...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11749
    • View Profile
    • http://www.jpct.net
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.

Offline athanazio

  • byte
  • *
  • Posts: 49
    • View Profile
    • http://www.athanazio.pro.br
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 ?

Offline halcor

  • byte
  • *
  • Posts: 28
    • View Profile
SimpleVector[] model.getStack().peekAt(int)
« Reply #5 on: December 14, 2006, 10:05:25 am »
Yes, uv mapping.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11749
    • View Profile
    • http://www.jpct.net
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.