Dynamic lights -- what can we do?

Reverend

Banned
It's a pain in the ass as it's simple to implement but costly and getting prevalent (I'm not saying "required") in games. I hate flashlights.
 
on my active days, I had an idea of Hardware per pixel Shadow Casting unit, that would be as part of general gfx pipeline. But after traditional pipelines got lost, so did my idea and I never planned it further.

the basic idea was having tracing unit inside the rasterizer checking if rendered pixel (or sample) can see the light sources as simple ray - triangle collision. if collision was detected then engine request a texture sampling on the collision point of the triangle, to check texture transparency information. if the pixel (or sample) still has a shadow, engine would blend it to final pixel color.

I know, I know, it's darn slow. :) on big scenes with lot of triangles ray-triangle collisions would cause major slowdown because lots lots of shadow testing. Also, waiting to collision point texel to be sampled might cause the pipeline generate wait states, which again isn't desirable. So, as said, it's only a rough idea. :)
 
Nappe1 said:
on my active days, I had an idea of Hardware per pixel Shadow Casting unit, that would be as part of general gfx pipeline. But after traditional pipelines got lost, so did my idea and I never planned it further.

Got the same idea years ago for my 3D engine, but hardware changed a lot so scraped it.
 
Don't need dynamic lights for shadows. They hard to implement but they look so pretty :D . There is only so much you can do with static lights :/. Dynamic lights are not just lights that move. All lights that effect lightmaps in realtime are concidered dynamic.
 
Back
Top