Toldjoo I was full of questions... this one is a little more arcane.
It looks like if I use the "parallel" option on a light, it only lights up the vis node where the light entity is located (or maybe at most one node over).
Here's some comparison pics between a light that has "parallel" enabled and one that does not... in each case the light entity is in the same spot, and the light center is in approximately the same spot. (This is supposed to be sunlight BTW.) I have showportals turned on in the shots with the parallel light, but in the first and last shots that doesn't help much since the portal boundaries are larger than the screenshot. Trust me that the shadow line is right along a visportal in each case.
OK, here's a shot with the non-parallel light:
[lvlshot]http://www.neogeographica.com/temp/light_not_parallel_1.jpg[/lvlshot]
and here's with the parallel light (the top, beyond the portal, is now unlit):
[lvlshot]http://www.neogeographica.com/temp/light_parallel_1.jpg[/lvlshot]
Similarly, a couple more comparisons:
[lvlshot]http://www.neogeographica.com/temp/light_not_parallel_2.jpg[/lvlshot] [lvlshot]http://www.neogeographica.com/temp/light_parallel_2.jpg[/lvlshot]
[lvlshot]http://www.neogeographica.com/temp/light_not_parallel_3.jpg[/lvlshot] [lvlshot]http://www.neogeographica.com/temp/light_parallel_3.jpg[/lvlshot]
So... hmmm! I guess this isn't a big deal if this is the way it has to be; I can work without parallel lights. Just wondering if this is in fact the expected behavior for parallel lights and/or if there's anything else to say about it...
Q4 - Parallel Lights and Visportals
-
- Posts: 179
- Joined: Tue Nov 16, 1999 8:00 am
Light centers could be placed outside the map, you don't have to raise the skybox.Johnny Law wrote:A bump for another old mystery of mine.
It's turning out to be ickier than I thought to do without parallel lights, in the outdoor areas. (I guess I could try raising the skybox a few thousand units and just lifting the light center that far...)
[size=75][url=http://www.lukinonline.com]lukinonline.com[/url][/size]
-
- Posts: 179
- Joined: Tue Nov 16, 1999 8:00 am
-
- Posts: 179
- Joined: Tue Nov 16, 1999 8:00 am
Success... of a sort.
You can indeed pull a light center out of the map and it will still light stuff. However, you get the same sort of shadowcasting errors as if you were using a parallel light.
It _seems_ to cast shadows correctly though if I enlarge my skybox enough to contain the light center. Still experimenting. I guess a 10,000-unit-high skybox won't hurt anything...
You can indeed pull a light center out of the map and it will still light stuff. However, you get the same sort of shadowcasting errors as if you were using a parallel light.
It _seems_ to cast shadows correctly though if I enlarge my skybox enough to contain the light center. Still experimenting. I guess a 10,000-unit-high skybox won't hurt anything...
-
- Posts: 179
- Joined: Tue Nov 16, 1999 8:00 am