Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / please help with vertexdata!

Author
Message
Skywriter
16
Years of Service
User Offline
Joined: 27th Aug 2008
Playing:
Posted: 23rd Dec 2009 18:57
why code like:

load object "object.x",1
make mesh from object 1,1

LOCK VERTEXDATA FOR MESH 1
set vertexdata position 1,0,400,0
UNLOCK VERTEXDATA

will not work(i mean wil have no change on object),when:

load object "object.x",1
make mesh from object 1,1

LOCK VERTEXDATA FOR LIMB 1,1
set vertexdata position 1,0,400,0
UNLOCK VERTEXDATA

will work(i can see changes after).So the question is: is there a way to get mesh vertexdata, and how? What i'm doing wrong?

Sky
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd Dec 2009 19:47
Because the mesh is a completely independent copy from the one used to represent the object by the system.
You can use the change mesh command to update the internal mesh to an exact copy of any other mesh (contrary to what you might think, the function is very fast and can be used in realtime on not-so-small objects).

Skywriter
16
Years of Service
User Offline
Joined: 27th Aug 2008
Playing:
Posted: 27th Dec 2009 10:39
That solves the broblem. Thank you very much.

Sky

Login to post a reply

Server time is: 2024-09-28 12:24:20
Your offset time is: 2024-09-28 12:24:20