Results 1 to 16 of 16
  1. #1
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    riga, latvia
    Posts
    770

    snowflake growth demo

    Hello, I hope you had fun Christmas.
    This is a small demo showing real-time snowflake growth using an animated alpha map. The animation frames are stored in a single image, 255 frames in a single color channel.

    screenshots:


    blend:
    http://www.pasteall.org/blend/1425

    controls:

    buttons 1 and 2 enables post-process effects (vignetting, noise, edge-blur, and a new and awesome lens distortion filter, made by Francois Tarlier, and slightly modified by me).

    Up/Down - shrink/grow the snowflake
    mouse wheel up/down - chromatic dispersion amount

    numpad:
    7/4 - lens distortion coefficient
    8/5 - cubic distortion amount
    9/6 - image scaling amount

    Edit: Maybe this thread should be in Game Demos section?
    Last edited by martinsh; 26-Dec-09 at 21:21.



  2. #2
    Member mrhippieguy's Avatar
    Join Date
    Apr 2009
    Location
    somewhere else
    Posts
    515
    that is really cool. where did you learn glsl? i bet a lot o' people'd like ta know.



  3. #3
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    riga, latvia
    Posts
    770
    Hmm.. mostly collecting GLSL shaders and dissecting them. Also Mike Pan and Dalai Felinto taught me quite a lot.



  4. #4
    Great , as always.



  5. #5
    your chromatic aberration is much better than mine !

    also do you know why I do have the tool bar render in the texture ?

    awesome work as usual !
    -----------------------------------------------------------
    Projection Painting Tutorial
    My website



  6. #6
    Member martinsh's Avatar
    Join Date
    Oct 2006
    Location
    riga, latvia
    Posts
    770
    Originally Posted by francoistarlier View Post
    also do you know why I do have the tool bar render in the texture ?
    !
    Because Rendered Texture doesn`t end at the edges of the game screen. It continues till it gets to the size of power-of-two (64*64,1024*1024, 4098*4098, etc.), and it includes all Blender`s UI. That is the reason I use canvas coordinates over the texture coords to get the center of the game window.



  7. #7
    oh man this is fantastic shader



  8. #8
    Member AD-Edge's Avatar
    Join Date
    Apr 2006
    Location
    South Australia, Adelaide Hills
    Posts
    2,309
    Stunning work once again.
    I think the most valuable thing from this is the cubic lens distortion shader, thats something Ive been looking for for a while, and this one is so customizable its just beyond perfect.

    Your .blend runs fine for me Martinsh, but Im having trouble getting the shaders to work in my own game, I have the lens distortion one running ok with the get_window script as well, but I keep getting this increased brightness effect. The underlying effect is there, its just this flickering brightness which happens at certain times or angles. It must be something im not setting up right in my .blend, cause your demo doesnt have any of these issues and im using inbuilt 2D shaders as well anyway.

    Any advice would be appreciated, I have a thread for the issue here so this thread remains ontopic.

    I look forward to seeing what you come up with next!
    || FB Page || BGE Subreddit ||
    YouTube || Insta || Twitter
    -Focus To Achieve-



  9. #9
    Holly shit, amazing.



  10. #10
    Download link is broken. Screenshots look great though!



  11. #11
    gorgeous indeed, I 2nd it about the broken link. I so want to learn more about lens distortion on GLSL



  12. #12
    Member leonnn's Avatar
    Join Date
    Dec 2008
    Location
    Brazil - PR - Maringá
    Posts
    2,554
    someone have this file to upload for me?



  13. #13



  14. #14
    Member leonnn's Avatar
    Join Date
    Dec 2008
    Location
    Brazil - PR - Maringá
    Posts
    2,554
    thanks a lot, I want the chromatic aberration filter that is on this file!
    Thanks a lot, and thanks to martins too



  15. #15
    Member Octopus4's Avatar
    Join Date
    Jun 2005
    Location
    Jordan
    Posts
    4,531
    thanks HG1, and thanks martinsh.
    edit:
    this don't works in 2.58a :[
    Last edited by Octopus4; 07-Jul-11 at 01:27.
    iOS Developer, Game Developer & Blender Artist
    www.deyaeldeen.com



  16. #16
    Member
    Join Date
    Jul 2010
    Posts
    1,440
    Here I changed it to Blender 2.5x.
    http://www.mediafire.com/file/9av6m5...th%2025x.blend



Posting Permissions

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