The Daily Click ::. Forums ::. Klik Coding Help ::. Light/Darkness effects?
 

Post Reply  Post Oekaki 
 

Posted By Message

J.C



Registered
  22/03/2013 05:18:14
Points
  118
3rd February, 2014 at 03/02/2014 22:23:57 -

Having more trouble here.

In the past I tried to replicate the darkness effects seen with a couple examples from castleofbritain, but I can't for the life of me figure out how he achieved it.

I'm trying to replicate a circle of light that follows the player as he traverses a dark cave.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
6th February, 2014 at 06/02/2014 22:16:32 -

http://www.sketchy.co.nf/downloads/Lights.mfa

Note that there are HWA effects applied to the layers, as well as individual objects.
Unfortunately, there is no way in MMF2 to have objects cast realistic shadows, that will run fast enough to be usable in an actual game.

 
n/a

J.C



Registered
  22/03/2013 05:18:14
Points
  118
8th February, 2014 at 08/02/2014 17:26:42 -


Originally Posted by Sketchy
http://www.sketchy.co.nf/downloads/Lights.mfa

Note that there are HWA effects applied to the layers, as well as individual objects.
Unfortunately, there is no way in MMF2 to have objects cast realistic shadows, that will run fast enough to be usable in an actual game.



Finally figured it out! The one thing I was missing was that I had to set the Display mode to Direct3d 9. That's why simply subtracting both the light and the darkness layers didn't work before.

The method I used earlier was combining the light and the darkness into one active object and center it on the frame, the only problem with that was of course when the player reached the edges of the screen.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click