Jump to content

Best way of handling a changing model


Shadoh
 Share

Recommended Posts

Hey guys, I'm doing some tests for some voxel based stuff. I have a rather large 3D array that is setup at load-time, then during run-time an array of smaller 'Chunks' are created, which are basically just containers with models with a little more information such as showing if that chunk needs to be "re-modelled".

 

Now the problem is how do I go about refreshing that model. I need to replace the vertices in each Surface, is there a 'ClearSurface' function? I had a quick sqoodle through the documentation but couldn't spot one. Do I have to destroy the model and create a new one? If so, how is the best way to do that?

 

Cheers!

 

EDIT: TLDR: I already have the code to create the model -and it works perfectly, but I need to clear, and rebuild the model.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...