harryknapp3 Posted January 20, 2014 Share Posted January 20, 2014 Hello me and my 7 friend are trying to make a game but cant find out how to import new models we have tried but failed please help. Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Share Posted January 20, 2014 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/model/ use Model:Load() Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 Ok but no luck so far thanks for the help though Quote Link to comment Share on other sites More sharing options...
Rastar Posted January 20, 2014 Share Posted January 20, 2014 And before that you can import your model (which must be in fbx format) by simply dragging it from the file system into a suitable folder of your project. Leadwerks will automatically convert it and store it in its internal mdl format (that's the file you supply to Model::Load). Quote Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 How do i convert it to a fbx formate ? Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Share Posted January 20, 2014 how you created the model? which format is it? in blender just export as .fbx you have to give us some more information Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 I want to import models from this website http://tf3dm.com/ When i place them in my own folder i cant add them into the "game" Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Share Posted January 20, 2014 okay for the beginning search models that has the .fbx format and do: And before that you can import your model (which must be in fbx format) by simply dragging it from the file system into a suitable folder of your project. Leadwerks will automatically convert it and store it in its internal mdl format (that's the file you supply to Model::Load). if you have .obj models convert them with "Autodesk FBX Converter 2013" into a .fbx file. Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 Ok thank you so far i have the models now in the fbx format but what do you mean by "supply to Model::Load" Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Share Posted January 20, 2014 when you want to develope a game you obviously have to learn a programm language like lua or c++. the engine comes with some classes like the Model Class. just read: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/ load models in lua e.g.: var = Model:Load(path) for the beginning dont use models and use primitives like var = Model:Box(1,1,1) that creates a box (cube) with size x,y,z = 1 default position is vec3(0,0,0) in the space Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 I will read that in a moment but i used the converter and when i tried loading the model it says failed to load Ipad.mdl Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 20, 2014 Share Posted January 20, 2014 Did you convert it to fbx? Quote Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 Yes i did and how do i stop falling through floors ? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 20, 2014 Share Posted January 20, 2014 I assume you are using a character controller? Go to the physics tab of your floor and set physics to rigid body and collision type on scene. Quote Link to comment Share on other sites More sharing options...
harryknapp3 Posted January 20, 2014 Author Share Posted January 20, 2014 I've just tried that still fell through the floor Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted January 20, 2014 Share Posted January 20, 2014 try to drag the Player.pfb from the Prefab folder into your scene Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 20, 2014 Share Posted January 20, 2014 can you give us a little bit more information about your scene? Are you using CSG, models, what kind of settings do you have set so far? Quote Link to comment Share on other sites More sharing options...
Rick Posted January 20, 2014 Share Posted January 20, 2014 Is your floor a plane (is it very "skinny"?). I ran into issues when models didn't have back faces, to save on poly count, and collision. I either created CSG for the collision and painted the invisible material on it so the visual model is all that's seen, or you can make a collision model that has a little more thickness and use that. Quote Link to comment Share on other sites More sharing options...
MisterGravity Posted January 21, 2014 Share Posted January 21, 2014 So here's the issue I'm having. I've just created my very first 3D model in Blender, a nice and shiny coffee cup. Well in the tutorial, the guy had me turn up the quality for rendering, and of course I followed the instructions not knowing what I was doing. What I ended up with was an absolutely gorgeous coffee cup with 82,050 polygons (because "Tris" = "Polys", right?). I'm learning now that 82,050 is a ridiculous amount. Well, I turned it into a .fbx file before I realized that, and dragged it into LE, and I immediately got the error message: EXCEPTION_ACCESS_VIOLATION, and LE crashed. Then I started it back up again, went to the Models folder in Assets, and got the same error again, crash. So here's a couple of questions: 1. How can I delete that model from the map so I can continue, even if it keeps crashing? 2. When you export a model in Blender, if you right click the object (to grab just that), and then click Export, does it just export that model, or does it export the entire scene, camera, light source and all? Hey, gotta give me credit for trying. At least I attempted modeling! Quote I'm sure I'll have a million questions in my quest to master the Leadwerks Engine. Thank you for your patience. Link to comment Share on other sites More sharing options...
Roland Posted January 21, 2014 Share Posted January 21, 2014 1. In explorer find the place where your fbx file is (where you dragged it). Delete that one and the one with the ending .mdl 2. When you are at export there is a part "Export FBX". There you can select whether to export Selected Object or not A bit off topic: I tested with at Blender character with 500.000 polys my self. No problem. So I guess the number of polys was not the problem. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
MisterGravity Posted January 21, 2014 Share Posted January 21, 2014 1. In explorer find the place where your fbx file is (where you dragged it). Delete that one and the one with the ending .mdl 2. When you are at export there is a part "Export FBX". There you can select whether to export Selected Object or not A bit off topic: I tested with at Blender character with 500.000 polys my self. No problem. So I guess the number of polys was not the problem. Well, that worked. I was able to remove the model from crashing the program and reopen it. Also I used your method of choosing to select just the object and then I exported it again. I left it the size it was and put it back into Leadwerks. I laughed outloud to see that my coffee cup is as big as a door. It also didn't keep the texture, but I'll look into that later. Baby steps. 1 Quote I'm sure I'll have a million questions in my quest to master the Leadwerks Engine. Thank you for your patience. 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.