The Daily Click ::. Forums ::. Klik Coding Help ::. Sunlight effects.
 

Post Reply  Post Oekaki 
 

Posted By Message

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
31st October, 2011 at 04:04:37 -


Hi,

I am working on a game that simulates day and night. I would like to have the sun slowly rise over the background behind the trees and shine through also. Has anybody seen anything impressive? Or have any ideas?

My trees look like this:

Image

At the moment this is just 1 object that is tiled in the background but I am working on breaking it up into seperate objects.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
31st October, 2011 at 04:40:45 -

Image

You mean sun rays, aka "God rays"?

Depends how you go about moving the background around, because it's difficult to capture that kind of effect from directly behind tree's, you always have to be sort of at an angle of the tree so you can the shadow in the air behind it. That's really what it is, is a shadow of the tree's casting on the thick air, usually fog, behind the tree's. And if you're in the shadow, it's hard to see it.

 
http://www.facebook.com/truediamondgame

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
31st October, 2011 at 05:30:56 -


That is exactly what I mean. GOD RAYS!!!!

At the moment the background is just made up of a bunch of different trees on different layers parallaxing in a "i'm deep in the woods" kind of way. But I am happy to change anything to get the effect in the picture you posted.

Ideas?????

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
31st October, 2011 at 07:12:31 -

It's tricky and I probably wont be able to give you the best solution.

If I was desperate to get that kind of effect in MMF2 though, given I don't know much knowledge of fancy extensions to give you special effects besides lens effects - my idea would be a few blurry layers that parallax past each other. Unless you worked on where the light was vs where your backdrops are though, it probably couldn't easily be dynamic.

I kind of left MMF2 behind in favor of Unity though (which has a single option for adding sun rays), so this is all kind of speculation anymore. I really hope someone else might be able to help you more, now that we have a clear idea of what you're looking for.

 
http://www.facebook.com/truediamondgame

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
31st October, 2011 at 14:40:31 -

I reckon the solution is to create a whole bunch of separate alpha channel objects that rotate and resize depending on your position relevant to them. Is there a shader effect that could blur the image below the rays?

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
31st October, 2011 at 18:28:48 -

No, MMF2 isn't able to detect pixels below objects in order to blur them out, yet. As far as I know, anyway.

 
http://www.facebook.com/truediamondgame

Fordom

Nordanrikets konung

Registered
  12/02/2009
Points
  190

VIP Member
31st October, 2011 at 18:48:21 -

Hdr tonemapping with super additive objects and perhaps some bloom

 
This forum is full of trolls and disinfo agents.

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
1st November, 2011 at 02:42:29 -


Originally Posted by Fordom
Hdr tonemapping with super additive objects and perhaps some bloom



When did MMF2 HWA get HDR tonemaping? Have I been gone that long?

 
http://www.facebook.com/truediamondgame

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
1st November, 2011 at 02:59:53 -

And more to the point, what the fuck are super additive objects? hahahaaa

 
n/a
   

Post Reply



 



Advertisement

Worth A Click