Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: comICEMAN on December 20, 2003, 09:49:43 am

Title: Bump-Map support?
Post by: comICEMAN on December 20, 2003, 09:49:43 am
Is there Bumpmap support? i have got an adobe photoshop plugin to make bumpmaps from normal pictures/textures
Title: Bump-Map support?
Post by: Bobboau on December 20, 2003, 11:02:07 am
we can convert then while loading, but we havn't implemented this yet
Title: Bump-Map support?
Post by: Flipside on December 20, 2003, 11:24:47 am
Is it going to be alpha channel based when it is, the usual 0-255 with 255 as high?

Flipside :D
Title: Bump-Map support?
Post by: Bobboau on December 20, 2003, 12:26:10 pm
grey scale hight map
Title: Bump-Map support?
Post by: Sticks on December 20, 2003, 12:40:36 pm
Look for this and possibly self shadowing after 3.6
Title: Bump-Map support?
Post by: comICEMAN on December 20, 2003, 03:37:34 pm
i got good results with bumpmaps is serval games.
Shouldn't be much work for you all, or?
Title: Bump-Map support?
Post by: Flipside on December 20, 2003, 03:41:57 pm
This is high end stuff as well remember, I know as a fact my card does not support it as hardware, and many people's won't so keep those Greyscale bitmaps smallish ;)

Flipside :D
Title: Bump-Map support?
Post by: FoxHound on December 21, 2003, 02:28:48 pm
I'd absolutly love bump mapping.... and 3.6, how far away would that be, sounds tres uber ! ;7
Title: Bump-Map support?
Post by: Sticks on December 21, 2003, 04:58:50 pm
I'm not sure. We're having issues getting it out as many bugs are still left unattended, and I think the holidays have been less conducive to coding than us devs would have liked.
Title: Bump-Map support?
Post by: Bobboau on December 21, 2003, 05:39:38 pm
right now I'm spaced out on nasil decongestiants, I'm actualy a bit worried, but I'm sure I'll be fine
Title: Bump-Map support?
Post by: vyper on December 21, 2003, 06:56:25 pm
Perhaps it'll give you an new semi-reality viewpoint on the code.

Perhaps your nose will fall off, I'm no doctor. Anyway, bump maps, cool :yes: hardware supported for some time....
Title: Bump-Map support?
Post by: Carl on December 21, 2003, 08:19:08 pm
the problem with bump maps is you really can't make them small. i suppose if it's grayscale the file size will be smaller, but if it's less than 256x256 then it'll look...gooey.
Title: Bump-Map support?
Post by: comICEMAN on December 22, 2003, 05:03:59 am
Quote
Originally posted by Carl
the problem with bump maps is you really can't make them small. i suppose if it's grayscale the file size will be smaller, but if it's less than 256x256 then it'll look...gooey.


i test it...
Bomber2s-01a.pcx (256X256)
Bumpmap:
(http://mitglied.lycos.de/jimmlermorpheus/test.jpg)

So it works good, and why grayscale? isnt grayscale for other map sort?
Title: Bump-Map support?
Post by: aldo_14 on December 22, 2003, 05:06:58 am
You only need to know height for a bumpmap - so you can measure it in the amount of white  - 1 value between 0 and 255.  Simple & efficient - you're basically measuring pixel light  intensity anyways, so no need for colour.
Title: Bump-Map support?
Post by: comICEMAN on December 22, 2003, 05:13:38 am
i know an other game which has these maps:
texture: an normal texture
bumpmap: colored like these
specularmap: grayscale
hightmap: grayscale

and that result you can maybe guess is realy good
Title: Bump-Map support?
Post by: aldo_14 on December 22, 2003, 05:18:54 am
Quote
Originally posted by comICEMAN
i know an other game which has these maps:
texture: an normal texture
bumpmap: colored like these
specularmap: grayscale
hightmap: grayscale

and that result you can maybe guess is realy good


What do the bumpmaps actually look like?  I'm guessing the reason would likely be using the added pixels value (rgb values, or the equivalent) to give more 'heights' to the bumpmap....

EDIT;  Think i may be getting confused between bump & height maps.  http://vcg.iei.pi.cnr.it/bumpmapping.html#intro seems to be pretty helpful....I'll stop me ham-fisted attempts at figuring this out and let someone from the SCP give a proper answer methinks.
Title: Bump-Map support?
Post by: comICEMAN on December 22, 2003, 05:44:14 am
i made quickly in 3ds max an little example for ones who doesnt know what bumpmaps do...

first we have a grey wall:
(http://mitglied.lycos.de/jimmlermorpheus/rofl/1.jpg)
then i added a bump map...
(http://mitglied.lycos.de/jimmlermorpheus/rofl/2.jpg)what you see is no texture, but just a 1-grey-color wall, which only isnt flat anymore (bumpmap effect)
than its easy to put an texture on it.
(http://mitglied.lycos.de/jimmlermorpheus/rofl/3.jpg)
Because i'm no 3ds max freak i dont have a real good texture and dont know how to make a specular map in it, but imagine freespace2 ships have got bump maps AND specular maps, wouldn't it be a great graphic?
Title: Bump-Map support?
Post by: Flipside on December 22, 2003, 06:05:49 am
Yes, also, imagine how long it takes 3Ds Max to render an object with bump abd shine mapping ;)

Flipside :D
Title: Bump-Map support?
Post by: comICEMAN on December 22, 2003, 07:03:33 am
just download the free test version of the AMP2 engine, there you can see bumpmapping and its not lagging!
Title: Bump-Map support?
Post by: Flaser on December 22, 2003, 08:00:32 am
FS_Open uses colored specular maps because it can create more effects that way than simple shinyness.