Jump to content

[SOLVED] Imported mdl seem to be invisable/transparent/dissapearing/walk thru


Defranco
 Share

Recommended Posts

[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?

Link to comment
Share on other sites

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.

  • Upvote 1
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...