Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Graphical lighning

  1. #1
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Graphical lighning

    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 -

  2. #2
    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

  3. #3

    Graphical lighning

    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.

  4. #4

    Graphical lighning

    Quote Originally Posted by chronozphere
    So what do you think of it?? :razz:
    it is not real-time and self-shading and dynamic like shadow mapping...
    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

  5. #5

    Graphical lighning

    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.

  6. #6

    Graphical lighning

    Quote Originally Posted by chronozphere
    yeah i know... but i dont know how to create a shadowmap in real time

    does anyone know a good D3D tutorial
    no idea, but i posted links to two opengl ones
    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

  7. #7

    Graphical lighning

    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.

  8. #8

    Graphical lighning

    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

  9. #9
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Graphical lighning

    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 -

  10. #10
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Graphical lighning

    @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 -

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •