The Daily Click ::. Forums ::. Klik Coding Help ::. Dynamic Lighting, wtf?
 

Post Reply  Post Oekaki 
 

Posted By Message

AuraDragon



Registered
  13/03/2009
Points
  14
8th April, 2009 at 00:40:18 -

I'm stumped,

I've tinkered with the idea countless times in my head, a few times in MMF2 Dev, but I can't seem to get a perfect dynamic lighting effect without having to use HWA. I've tried using a single alpha-channel 'light source', but then I can't have pitch black objects when they are not illuminated. (Everything is black unless within the light source area) I've also tried having a huge negative lightsource, but that stresses the computer to no end unless I add HWA.

So my question is, how do I make a dynamic light effect of everything pitch black except the areas within the flash lights or lamps, but without using HWA.


 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
8th April, 2009 at 00:46:34 -

pixeltheif knows.

im pretty sure it has something to do with the overlay object and layers.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
8th April, 2009 at 02:10:21 -

I wonder how many times we've sat in a thread waiting for Pixelthief or Muz.

 

  		
  		

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
8th April, 2009 at 02:11:10 -

and sometimes they never come

 
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
8th April, 2009 at 02:38:51 -

I'm not entirely sure what the problem is with using HWA though. I've used it with nothing but positive results. This past build that was released with all sorts of complaints, has been pretty much fixed of all it's major issues. In fact, I have yet to actually run into any issues much less any that are crippling to a project.

 
http://www.facebook.com/truediamondgame

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  370

VIP MemberCardboard BoxThe Cake is a Lie
8th April, 2009 at 02:40:50 -

I'm not fully familiar with the word dynamic lighting, concerning I just say LIGHTING (Mashed Potatoes and gravy )

But here's one idea. If you get or have Paint shop pro it has a tool called 'Retouch' (Looks like a pointing hand). In it there's an effect called 'Lighten RBG'. Starting with a black area just lighten a spot on it until you feel the lighting is good enough. Use the select tool (looks like a magic wand) and select the area. Copy that and paste it into an active object's frame (Make sure the background is black though). Then select the object's ink effect to add.

Well, I hope this helped- I'm probably on the way wrong topic.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
8th April, 2009 at 02:48:18 -

i think youre thinking about static lighting werewolf. dynamic lghting is when you actually have lightsources at runtime in the game that effect shadows and lighting while you play the game.

 
n/a

W3R3W00F

Drum and Bass Fueled Psycho

Registered
  08/11/2008
Points
  370

VIP MemberCardboard BoxThe Cake is a Lie
8th April, 2009 at 02:51:09 -

Oh gyah- I wouldn't know a thing then. Dang, I can only imagine how that's done.

 
n/a

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
8th April, 2009 at 02:56:30 -

There was an open source dynamic light engine a while ago, but shadows were like Doom 3's (either on or off) and weren't smooth, also ran dog slow. But it looked superb. Sure its around here somewhere.

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Fish20



Registered
  03/12/2007
Points
  263

VIP MemberPS3 OwnerI like Aliens!I'm a Storm TrooperIt's-a me, Mario!I am an April FoolPicture Me This Round 48 Winner!
8th April, 2009 at 03:34:22 -

There is an article, but i didn't read it so........
http://www.create-games.com/article.asp?id=1564

 
All your base are in another castle, take this.

AuraDragon



Registered
  13/03/2009
Points
  14
11th April, 2009 at 22:12:43 -

I made a basic Negative light effect, it looks quite good, but has a serious drain on the system and is prone to glitches and also can't be expanded.

However I'm going to try the alternate light engine in the topic that Fish20 linked to.

 
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
11th April, 2009 at 23:15:02 -

How about you just like... use the HWA build? It's pretty stable. I already brought it up earlier, asking why you weren't interested in it. You never answered me.

 
http://www.facebook.com/truediamondgame

AuraDragon



Registered
  13/03/2009
Points
  14
13th April, 2009 at 05:00:39 -

Well, even if I put on the HWA, it would be too hazardous (in my opinion) to cover the screen with 1x1 actives (even a 320x240 would be overkill) with different transparencies based on values from nearby "light sources".

If there was an object that could make a giant sheet of pixels with variable transparency (based on distance from light source), then that would be really effective and cool, but so far I haven't found gold with my search for a perfect light engine.

Blob shaped "light sources" with the ADD effect don't cut it either, it just looks like a jet engine and eats away at the objects visually, though it would be perfect for a misty evening.

 
n/a

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
13th April, 2009 at 05:05:57 -

http://www.create-games.com/download.asp?id=6564

like i said ask pixelthief. the dl link no longer works but get a hold of him. if i remember it ran fairly fast too.

 
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
13th April, 2009 at 05:47:22 -

With HWA, you can have a big active over the screen with a Negative pixelshader and then use addition pixelshaders to cancel out.

Image
At the risk of being accused of showing off, this is an example of this exact effect being used in a game I'm making.

However if you can't install the latest version of MMF2 or HWA builds for legitimacy reasons, then I can see much luck is going to come your direction anyway. MMF2 has gone through a wealth of very nice updates that are pretty hard to get around without.

 
http://www.facebook.com/truediamondgame
   

Post Reply



 



Advertisement

Worth A Click