The Daily Click ::. Forums ::. Klik Coding Help ::. bump mapping of course!
 

Post Reply  Post Oekaki 
 

Posted By Message

Disthron



Registered
  08/02/2005
Points
  1101

VIP Member
25th January, 2008 at 21:19:45 -

Ok, I have an idea about this, I'm not shore if it would work but I'll put it out there anyway.

You could try using a sprite as a semi-transparent overlay. For every animation, possibly including alternat directions, you would have a corresponding animation in the overlay sprite. You would use the directions in the overlay sprite to change the directions of the shadows on the main sprite. This way you can have the overlay sprite always looking toward the closest light sorce and as long as you've dune the pre-rendering right you should be able to fake the effect.

In order to make the directions for the shadows. First I'd make a black and white bumpmap for my charecter. I'd go into Photoshop and use the render lighting effects. I'd position the light in the 32 directions that MMF suports, I think you can save custome presets and I would definatly use a macro to help with all the frames. This should give you the shadows.

Though it would be considerably less work for something like a car as oposed to a human. This would still be pritty tedious and time consuming way to do it. Also you won't be able to get it looking perfict. However if you were to slug through it you could probably acheve a cool effect that I don't think would caus much slowdown at run time. You wouldn't even need to use any extensions, just give it a tint value.

 
"Oh, my god! A lightning monster just ripped out this poor woman's eyes, and your mocking her shrubbery!" - The Spoony One

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
26th January, 2008 at 07:14:25 -

Yeah, but as you said, that's a lot of work, and it's still not the real thing. And it wouldn't allow for multiple light sources and stuff like that. But if you're prepared to go such lengths just for a half-arsed version of the effect, then sure =P

The reason why they can do stuff like this in other languages is that they have much more control over their bitmaps and blitting/drawing operations than we have in MMF. Languages like C++ are harder to learn, and more abstract, but so much faster and more flexible than MMF when it comes to things like this.

 
n/a

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
26th January, 2008 at 17:17:51 -

coff Construct coff coff coff

 
n/a

Ganymede Graphics

Possibly Insane

Registered
  17/04/2006
Points
  2711

GOTW JANUARY 2011
28th January, 2008 at 19:18:59 -

yeah the animation direction technique sounds like one of our only working ideas so far... i need to learn c++ >_>

 
Especially that.
   

Post Reply



 



Advertisement

Worth A Click