Jump to content

Recommended Posts

Posted

I notice there isn't a Model:Plane() like there are Model:Box()/Model:Sphere(). Does anyone have any idea or code to make just a plane? Would I have to do anything special to see a material on it also? I'd like to only see 1 side of the plane (guessing that's how they all work anyway mostly?). Also needs to be pickable. Not sure if anything special needs to be done for that.

 

 

Trying to follow: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/model/modeladdsurface-r342

 

Getting error: "Attempt to call method 'UpdateAABB' (a nil value).

Posted

It is still a box. Can you draw a box and then delete the sides?

 

Robin

Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS

Posted

Just tried it :) I notice that you no longer need (or have) to press a create button.

 

Robin

Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS

Posted

I need to do this via code also, not csg, since I need to pick this with the mouse and as far as I can tell you we don't have a way to tell which csg model was picked.

Posted

I know this isnt the direct answer, and im sure there is a reason why not but could you just not load in the plane mesh (included with L3) when needed.

 

Andy

The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do.

 

Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d

Posted

@Daimour Yep. I get the error in my first post (looks like some things aren't exposed to Lua)

 

@Andy My next approach was to make a plane model in UU3D and load that in, but you say "included with LE3"? Where is that?

Posted

Just created a 1x1 plane in UU3D. Imported into Leadwerks 3. Applied the shader I made that allows multiple tiled textures. Working like a charm and looks so much better!

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.

×
×
  • Create New...