www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: wild0 on May 22, 2013, 06:00:10 am

Title: Is there any way to keep the texture when I move the vertex of the Object3D
Post by: wild0 on May 22, 2013, 06:00:10 am
Can anyone help?I think I stock here

I implement the IVertexController to control the vertex of the mesh.
Then using the following subroutine update the mesh
public void updateObject3D() {
      //clip is a instance of Object3D
      Mesh clipMesh = clip.getMesh();
      clipMesh.applyVertexController();
      
      clip.touch();
      
   }
I can update a single vertex, but the texture will miss.
Is there any way to keep the texture when I move the vertex.
Roy
 
Title: Re: Is there any way to keep the texture when I move the vertex of the Object3D
Post by: EgonOlsen on May 22, 2013, 07:36:23 am
There shouldn't be any effect on the texture coordinates if you change a vertex. Which renderer are you using and are you using compiled objects if it's the hardware renderer?