Bsp and Ambient lighting
-
- Gnoblar
- Posts: 17
- Joined: Fri Mar 11, 2005 4:14 pm
Bsp and Ambient lighting
Is it me or does Ambient lighting have no effect on world geometry in a .bsp scene? I made a small construct in a bsp map, loaded it and set ambient lighting to white and fully opaque, but theres no difference, I still need pointlights to light the geometry or there's nothing to see :/
-
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
-
- Gnoblar
- Posts: 17
- Joined: Fri Mar 11, 2005 4:14 pm
-
- OGRE Retired Moderator
- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 7
-
- Gnoblar
- Posts: 17
- Joined: Fri Mar 11, 2005 4:14 pm
Yea, the lights u can create in the map editor is what I meant by point lights. But so I have to light it entirely using those? Theres no way to define an ambient light level in the BSP format? I find that somewhat hard to believe..tanis wrote:Point lights won't do anything either. Just as sinbad said you have to prelight your level using radiosity or some such. You need to create lights in your map editor and let it render the lighting as part of the BSP creation process.
-
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
-
- Halfling
- Posts: 91
- Joined: Fri Mar 25, 2005 3:19 am
It depends on the editor, Most settings for ambient lighting is done in the settings for the compile window, same place you will find settings for light map size and radiosity (radiosity has nothing to do with over all light just how many times light bounces from surface to surface but does have the added effect of upping the light in the scene as a whole) Full VIS ETC...Treize wrote:Yea, the lights u can create in the map editor is what I meant by point lights. But so I have to light it entirely using those? Theres no way to define an ambient light level in the BSP format? I find that somewhat hard to believe..tanis wrote:Point lights won't do anything either. Just as sinbad said you have to prelight your level using radiosity or some such. You need to create lights in your map editor and let it render the lighting as part of the BSP creation process.
It will be in the form of 255.255.255 (255 being full bright)
Its a very common setting ins almost all BSP style editors.
I have no idea what the guys above are talking about lol. I don't think they know what you mean.
What editor are you working with?
-
- Greenskin
- Posts: 136
- Joined: Mon Feb 14, 2005 9:25 pm
- Location: Belgium
-
- Halfling
- Posts: 91
- Joined: Fri Mar 25, 2005 3:19 am
Yes they can and are, even gennisis3d has dynamic lighting.Lucky_Luciano wrote:I don't understand: do you mean BSP-levels can't be dynamically lit in any way?
Pardon my ignorance, but how about Doom3 then? I'm pretty sure it uses BSP aswell?
Now, they may be speaking engine specific.All lighting in BSP style maps are done PRE_compile of the BSP/MAP file.

This was done (by me) in Gennisis3d, the torches on the pillars are dynamic lights, as well as the over all darkness was done with the ambiant light setting.





-
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
Doom3 isn't Quake3 bsp - it's completely dynamically lit using pixel shaders.
Yes you can dynamically light if you generate normals for the mesh. .bsp does not include normals but you could generate them if you wanted. We don't because BSP levels normally have lots of large faces for which vertex lighting looks terrible. That's why the main source of lighting in Quake3 BSP is precompiled lightmaps. Again, these days you could use shaders to light it all per-pixel (just like DOom3) but our BSP loader just does what Quake3 did - if you want more then you'll have to extend it.
Yes you can dynamically light if you generate normals for the mesh. .bsp does not include normals but you could generate them if you wanted. We don't because BSP levels normally have lots of large faces for which vertex lighting looks terrible. That's why the main source of lighting in Quake3 BSP is precompiled lightmaps. Again, these days you could use shaders to light it all per-pixel (just like DOom3) but our BSP loader just does what Quake3 did - if you want more then you'll have to extend it.
-
- Gnoblar
- Posts: 17
- Joined: Fri Mar 11, 2005 4:14 pm
Thanks for all your replies, I think I understand a bit better now.
Btw, nice shots Bloodworth, looks really nice.
I'm using GtkRadiant. Any map editors you consider better? Cause I'd be willing to give any others a shot, it's just that this is the first one I found that suited my needs.Mr.Bloodworth wrote: What editor are you working with?
Btw, nice shots Bloodworth, looks really nice.