Skip to main content
GameDev.net gamedev.net
🔒 Locked

Chrome Bitmaps

Started by FrancoisSoft Dec 8, 2002 at 4:39 PM 4 replies 300+ views
Original Post
FrancoisSoft
FrancoisSoft
Oh yeah, this is a great idea... creating an object that produces a chrome version of a regular bitmap. The bitmap that comes out will look like real chrome. This should work for any bitmap except chrome, of course. Check this out... I didn''t make this but the piece of software that I''m going to develop later will produce graphics like this!
erjo
erjo
Unless im hugely mistaken, you need 3d data to make a chromed effect. Bitmaps are 2d, so it wont work, unless you make a program that looks at a 2d bitmaps and creates a 3d model from ir.. Dont think its ever been done(in a good way), but.. go ahead and try...
davepermen
davepermen
thats environmental mapping on a 3dmesh, if i''m not mistaken..

you _can_ do chrome effects in 2d, photoshop has a chrome filter, too. but don''t expect to have it look real. you would need a real 3d world and real reflections to get it real.. (lots of real around here:D).

no offense, but you''re just somehow damn optmistic in your work:D bether get some fun games working. small, possibly slow, but at least something to play. and then add features to them..

"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia
My Page davepermen.net | My Music on Bandcamp and on Soundcloud
FrancoisSoft
FrancoisSoft
quote:
Original post by davepermen
thats environmental mapping on a 3dmesh, if i''m not mistaken..

you _can_ do chrome effects in 2d, photoshop has a chrome filter, too. but don''t expect to have it look real. you would need a real 3d world and real reflections to get it real.. (lots of real around here:D).

no offense, but you''re just somehow damn optmistic in your work:D bether get some fun games working. small, possibly slow, but at least something to play. and then add features to them..

"take a look around" - limp bizkit
www.google.com


I already have a game. Just visit my website and go to "projects".
S1CA
S1CA
So you''re intending on doing this entirely in image space?

I suppose an approximation may be possible for pre-rendered and photographic images, something like (off the top of my head):

a) Convert to luminance only image
b) Average luminance to get a very approximate ambient level
c) Ask the user to tell you where the light source is coming from in 3d
d) Use b & c to convert the image into a normal map
e) Calculate per pixel reflection vector with per pixel normal and light dirction and do perform 3D envmapping


I suppose there would be other methods too such as a two dimensional edge/contour detection filter to find the curvature within the scene with an appropriately scaled envmap image made to fit that.


Either way, not an easy task to get anywhere near ''nice'' results, and so many places ideas like the one I posted above could fall down - such as adding chrome effects to a pastel drawn cartoon.




--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
FrancoisSoft
FrancoisSoft
quote:
Original post by S1CA
So you''re intending on doing this entirely in image space?

I suppose an approximation may be possible for pre-rendered and photographic images, something like (off the top of my head):

a) Convert to luminance only image
b) Average luminance to get a very approximate ambient level
c) Ask the user to tell you where the light source is coming from in 3d
d) Use b & c to convert the image into a normal map
e) Calculate per pixel reflection vector with per pixel normal and light dirction and do perform 3D envmapping


I suppose there would be other methods too such as a two dimensional edge/contour detection filter to find the curvature within the scene with an appropriately scaled envmap image made to fit that.


Either way, not an easy task to get anywhere near ''nice'' results, and so many places ideas like the one I posted above could fall down - such as adding chrome effects to a pastel drawn cartoon.




--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com


You''re actually not too far from the method I''m going to use. But I don''t need a 3-D environment to do this. I don''t even need to know where the light source is comming from because many bitmaps with character like Mario already have highlights. I''m going to post an article about this on my website not too long from now so stay tuned.


Hey, don''t forget to visit my page... by clicking here!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.