Rick Posted April 4, 2013 Share Posted April 4, 2013 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). Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted April 4, 2013 Share Posted April 4, 2013 How about just a box with dimensions like (20,0.1, 20)? Quote Link to comment Share on other sites More sharing options...
ESP Posted April 4, 2013 Share Posted April 4, 2013 It is still a box. Can you draw a box and then delete the sides? Robin Quote Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Rick Posted April 4, 2013 Author Share Posted April 4, 2013 @Aggror That's what I have now, but seeing some issues and wanted to test out with a plane. Quote Link to comment Share on other sites More sharing options...
ESP Posted April 4, 2013 Share Posted April 4, 2013 Just tried it I notice that you no longer need (or have) to press a create button. Robin Quote Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Rick Posted April 4, 2013 Author Share Posted April 4, 2013 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. Quote Link to comment Share on other sites More sharing options...
Daimour Posted April 5, 2013 Share Posted April 5, 2013 Did you try to create "surface" from scratch? Like in docs: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/surface/surfaceaddtriangle-r218 Quote Link to comment Share on other sites More sharing options...
Andy Gilbert Posted April 5, 2013 Share Posted April 5, 2013 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 Quote 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 Link to comment Share on other sites More sharing options...
Rick Posted April 5, 2013 Author Share Posted April 5, 2013 @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? Quote Link to comment Share on other sites More sharing options...
Rick Posted April 5, 2013 Author Share Posted April 5, 2013 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! Quote Link to comment Share on other sites More sharing options...
Andy Gilbert Posted April 5, 2013 Share Posted April 5, 2013 Ahh thats good then, sorry included in Darkness Awaits there is a plane mesh used for shadow. Andy Quote 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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.