Aller au contenu

Photo

[SOLVED] Lightmaps not displaying in game - Red Rooms


  • Veuillez vous connecter pour répondre
10 réponses à ce sujet

#1
JnBaker

JnBaker
  • Members
  • 25 messages
 So I layed out some lights in my first room. Generated the lightmap with no problems. Things look great in my .lvl file. In my .are file every room is just red. This is true for when I load the area in game. I'm missing a step apparently, but I can't tell what the problem is. I've dont a Post to Local, exported without dependencies, and nothing seems to be the point where it breaks down.

Thanks for any insight to what may be wrong.

EDIT: I followed this tutorial on deleting my Light Map files and this one on setting them up. Worked like a charm. I think things were just getting corrupted and I needed to clean things out. Thanks for the input everyone.

Modifié par JnBaker, 11 octobre 2011 - 11:51 .


#2
JnBaker

JnBaker
  • Members
  • 25 messages
Turned "View Models Fully Lit" off and did another "Post to Local" and now the room shows my lights. However, there is still a lot of red in the room. I just have no idea where it is coming from...

#3
Obadiah

Obadiah
  • Members
  • 5 714 messages
Could be the light probe?

If you haven't added one in to the level as yet then do so. Render it after the light maps have been done. Then close the level and open it again. This should all be done from the Single Player module.

#4
JnBaker

JnBaker
  • Members
  • 25 messages

Obadiah wrote...

Could be the light probe?

If you haven't added one in to the level as yet then do so. Render it after the light maps have been done. Then close the level and open it again. This should all be done from the Single Player module.


I did a test this morning, prior to reading this, rendering my lights and then the probe. I'm still getting this red tinge. Not sure at what point it is being baked into the map. I'll give it another go after work today.

You mention to do it "from the Single Player Module" and I'm not sure what that means. Right now I'm building a custom module, rather than extending the base single player game. Does that make a difference? And how would I go about doing it from the Single Player module?

Thanks for the help.

#5
Obadiah

Obadiah
  • Members
  • 5 714 messages
Yes, rendering while in Single Player seems to make a difference. What happens when the light probes aren't rendered properly is that you end up with a default red checkered image that reflects off of everything. Is that the problem that you are having?

I ran into a lot of other minor problems when rendering levels in my custom module (ambient light not working on characters, wind not affecting objects) that rendering them from the Single Player module resolved.

The custom levels built while in Single Player shouldn't affect anything in the original game, the levels just local post into the global sub-directory /packages/core/toolsetexport (or something like that), and you can move them to your module directory afterwards.

#6
JnBaker

JnBaker
  • Members
  • 25 messages
I don't see a checkered pattern. It is just as if there's a global red light that hits everything and then my other lights are on top of it.

At this point I'm not even sure how to go about rendering while in the Single Player. I've been building everything in a separate folder structure. Do I need to just move my .lvl files over to that subdirectory?

#7
DarthParametric

DarthParametric
  • Members
  • 1 409 messages
The LVL file is not a game asset. It's the files that are produced by Post to Local that you need to move. Switch to the Single Player module via the Manage Modules window, load the level and Post to Local. Then move the exported assets across to your module's Addin folder.

#8
JnBaker

JnBaker
  • Members
  • 25 messages

DarthParametric wrote...

The LVL file is not a game asset. It's the files that are produced by Post to Local that you need to move. Switch to the Single Player module via the Manage Modules window, load the level and Post to Local. Then move the exported assets across to your module's Addin folder.


Thanks. I've been leary about working inside the Single Player module so as not to screw up anything for my regular games. So currently I've been working outside of that.

#9
Obadiah

Obadiah
  • Members
  • 5 714 messages

JnBaker wrote...
I don't see a checkered pattern.
...

It's clearer if you have a water plane and a full reflection. Othewise, it shows up as this red hue highlighting objects (sometimes a red anb black hue).

Modifié par Obadiah, 11 octobre 2011 - 05:39 .


#10
JnBaker

JnBaker
  • Members
  • 25 messages
Currently this is an interior room, but that is probably what is happening. Using the help you have provided plus reading up some more, I think I have some ways to tackle it tonight and fix it all. I hope.

#11
JnBaker

JnBaker
  • Members
  • 25 messages
Got it fixed. I edited my first comment to explain how.