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

Thread: Glow and Projective Lighting demo`s

  1. #1

    Glow and Projective Lighting demo`s

    For the campagny I currently work for I implemented a DirectX version of there OGL renderer over the past few months. Now I`m shifting my focus for some new cool effects to add to it. Since the engine must have low system requirements we currently don`t use any form of shaders. Just the fixed function pipeline and basic lighting and material functions. I have been doing some research on some new effects which only use the OGL 1.1 specifications.

    THe first one is a glow effect using glow textures. First seen in tron 2.0 the first pass renderes the scene with only the parts of the mesh you want to see glowing. This is copied to a texture and then scaled down a number of times. These are then added adaptively the produce a sort of glow effect. By ajusting the alpha you can even make them flicker etc.

    Screen:


    The second is a sort of projective lighting. I got the idear for this effect from a video of unreal engine 3 except I use a "lightmap" and they use shadowmapping. The results are pretty similar except I only use OGL 1.1 The first pass renders the scene normal with diffuse ligthing. The second pass blends a projected texture into the scene:

    Unreal video at 1 min 20 sec:
    http://www.youtube.com/watch?v=Plnh28ykavQ

    Screen:


    Both demo`s are in this zipfile here of course with delphi source :
    http://www.genesisdevice.net/downloads/demos.zip

    Controls are the mouse and WASD and F1 and F2 for debug stuff.

    Note that both these where coded in less than a day and probebly could be optimised a bit. Also the normal calculations for the projective lightdemo can take a minute.

    Over the next few weeks ill probebly post some more research.

  2. #2

    Glow and Projective Lighting demo`s

    You got a "standard" internationalizing error: 122.122 is not a valid floating point number.

    I'm using a swedish version of winxp and we're using , as decima seperator, its a real pain.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  3. #3

    Glow and Projective Lighting demo`s

    I fixed the Projective texture demo error. Just donwload the package again

  4. #4

    Glow and Projective Lighting demo`s

    That's really quite nice! I'm look forward to any other demos

    Bumped to news

  5. #5

    Glow and Projective Lighting demo`s

    The proijective demo just locked (well made it very very very slow) up my system at work.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  6. #6

    Glow and Projective Lighting demo`s

    @Traveler
    Thanx for bumping up to news item .


    @czar
    The testscene is about 40000 polys which is rendered 4 times. When I tested it at work on an inter intergrated graphics card I had the same problem. I used a scene with 15000 polys and it ran with 20to 30 fps. You can get the scene here:

    www.genesisdevice.net/downloads/temple.dxs

    Just replace the old one in the scene dir.

  7. #7

    Glow and Projective Lighting demo`s

    Hi Luuk

    nice work. I tested them both under wine on my ubuntu box. both worked fine no problems Got about 600 FPS on my Nv 7800 GT.

    Dean
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  8. #8

    Glow and Projective Lighting demo`s

    I have been working on a new demo last night. I got the idear from half life 2: episode 2. In this they have a flashlight which also casts shadows. Can be seen in action here with some info:

    http://en.wikipedia.org/wiki/Source_...nd_shadowing_2

    I decided to give this a shot without any shaders and here are the first results:



    It uses 3 texture units. 1 for the mesh textures, 1 for the flashlight projection and of course 1 for the shadowmap. Runs with about 25 fps on an intel intergrated graphicscard. Again this is only using OGL 1.2 specifications.

    Still needs some tweaking and I`ll be posting the demo somewhere this weekend.

  9. #9

    Glow and Projective Lighting demo`s

    I have improved it quite a bit. I added an extra renderpass and now the shadows get the value of the ambient. The lights are still done by the OGL fixed function lights. It still runs on OGL 1.2 but I also added support for FBO`s so I can use textures largen then the viewport. Here are 2 more screens:




    I`m also thinkin of adding a shaderpath with some pcf filtering since this could be valuable for the Genesis Device to.

    Next up is cubemap shadows for pointlight and shadows for directional ligting.

  10. #10

    Glow and Projective Lighting demo`s

    Luuk, you never cease to impress. That looks really nice. Good job!

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
  •