Game Development Community

Lights don't stay deleted

by Brian Mayberry · in Constructor · 04/09/2007 (6:02 pm) · 10 replies

One of the first acts of splurge for me was playing with the lighting previews. Mixing colors, values, spots, omni, etc.

Everything is cool until I start deleting lights. They disappear from the grid/3D space, but they are still "active." If I save, close, and reopen, they come back like I never deleted them.

Not a seriously big issue right now, I can always make my geo and do lighting last, but I thought I'd share my findings.

Sorry if this is already listed somewhere. :P

#1
04/09/2007 (6:10 pm)
This happened to me too, when I imported a .Map file. Once I saved the scene as a CSX, then reloaded and deleted them again, they disappeared for good.
#2
04/09/2007 (9:04 pm)
Greetings!

It sounds like the delete flag for entities is not being honored somewhere.

Brian: When you say the deleted light entities are still 'active' do you mean they still affect a lightmap preview? Is your "save, close and reopen" operation with CSX files or directly with MAP files?

Jaimi: Thanks for the info.

- LightWave Dave
#3
04/10/2007 (12:51 am)
Yes they still remain active even if not visible :)
#4
04/10/2007 (6:26 am)
Right, it's just as Petteri says for me as well. I've only messed with CSX files so far.
#5
04/10/2007 (9:15 pm)
Hey Guys.

I'm trying to reproduce this at my end and so far haven't been able to. Here is my basic test case:

1. Create a 16x16x16 cube.

2. Add a light_point entity in front of one of the cube's faces. I changed its falloff_outer to 100.

3. Switch the Perspective viewport to use the Mapped lighting option. Do Scene->Relight All to make sure the light entity is working, and it appears fine.

4. SHIFT-drag out two copies of the light entity and place them around the same cube face. Do a relight and they look fine.

5. Delete the first light entity and it is removed from the viewport and scene entity list. Do a relight and the lightmap looks correct with the remaining two lights.

6. Save the scene as a CSX file. Close all scenes. Reload scene and there are only two light entities present. Do a relight and the lightmap looks correct.

7. Delete the two remaining light entities and they are removed from the viewport. Do a relight and end up with a completely black lightmap.

8. Save scene again. Close the current one and reload. All light entities are gone. Do a relight and have a black lightmap.

Is there something that I've missed that would make my steps different from your own? Are you using a different light entity?

Thanks.

- LightWave Dave
#6
04/11/2007 (2:28 pm)
Only time i get the problem is with a more complex scene not sure about the rest of you guys.
#7
04/11/2007 (2:35 pm)
Only time i get the problem is with a more complex scene not sure about the rest of you guys.
#8
04/12/2007 (1:33 pm)
Quote:Is there something that I've missed that would make my steps different from your own? Are you using a different light entity?

After long session of relighting, if I happen to have done some undo, sometimes light will keep light points I deleted previously, with the points in themselves not being here anymore Oo.
After that, if I close and reopen, the previously deleted points will come back Oo.

The trick is that every time it happen I did undo at some point, and I did a lot of relight.
#9
04/14/2007 (12:34 pm)
It's kind of been hit and miss trying to replicate the problem again.

But the more lights I add and delete, the more likely I am to get the error. It may be an undo issue for me as well, I tend to use redo/undo a lot as I tinker with various settings.
#10
04/15/2007 (7:06 pm)
Also get it only when i do alot of undo's it seams no matter what undo i do i can occasionally get the lights to come back and cannot remove them