Author Topic: Is there any way to keep the texture when I move the vertex of the Object3D  (Read 744 times)

Offline wild0

  • byte
  • *
  • Posts: 1
    • View Profile
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
 

Offline EgonOlsen

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