Jump to content

Home

Problems with lightmaps


darthtyren

Recommended Posts

I am editing the 231tela.mdl file in Max to lay new textures out and delete parts of the area I don't want. I have re-textured everything left with TEL_snw.tga. Since then I have been following Disbeliever's Lightmaps for Dummies tutorial to create new lightmaps for the new area. I get to the render, and it renders successfully(the lightmaps are made). But when the render is done, the texture I applied to the model(TEL_snw.tga) is de-applied, I guess. I know snow is white, but there is no texture.

 

Now, I thought that it wouldn't matter, but when I export the model, I get an error:

--Unknown property: "diffuseMap" in TEL_snw
[010hota02]:ShellMaterial

 

And the .mdl exported has nothing in it. I thought to fix this I could reapply the texture and then export again. I don't get an error in Max, so I continue into KAurora. No problems importing or exporting the model.

 

But, I open up the model file in the hex editor and there is no reference to use the lightmaps inside the file. A part of me just knows that something isn't right.

Link to comment
Share on other sites

Hmm, no I didn't. Let me try it.

 

EDIT

Okay, so the way the script works is that it still uses the max export to do everything. For some reason, though, I get the feeling that exporting isn't the problem.

 

Why? because I open up the ascii that was exported in a hex editor and I ran a search for anything with the letters 'lm' in it, and didn't find anything. Funny enough, when I open up the ascii I imported originally, there isn't any mention of lightmaps, either. I'm thoroughly confused now.

 

EDIT2

Alright, trying to forget about the above problem, I decided to add an AuroraDLight instead and not worry about lightmaps. Sidenote: At the same time, I tried to do away with the old walkmesh and put a new one in so that I could walk in the spots where originally I couldn't because there were objects in the way. The model exported out of max just fine, but I couldn't render or export the walkmesh out of KAurora. So I went in game to see if at least my light was working, and from what I could tell, it was. But I am now miles beneath my model and cannot tell for sure.

Link to comment
Share on other sites

Did you remember to apy both the walkmesh and the trimesh modifications to your walkmesh?

 

Oops. I've never seen anything anywhere about it needing trimesh as well.

 

EDIT

Still error with both rendering and exporting walkmesh from KAurora. "Object reference not set to an instance of an object."

Link to comment
Share on other sites

Oops. I've never seen anything anywhere about it needing trimesh as well.

 

EDIT

Still error with both rendering and exporting walkmesh from KAurora. "Object reference not set to an instance of an object."

 

The part about an object reference makes me think that you should check the model's links. Might just bite the bullet and re-link everything. See if that works and let us know, okay?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...