Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Jun 2005
Offline Last Active Mar 31 2015 11:12 PM

#4900601 how to make day and night effect in sfml

Posted by on 08 January 2012 - 04:45 AM

SFML Sprites have a SetColor function. The default value is sf::Color(255, 255, 255, 255) but if you set it to 128,128,128,255 then it's drawn darker. For night though, you'd want something of blueish hue not pitch black.

#4857819 Misty Forest

Posted by on 05 September 2011 - 07:28 AM

I really liked it. To me, it sounds like a day in a plants life, a flower for example. Like those high-speed shots in nature documentaries. It starts out in the early morning, flower petals closed, slowly opening. Then the day progresses, drops of mist dry out in the sun and the flower moves and turns to face the sun. Then an insect approaches and lands on it, around 1:40. It does it things and flies away. Then the sun starts to set and the day ends as the flower closes again.

I like it when a piece brings such a vivid image to mind :)