Jump to content

Create Geometry at Runtime (In Lua)


Brutile
 Share

Recommended Posts

Is it possible to create geometry in a script at runtime?

I'm looking to convert a voxel engine (Minecraft terrain) I made in Unity3d to Leadwerks,

but I don't know what can and can't be done in Lua.

I need to be able to create a mesh using polygons (not just creating cubes).

Can this be done? and if so, how?

Link to comment
Share on other sites

I'm getting a script error with the surface:UpdateAABB(). I've also tried surface:Update() and surface:Update(true) but I get the error: "attempt to call method 'Update' (a nil value)'. and It doesn't update the colour of the model. Any ideas?

Link to comment
Share on other sites

You are right. The command is not exposed to Lua. Let me fix that tomorrow...if you switch to the beta branch on Steam you can get the update right away.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

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