Page 1 of 2 12 LastLast
Results 1 to 20 of 36
  1. #1
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    valence, france
    Posts
    761

    preethams sky impementation + HDR

    Initially I made this for the ocean shader planar reflections demo which is still in making.
    Here is BGE version of Simon Wallner's sky implementation originally from 2002 GDC Presentation by Naty Hoffman and Arcot J. Preetham.
    I added adaptive exposure control from scene luminance.

    I got the source files HERE

    some screenshots with hazy skies, clear sky is boring
    night skies are not yet done properly









    an blend here: http://dl.dropbox.com/u/11542084/pre...ky_terra.blend
    not optimized much, but I am in a hurry.

    controls as always:
    WASD (sorry people with azerty) + mouse
    LMB + mouse movement - moves the Sun
    spacebar - antialiasing by laser blaster

    in "lum.py"
    lines 49, 50 and 51 you can play around with "g.reileigh" "g.turbidity" and "g.worldscale" values
    Last edited by martinsh; 16-Feb-12 at 13:33.



  2. #2
    Member MrPutuLips's Avatar
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    1,030
    This is absolutely incredible! Amazing work!



  3. #3
    Member C.A.ligári's Avatar
    Join Date
    Jul 2011
    Location
    Posts
    1,506
    A Bit slow (on my Computer), but very pretty.



  4. #4
    Member Chishado's Avatar
    Join Date
    Jul 2011
    Location
    VA
    Posts
    112
    wow! this is the most beautiful thing I seen in the game engine. It's amazing and runs full speed for me.
    Any device can be fixed and configured in no time
    http://www.youtube.com/user/chishado



  5. #5
    Member JohnnyBlack's Avatar
    Join Date
    Nov 2009
    Location
    Earth>Romania
    Posts
    1,777
    Nice job as always but imossible to use at the moment.
    Many good resources Martish, too bad we cant really use them in-game.



  6. #6
    Member leonnn's Avatar
    Join Date
    Dec 2008
    Location
    Brazil - PR - Maringá
    Posts
    2,514
    G-GG-G-great I have no words for that, beautiful!
    Intel 486
    64 mb RAM/128 mg HD
    Graphic card Voodoo 122



  7. #7
    Member
    Join Date
    Mar 2009
    Location
    Slovak Republic
    Posts
    60
    Looks totaly awesome, but when i start it, its there only white screen :O please help me (i have updated my Blender to new 2.62)

    edit: this new 2.62 looks little buggy :/



  8. #8
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    valence, france
    Posts
    761
    1adamm115 - b e a little patient. auto exposure has to adjust the sunlight. It takes few seconds.



  9. #9
    Member Rubbernuke's Avatar
    Join Date
    Aug 2010
    Location
    Peyrat Le Chateau, France
    Posts
    1,190
    Very nice indeed! Just when I thought it could not get any better.....it does!!



  10. #10
    Member
    Join Date
    Mar 2009
    Location
    Slovak Republic
    Posts
    60
    i waited 5 minutes and more .. and nothing, still white screen .. i try it on 2 PCs with ATI and NVIDIA and the same problem (run on 50-60FPS) .. please, what is your Blender version? thanks and sorry my VERY bad english



  11. #11
    I can confirm that it does not work on Blender 2.62



  12. #12
    Originally Posted by BlendingBGE View Post
    Nice job as always but imossible to use at the moment.
    Many good resources Martish, too bad we cant really use them in-game.
    Is there any chance this will be indeed adoptable for in game at some point? Or is this just a proof of concept?

    Either way, it does look good. Does need some tweaks, but it already does inspire a lot.



  13. #13
    Member Rubbernuke's Avatar
    Join Date
    Aug 2010
    Location
    Peyrat Le Chateau, France
    Posts
    1,190
    I just tried this on my main Win 7 x64 box with a GTX 460 (and Blenders 2.60, 2.61 and 2.62)- the view remains white and does not fade away (probably due to the very low FPS). Look forward to optimisations (I so want to plug this into my racing game!).



  14. #14
    BTW I noticed that the Panthera project has IMO a very nice day/night cycle, maybe something which can be of assistance.



  15. #15
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    valence, france
    Posts
    761
    If it was shader problem, then it should be all black. That means my luminance python script is not working. Here it is without HDR -
    http://dl.dropbox.com/u/11542084/pre...ra_noHDR.blend
    rendering terrain really slow stuff down, but sky itself is fast. You can use only the skybox for the game.

    Crumpet - I think it is my old sky shader they use. At least it looks like it.



  16. #16



  17. #17
    Member JohnnyBlack's Avatar
    Join Date
    Nov 2009
    Location
    Earth>Romania
    Posts
    1,777
    Without HDR is working, with it its not!
    Great though!



  18. #18
    Member Rubbernuke's Avatar
    Join Date
    Aug 2010
    Location
    Peyrat Le Chateau, France
    Posts
    1,190
    Thanks martinsh! Works flawlessly now....I fooled my wife into thinking it was a photograph!



  19. #19
    Member
    Join Date
    Jan 2011
    Location
    switzerland
    Posts
    296
    Wow !! thats simply amazing. Absolutely great!
    greetz

    sevi



  20. #20
    Member
    Join Date
    Mar 2012
    Location
    Copenhagen/Vienna
    Posts
    1

    amazing

    wow, it's really nice to see that someone could use my code and thus save it from obscurity

    ...and in such a beautiful way. That really made my day!

    If you have any questions, just let me know.

    best, Simon



Page 1 of 2 12 LastLast

Posting Permissions

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