Hard Light Productions Forums

Community Projects => The FreeSpace Upgrade Project => Topic started by: MiniSiets on March 11, 2008, 04:57:19 pm

Title: CrazyBump - Instant Normal Maps
Post by: MiniSiets on March 11, 2008, 04:57:19 pm
Don't know if this is of any use to you guys, but since I heard you were doing normal maps on your ships, this might be a good temporary solution for ships still waiting to get their normal map makeover.

The program is called "CrazyBump" and what it does supposedly is take any texture and create a normal map from it or specular depending on what you choose. It will do all the calculations itself in figuring out what would make the texture look best when lighting is applied to its normal maps. Just posting this in case it might be of use to guys. Sorry if this topic may have come up already.

http://crazybump.com
Title: Re: CrazyBump - Instant Normal Maps
Post by: FireCrack on March 12, 2008, 12:25:41 pm
Wha.... preety neat...
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 12, 2008, 09:00:09 pm
It generates normal maps pretty damn well, it makes nVidia's normal map filter look like crap in comparison. The only problem is is that there is noise along the lines of what I had when I set the "least CPU" option in Photoshop to save my first normal map. Photoshop and FSO are the only ones that can see the noise though.

[EDIT] Okay, every format seems to have random noise.

[EDIT2] Unless this can be fixed, I say this'll have to be passed on and have the FSU team continue to work on normal maps the way they have been.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Woolie Wool on March 13, 2008, 12:02:45 am
I don't get any noise/uglyboxes on my normal maps.
Title: Re: CrazyBump - Instant Normal Maps
Post by: nvsblmnc on March 13, 2008, 08:17:29 am
[EDIT] Okay, every format seems to have random noise.

Jus a guess:

Do you have any dithering options set when you save the files?  I've found that doing so can introduce noise into othewise clear images.  (Or it might by that I'm just bad at making textures)
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 13, 2008, 11:41:23 am
This is what I was told:

Quote
I think I see the problem.

If your texture dimensions aren't powers of two, CrazyBump saves with DXTN compression even if you chose a non-DXTN format.

I'll let you know when there's a fix, but for now, I recommend using a format other than DDS, or using power-of-two textures

I'm not quite sure what power-of-two textures are, since I'm relatively new to all this, and I don't know how to CREATE power-of-two textures, or, if it's possible, if FSO supports power-of-two.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Vasudan Admiral on March 13, 2008, 12:15:54 pm
FSO only supports power of two DDS files - which includes the normal map types. Power of two simply means that the horizontal and vertical dimensions (ie, pixel counts) of the image are a number that is a power of two, such as 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 up to 2048 (bigger than this and FS will squish it).

So basically if you can create an image where you specify how many horizontal pixels by how many vertical, you can make a power of two resolution texture. ;)
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 13, 2008, 12:18:39 pm
Well, the Hermes textures are power-of-two, since they're all 2048 x 2048. So it's a .dds saving issue.
Title: Re: CrazyBump - Instant Normal Maps
Post by: bkd86 on March 13, 2008, 07:32:16 pm
There will still be noise because you have to turn up the intensity of crazybump to get the detail on some textures to pop out, also it is taking all the color data and making the normal map from it so unless the color is a uniform color with no variation you will get grain etc. Thats why you have to use this in conjunction with editing and painting your normal maps separately for currently modeled ships. Unless you are making a high poly ship then baking the normal map onto a low poly one, or painting the normal map specifically your going to have to do more work to get the texture to work. Also what VA said applies, lots of the ships have strange texture sizes.
Title: Re: CrazyBump - Instant Normal Maps
Post by: blackhole on March 13, 2008, 07:39:40 pm
Quote
Well, the Hermes textures are power-of-two, since they're all 2048 x 2048. So it's a .dds saving issue.

The hermes is an escape pod, correct?

Why the bloody hell do you have 2048x2048 textures on a goddamn ESCAPE POD?!

Surely there are other, less totally useless ways to make peoples' GPUs cry.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 13, 2008, 08:14:27 pm
Don't look at me, I didn't make them 2048 x 2048.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Vasudan Admiral on March 13, 2008, 08:33:14 pm
Well the one in the MVPs is 512x512. :p
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 13, 2008, 11:05:48 pm
Not the new ones, maybe. I'm pretty sure the 3.6.9 Zetas were the ones that had the 2048x. :P
Title: Re: CrazyBump - Instant Normal Maps
Post by: Vasudan Admiral on March 13, 2008, 11:52:42 pm
Nope, 512 there too. :p
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 14, 2008, 12:08:39 am
How the hell did I get 2048 x 2048 maps then?

Okay, now for some reason the normal map filter for Photoshop is producing random noise too. :wtf:

[EDIT] Okay, uh... something is definitely wrong here, because now all of a sudden all my normal maps are being saved with random noise. :wtf:
Title: Re: CrazyBump - Instant Normal Maps
Post by: Vasudan Admiral on March 14, 2008, 03:20:56 am
What plugin are you using? It should be something like "Nvidia dds Format v8.23" or newer if there is one. If that's what you have, then what are all the other settings you're using?

Depending on how you're making these normal maps it may not be the DDS plugin at all actually - so what's the whole process you're using?
Title: Re: CrazyBump - Instant Normal Maps
Post by: Hellstryker on March 14, 2008, 10:25:54 am
Watch, it'l turn out hes using the nvidia plugin with an ATi card or somthing  :p
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 14, 2008, 11:25:22 am
What plugin are you using? It should be something like "Nvidia dds Format v8.23" or newer if there is one. If that's what you have, then what are all the other settings you're using?

Depending on how you're making these normal maps it may not be the DDS plugin at all actually - so what's the whole process you're using?

I use the nVidia normal map filter and the nVidia .dds plugin, which is version 8.23. I got it working correctly now. This **** is weird. :P

Watch, it'l turn out hes using the nvidia plugin with an ATi card or somthing  :p

Ohmigod! You're right!

Not. I have an 8600 GT.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Herra Tohtori on March 14, 2008, 11:28:25 am
Watch, it'l turn out hes using the nvidia plugin with an ATi card or somthing  :p

Makes no difference since GPU has no part in saving a DDS file, it just uses them... as far as I know anyway.

Random noise sounds like You're Doing it Wrong, but how, I have no idea. Accumulated compression artefacts perhaps?

Anyway, I personally endorse GIMP Normalmap plugin for generating a normal map from elevation map, saving as TGA, then converting that to DXT5nm via nvDXT command line utility.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 14, 2008, 11:58:55 am
This is what I get with CrazyBump.

(http://www.hexellent.com/files/49/screen0714.jpg)
Title: Re: CrazyBump - Instant Normal Maps
Post by: Galemp on March 14, 2008, 12:38:21 pm
The hermes is an escape pod, correct?

Why the bloody hell do you have 2048x2048 textures on a goddamn ESCAPE POD?!

Surely there are other, less totally useless ways to make peoples' GPUs cry.

I came in here to say that. Thanks!
Title: Re: CrazyBump - Instant Normal Maps
Post by: Woolie Wool on March 14, 2008, 01:28:19 pm
Crazybump + Anubis shinemap = near-perfect normal map

(http://img254.imageshack.us/img254/4609/noobisvs4.png)
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 14, 2008, 02:28:28 pm
It actually looks good on Vasudan craft. :D
Title: Re: CrazyBump - Instant Normal Maps
Post by: Polpolion on March 15, 2008, 09:38:04 pm
Now if only the textures didn't suck.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Cobra on March 15, 2008, 11:27:04 pm
Dude, normal maps actually make the textures look better. :nervous:
Title: Re: CrazyBump - Instant Normal Maps
Post by: FireCrack on March 16, 2008, 12:26:32 am
Hmm... the anubis bumpmap should be inverted....
Title: Re: CrazyBump - Instant Normal Maps
Post by: Apathy on March 19, 2008, 02:03:00 pm
Hmm... the anubis bumpmap should be inverted....

Yeah pop in, not out.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Topgun on April 22, 2008, 05:27:21 pm
Watch, it'l turn out hes using the nvidia plugin with an ATi card or somthing  :p
Makes no difference since GPU has no part in saving a DDS file, it just uses them... as far as I know anyway.
thats not entirely true. try using the gimp dds plugin on a comp with a tnt2.
back on topic. cobra is probably using fastest compresion or something like that.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Herra Tohtori on April 22, 2008, 06:16:36 pm
How does if affect it, I'm a bit curious now... :nervous:

As far as quality vs compression is concerned, the highest quality normal maps for FS2_Open can be made by converting the height map to normal map in GIMP or Photoshop or whatever you prefer to use, then copy red channel into alpha channel, and green channel into the colour channels (actually, green channel is the only one needed, red and blue can be blank, however I prefer to have all colour channels the same), then save that as uncomressed, u8888 DDS file. FS2_Open shader system seems to read that kind of file correctly, which shouldn't be surprise because basically the channel management is the only thing that separates a dxt5nm normal map from a dxt5 texture as far as I know.

Of course, this does not offer as much performance advantage as dxt5-compressed normal map does, but for WIP normal maps it's a good way to check how the normal map looks in-game, without any artefacting.
Title: Re: CrazyBump - Instant Normal Maps
Post by: Topgun on April 24, 2008, 09:12:15 am
How does if affect it, I'm a bit curious now... :nervous:
no idea. I just know that I can't make normal maps with a tnt2.