Sign in to follow this  
Daniele

Exported models are invisible

Recommended Posts

Hello guys,

I'm trying to take map models .mdl  from KotOR 2, modify them a little bit, and put them back into the game. I managed to do it but I get visibility problems: the whole model appears invisible, except for the objects with the glowing material and texture, as can be seen in the image.

 

post-32357-0-16486800-1493036886_thumb.png

 

I guarantee that the .mdl geometry is there although invisible. In the second image I've removed part of the geometry so that the rest of the map can be seen through.

 

post-32357-0-39498300-1493036941_thumb.png

 

 

I guess that this problem could be given by errors with the visibility map or the light map, but I have no idea of how to solve this.

Share this post


Link to post
Share on other sites

You might want to contact  Bead-V. He has been hard at work to make a new import script that also imports the lightmap info from the game.

As now, whenever you use MDlops, you loose everything about the lightmaps. And you would need add it back in manually.

 

You could do this in the ASCII file, but, since any area is made out of hundreds of meshes, it's a lot of tedious work.

Also writing it out here, would create a large wall of text :laughing:

 

If you want more info on how to create lightmaps:

http://deadlystream.com/forum/topic/4748-lightmapping-an-area-model/

  • Like 2

Share this post


Link to post
Share on other sites

Quanon is probably right about This being caused by missing lightmaps, but I've also had a similar issue where Models would appear completely black. That was related to me using an older Version of mdlops to decompile Models. Once I switched to The latest 0.7 everything worked fine.

  • Like 1

Share this post


Link to post
Share on other sites

What about the KAurora exporter? Could it work for automating lightmap export?

 

Kaurora comes with an updated NWmax script, which allows NWmax to export lightmaps. Kaurora then uses that information when compiling the model.

 

But you still cannot import lightmaps into max, both because there is no corresponding updated import script for NWmax and because (current) MDLOps doesn't even print out lightmap data. So you can't preserve the lightmap data of vanilla models – currently the only way to do it is to re-lightmap the model from scratch and compile it with kaurora.

 

And let me just say that appropriate tools to solve this are in the works.

Edited by bead-v
  • Like 1

Share this post


Link to post
Share on other sites

Depending on what you want to do it might be easier to leave the vanilla model alone and add a new model on top of that instead of remaking the entire lightmap.

You'd then have to make a lightmap only for the new model and add the model to both the .lyt and .vis file of the module. But that's probably still the easier way to go^^

Or you just wait for the new tools.

 

And let me just say that appropriate tools to solve this are in the works.

 

That's great news! :)

  • Like 1

Share this post


Link to post
Share on other sites

Thanks. Ok I think that given what I'm trying to do, restyling the whole area, I may rebake the whole lightmap.

 

Depending on what you want to do it might be easier to leave the vanilla model alone and add a new model on top of that instead of remaking the entire lightmap.

You'd then have to make a lightmap only for the new model and add the model to both the .lyt and .vis file of the module. But that's probably still the easier way to go^^

 

That's also an idea, how do you do that?

Share this post


Link to post
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.

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.

Sign in to follow this