Jump to content

Some questions about instancing


Sanctus
 Share

Recommended Posts

Hey guys.

I'm trying to make my own terrain system in leadwerks since the one available is not quite what I'm looking for.

Since my terrain is quite case dependent I'd like to use basic meshes that are drawn using instancing.

I create a patch and after this I copy the entity to every patch in the grid.

What I'm not sure about is this: If I somehow modify one patch(verts) will all patches be modified? From what I know about instancing all the verts are in just one array using something like glDrawElementsInstanced.

How should I approach the problem if I want to modify those patches?

I create the game you play. I create the rulles you will obey.

Link to comment
Share on other sites

If there are only a few different modifications to the patches, you could use an array of reference meshes.

Given that your terrain is quite huge, it will perform a lot faster than loading each mesh.

I'm pretty sure you already thought of that, if it's possible in your case :)

(Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI)

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...