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

Thread: Dynamic Lightning

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Location
    Düsseldorf im Rheinland
    Posts
    28

    Smile Dynamic Lightning

    Hope you like the Delphi / OpenGL oldschool example!
    Attached Files Attached Files

  2. #2
    Looks pretty, not that there is very much to see with all that darkness! LOL

  3. #3
    Senior Member de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    171
    Quote Originally Posted by paul_nicholls View Post
    Looks pretty, not that there is very much to see with all that darkness! LOL
    For me it looked nice for a simple example. As for the darkness, it's not that dark, and the underlying textured quad is visible even when not under direct light.

  4. #4
    It might be because I turned down the brightness on my 30" monitor here at work - it was too bright for working the whole day LOL

  5. #5
    Are you sure that there are any lights? Because here it looked like a simple quad with static ambient light.

  6. #6

  7. #7
    Really nice. Remembers the oldschool Assembly demo parties.
    The source is a good example for using directional lighting.
    Using Freepascal would allow some multiplatformity.

  8. #8
    cool work !
    FAR Colony
    Dev Blog: http://farcolony.blogspot.com/
    Google Code Project Page: http://code.google.com/p/farcolony/
    Dev Version: Alpha 5 [0.5.5] for February/March 2013 - Release Version: Alpha 4 [0.5.2]

  9. #9
    Something's not kosher with how it works here -- after about 3 seconds the cursor appears over the animation as a hourglass, then windows complains about it not responding WHILE it's still running. Taking a guess I'd say the 'while' without a proper wm handler could have something to do with it. GetAsync is cute, it's not a substitute for actually calling windows for input handling.

    since last I checked, that's just a waste of time. Likewise there's no reason to set the clear color or matrix mode on every loop.


    Still VERY cool demo of openGL lighting.

    -- edit -- doh, my bad on the push/popmatrix, removed that part. What I get for posting at 4AM.
    Last edited by deathshadow; 11-06-2012 at 09:22 PM.
    "The only thing you can learn from Dreamweaver is how not to build a website, and the only thing you can learn from jquery is how not to learn Javascript."
    -- Dan Schulz to me via PM August 2008 - To blazes with resting in peace my friend, you give 'em hell.

  10. #10
    Oh, and lighting is not showing up here on high end cards (like my GTX 560ti) because you declare the glLight settings before you've set up the perspective and viewport properly. Works ok on my GMA 950 netbook, and on my Quadro NVS 320 equipped lappy, but my desktop? No lighting.

    I'm working on porting this to FPC right now -- using my OpenGL kind-of framework.
    "The only thing you can learn from Dreamweaver is how not to build a website, and the only thing you can learn from jquery is how not to learn Javascript."
    -- Dan Schulz to me via PM August 2008 - To blazes with resting in peace my friend, you give 'em hell.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
http://flippulseimages.com/Games/recycling-machines.html