Defranco Posted September 6, 2014 Share Posted September 6, 2014 [sOLVED] Good day, I've gotten various models, cave, castle, tunnel, sewer, etc from various different sites. When I put them in my map. They look great in the editor. However, they dont work once the game launches. I've tried playing with all the settings so that it matches the same as a regular block. When the game launches; the object is either just not there, its texture is completely black, and ALL times, the character can just walk right thru it (even when its set to scene). I thought it was a transparancy texture issue, so i put it to many different .mat files that came standard, it didn't fix the issue. I imported various versions, fdk, obj, or mdl back into blender, and re-exported as another file type and tried again. Doing this fixed many of the texture issues (like it appearing black, or it being invisable) but it not fix the issue where the character can just walk thru the mdl in game. Any suggestions? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 6, 2014 Share Posted September 6, 2014 When you have model, lets say a house, you have to specify collisions for it. Setting the collision type only determines what kind of effect your can expect in combination with other collision types. http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/collision-r778 In order to prevent the player from walking through your house, you can either use a brush (box, sphere ) in the physics tab. If you want more accurate collisions, right click on your mdl file in the asset browser and click generate shape. You can select convex for a rough collision layout and polymesh for accurate (but heavier) collision meshes. The generate button creates a phy file. This file can be linked in through the physics tab of an object that you have placed in your scene. 1 Quote Link to comment Share on other sites More sharing options...
nick.ace Posted September 6, 2014 Share Posted September 6, 2014 Just a quick note: Convex meshes are dynamic in the sense that you can pick them up and throw them or whatever, whereas polymeshes are static, meaning that they will not move. If you are dealing with buildings, it's best to use polymeshes. Quote Link to comment Share on other sites More sharing options...
Defranco Posted September 7, 2014 Author Share Posted September 7, 2014 Thanks!!, It works perfect. Much appreciated! Quote 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.