I'm looking for an routine/example/code snippet where the lightning is a texture. Something like static texturing, but then dynamic. Like projecting headlights of a car, but for omni's. (doensn't have to cast shadows but would be nice).
I'm looking for an routine/example/code snippet where the lightning is a texture. Something like static texturing, but then dynamic. Like projecting headlights of a car, but for omni's. (doensn't have to cast shadows but would be nice).
NecroSOFT - End of line -
you are describing projected textures + shadow mapping.
http://en.wikipedia.org/wiki/Shadow_mapping
see: http://www.delphi3d.net/listfiles.php?category=4
Specifically these two:
http://www.delphi3d.net/download/shadowmap.zip
http://www.delphi3d.net/download/projshadow.zip
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
I have been working on a planar-texturemapping routine and when i bumped into this topic, i realized that it could be usefull for shadow/lightmapping. :razz:
So i have made a nice 'statue of liberty' texture and i casted the shadow onto my scene. This is the result:
It isn't perfect.. i know, but its a start.
The images are not high-quality, but at least they are resized.
So what do you think of it?? :razz:
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
it is not real-time and self-shading and dynamic like shadow mapping...Originally Posted by chronozphere
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
yeah i know... but i dont know how to create a shadowmap in real time
does anyone know a good D3D tutorial
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
no idea, but i posted links to two opengl onesOriginally Posted by chronozphere
This is my game project - Top Down City:
http://www.pascalgamedevelopment.com...y-Topic-Reboot
My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
http://www.pascalgamedevelopment.com...source+manager
Well, how about ShadowMap example from DirectX SDK?
There are only 10 types of people in this world; those who understand binary and those who don't.
For omni lights I(at the moment) see no other way than projecting a texture for each side of a cube...
My brain can't figure out if you are actually able to project a light texture using some sort of environment mapping scheme like sphere mapping or dualparaboloid. I don't mean like you would for shadow mapping as that is not really about projecting textures but instead bending the perspective which is the opposite of what you want as i understand it
Peregrinus, expectavi pedes meos in cymbalis
Nullus norvegicorum sole urinat
Thanks for your responses !! Had a busy weekend with my girl, so I will take a look at the stuff tomorrow!!
NecroSOFT - End of line -
@chronozphere, I think thats what I'm looking for
I want to mainly use it for some effects like flickering lights, water casting on walls, etc.
Is it DirectX, any source/resources?
Currently I don't looking for any shadow things. just a picture to project on walls. The shadows comes later on...
NecroSOFT - End of line -
Bookmarks