FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Scenery Design - 3D Objects > GMax and 3DS Max

GMax and 3DS Max Use this forum to discuss your GMax and 3DS Max problems

Reply
 
Thread Tools Display Modes
  #1  
Old 08 Mar 2007, 15:07
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
[FsX] Bump maps

Hi,

I have been playing a bit with bump maps in the FsX gamepack to see how I can use them on my scenery objects. But I have not really find the best way to use them yet.

Look at the attached image. On the left you see a cube with the texture without a bump map (only reflection on the windows added). The other two screenshots are from the same building with bump maps applied. As you can see the one on the right has a little bit too much "bumps", it makes the building look ugly I think.

But my main problem at the moment is how the building is lighted. It seems that when I use the bump maps, that all sides are shaded almost the same. While you can see on the left how it looks without the bump map.

Has anybody else seen this as well?
Attached Thumbnails
Click image for larger version

Name:	bump.jpg
Views:	2823
Size:	44.5 KB
ID:	1793  
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #2  
Old 09 Mar 2007, 09:42
Tasmanet's Avatar
Tasmanet Tasmanet is offline
  australia
Location: Hobart
Join Date: Mar 2005
Posts: 214
Needs reversing/inverting on the windows

Hi Arno,

I think the 3rd. one is O.K.
But your bump map needs reversing/inverting on the windows ?? . Looks more like glass bricks than a window frame.

I am not sure there is anything wrong with the lighting allowing where the shadow is.

Steve
__________________
AFS2012
Reply With Quote
  #3  
Old 09 Mar 2007, 15:23
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
Hi Steve,

I still like the texture without bump maps more, it looks more natural I think. You are right that the bump map itself is not perfect, I used only a few quick filters to make it from the normal texture, as I was just seeing what bump maps can do.

If you look at the image without bump maps, you see that the front polygon (the one you look at), is a lot darker than the side polygon (the one that the sun is shining at). I think this is quite realistic looking at the shadow, but with the bump maps added there is hardly a difference between the front and the side. So that looks weird to me.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #4  
Old 09 Mar 2007, 15:27
Paavo's Avatar
Paavo Paavo is offline
  estonia
Join Date: May 2006
Posts: 138
Perhaps you should use bump maps in combination with volume shadows?
Then the object would cast a shadow on itself and polys facing away from sun would not be lit.

Haven't tested it, tho.
Reply With Quote
  #5  
Old 09 Mar 2007, 15:31
manfred's Avatar
manfred manfred is offline
  austria
Location: near LOXT
Join Date: Apr 2005
Posts: 54
Arno,
if you have Photohop, then you can use use this great tool from nvidia: http://developer.nvidia.com/object/p...s_plugins.html There is a few Photoshop plugins, with this you can make bump maps easier.
__________________
Kind regards
Manfred
The VFR Flyers
Reply With Quote
  #6  
Old 12 Mar 2007, 12:57
marcoh marcoh is offline
  france
Location: Nantes
Join Date: Jan 2007
Posts: 43
I cant test the problem because i dont have bump maps on my object when i tried you put some.
Is there any special box to check in Gmax FsX material. I have validated a gray picture in Bump maps parameters. I have tryed to change the scale in "Other textuye info" area. The gay scale picture is very scharpen (black to white).
But the object is always "flat".
There is not more explanation in FsXmaterial.HTML file

Maybe an "enchanced parameter" to check ?

Marc
Reply With Quote
  #7  
Old 12 Mar 2007, 13:49
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
Hi Manfred,

Quote:
Originally Posted by manfred View Post
if you have Photohop, then you can use use this great tool from nvidia: http://developer.nvidia.com/object/p...s_plugins.html There is a few Photoshop plugins, with this you can make bump maps easier.
Yes, that is indeed the plugin I used to make the bump map. Works very easy indeed.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #8  
Old 12 Mar 2007, 13:51
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
Hi Marc,

Quote:
Originally Posted by marcoh View Post
I cant test the problem because i dont have bump maps on my object when i tried you put some.
Is there any special box to check in Gmax FsX material. I have validated a gray picture in Bump maps parameters. I have tryed to change the scale in "Other textuye info" area. The gay scale picture is very scharpen (black to white).
But the object is always "flat".
There is not more explanation in FsXmaterial.HTML file

Maybe an "enchanced parameter" to check ?
No, I did not have to check any other options (except from adding the texture as bump map under the maps of course). Are you sure your bump map is correct? I am not sure if a grayscale images works fine.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #9  
Old 13 Mar 2007, 06:33
Tasmanet's Avatar
Tasmanet Tasmanet is offline
  australia
Location: Hobart
Join Date: Mar 2005
Posts: 214
2 bump maps in fx ??

Hi all.

One thing I did notice in the FSX demo that one of the bump textures did also use the alpha channel for what appeared to be another bump map.

I could be wrong but I commented at the time that one might be for in front of the plane and one for behind the plane.

When I was doing bump maps for Poser I remember someone commenting that something similar might be needed in Poser for body hair. ie a positive bump.


Steve
__________________
AFS2012
Reply With Quote
  #10  
Old 13 Mar 2007, 12:46
n4gix n4gix is offline
  unitedstates
Location: Hammond, Indiana
Join Date: Sep 2006
Posts: 8,517
Quote:
Originally Posted by Tasmanet View Post
Hi all.

One thing I did notice in the FSX demo that one of the bump textures did also use the alpha channel for what appeared to be another bump map.

I could be wrong but I commented at the time that one might be for in front of the plane and one for behind the plane.

When I was doing bump maps for Poser I remember someone commenting that something similar might be needed in Poser for body hair. ie a positive bump.


Steve
Nope! The Alpha channel is simply what WAS in the Red channel that's been cut-n-pasted to the Alpha channel, before the Green chanel's contents are "Inverted" (note: I don't mean "flipped," I meand that the entire image is "photo reverse image," i.e. "Invert"ed...

Here is the reason why. Compressing the image results in severe degradation of the normal information: in fact, the RGB vectors aare no longer precisely 1 as they should be.

"There is another option, but it requires that your normal map be changed around a bit and also that your shader be edited slightly. DXT5 gives the most quality to the green channel and to the alpha channel. We can take advantage of this to "hijack" the DXT5 format and turn it into a normal map compression format. First we need to re-arrange the data in the normal map. Take the red channel data (X) and put it in the alpha channel. Now make the red and blue channels black. Now we need to adjust the shader to switch the data back around for us. The shader needs to be told that the red channel data is in the alpha channel of the texture and that it needs to calculate the blue channel values itself. This is possible with a little algebra because we can assume that the vector that results from R,G, and B will be unit length one. If you are able to make these changes to both the normal map and the shader, you'll get 4 to 1 normal map compression with very little quality loss!"
http://www.bencloward.com/tutorials_normal_maps12.shtml

ACES has written thier Shader to utilize this rearrangement of the normal map, which allows us to use DDS/DXT5 compression.

BTW, if you want to learn more about FSX's version of "bump mapping," understand that it's more commonly known as "normal mapping." Actual "bump mapping" is generally a gray-scale image with no Alpha channel. "Normal mapping" on the other hand is an entirely different concept.

There's a very nice article here: http://en.wikipedia.org/wiki/Normal_mapping that explains this in greater detail. From what I've read so far, it's not clear to me that ACES themselves have fully exploited the potential in their own examples.

I haven't taken the time to read this "tutorial" in depth yet, but it looks promising!
http://www.bencloward.com/tutorials_normal_maps1.shtml

Last edited by n4gix; 13 Mar 2007 at 13:26.
Reply With Quote
  #11  
Old 13 Mar 2007, 13:13
n4gix n4gix is offline
  unitedstates
Location: Hammond, Indiana
Join Date: Sep 2006
Posts: 8,517
Ah! Here's something I found that might be relevant to the issue at hand:

"Positive or Negative Y
When using Tangent Space normal maps, the most common difference in formats is the direction that the green channel is lit. Some programs light the green channel from the left (postive Y) and others light the green channel from the right (negative Y). Some programs give you the option to choose positive or negative Y. If your normal map isn't being lit correctly, the first thing that you should try is to flip the green channel. Just open the normal map in Photoshop, select the green channel, and choose "Invert." That will give you the same result as if you had rendered the normal map in the other format. "

http://www.bencloward.com/tutorials_normal_maps11.shtml
Reply With Quote
  #12  
Old 13 Mar 2007, 13:38
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
Interesting find, but for me inverting the green channel did not work. The shading on the model is still not correct. Can somebody confirm this?
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #13  
Old 14 Mar 2007, 01:18
bob5568 bob5568 is offline
 
Join Date: Jul 2004
Posts: 902
the plot thickens!

check this out! I used the green channel control on the nvidia tools filter in photoshop, inverted x and y, and the lighting DID shift...its still not right, but it changed at least which suggests a solution is around the bend.

now the light is reflected differently, its overall darker, and the light is lighter off the East wall which it should and the south wall, which it shouldn't (at least the default doesn't), and the west wall and north wall is noticeable darker.
Attached Thumbnails
Click image for larger version

Name:	invertxy-greenchannel.jpg
Views:	515
Size:	42.7 KB
ID:	1813   Click image for larger version

Name:	default dawn.jpg
Views:	577
Size:	41.2 KB
ID:	1814  
Reply With Quote
  #14  
Old 16 Mar 2007, 15:24
marcoh marcoh is offline
  france
Location: Nantes
Join Date: Jan 2007
Posts: 43
I have made many tests to bump and the result is same. Problem with shading when pump map is selected.

I have detected somes problems in gmax material editor : checking or not the box change nothing in map roll-up, changing the amount change nothing to. If you have select a texture, the bump effect will alway appears in FS. If you want to delete it, make a new texture.
If you check a detailled texture, it don't be display, if you have put a bump texture before.
If you checked a detailled texture in a texture, the detailled texture will appears in all the over textures in the scene, but without effects in FS.

The rain effect is correctly work except if you have bump and detailled texture checked (check the box "use global environment as map as reflexion and try value of "reflexion scale"

More tests tomorow, maybe.
Reply With Quote
  #15  
Old 17 Mar 2007, 10:00
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
Hi,

I fixed the shading problem with the bump maps. Bill's post contained most of the information to solve it, I just had to read it a couple of times .

What I did was the following:
  1. Create a normal map with the NVidia plugin
  2. Copy the content of the red channel to the alpha channel
  3. Make the red channel black
  4. Invert the green channel
  5. Make the blue channel white
  6. Save the result as DXT5 image

After that it showed up perfect on my object. Now I just have to learn how to make a good bump map to start with, so that I get a more realistic looking result in FsX .
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #16  
Old 17 Mar 2007, 12:03
n4gix n4gix is offline
  unitedstates
Location: Hammond, Indiana
Join Date: Sep 2006
Posts: 8,517
Quote:
Originally Posted by arno View Post
Hi,

I fixed the shading problem with the bump maps. Bill's post contained most of the information to solve it, I just had to read it a couple of times .

5. Make the blue channel white

After that it showed up perfect on my object. Now I just have to learn how to make a good bump map to start with, so that I get a more realistic looking result in FsX .
I'm happy that the information was useful. Making the blue channel white makes perfect sense, since that is - in fact - what all the bump maps that ACES created use. I just noticed that the article on DDS/DXT5 compression specified using "black" for the Blue channel, which apparently doesn't work well in FSX...

Since the whole operation depends on just how ACES wrote the shader code for calculating the normal's vector, we have no way of knowing whether they took the R and G vectors and added - or subtracted from the color in the Red channel to obtain the result...

It's an interesting exercise to load air_tb1_2.dds and air_tb1_2_bump.dds in Photoshop, then try to "recreate" their bump map from the diffuse texture, using the nVidea plugin...

I ran the same type "experiment" using ACES's default aircraft textures, since that's my primary interest of course.
Reply With Quote
  #17  
Old 17 Mar 2007, 16:01
marcoh marcoh is offline
  france
Location: Nantes
Join Date: Jan 2007
Posts: 43
More i test and less i anderstand.
Now i can have a detailled and bump-mapped texture in gmax, and the shading is correct, but ...

look the picture with a big cylinder for test. There is a z-sorting problem and the top of the cylinder is half transparent.



the diffuse color texture is in dxt3 format 1024x1024 with alpha grayscale channel
the detailled texture is a 256 color, bmp format. 256x256
the bump-map texture is a 256 grayscale bmp format. 256x256

In gmax, i have first select the detailled texture and after had the bump map texture.
The 2 textures are in 256x256 pixels and the same scale is enabled in gmax parameter fxsmaterial.
I try to make some photoreal taxiways and it's useful to have a bump map texture on this because, when the rain effect is activate without bump-map, the ground look too glossy.
Reply With Quote
  #18  
Old 18 Mar 2007, 17:05
n4gix n4gix is offline
  unitedstates
Location: Hammond, Indiana
Join Date: Sep 2006
Posts: 8,517
Yikes! There are too many boo-boos here to cover...

Suffice it to say that (a) you should be using only DXT5 compression 'cause you really do need the 8-bit alpha channel, and (b) bump textures must remain RGB format - "Greyscale" will never work, and (c) bump maps should be the same size as the diffuse bitmap, otherwise the subtleness is lost.
Reply With Quote
  #19  
Old 16 Nov 2010, 15:42
shez shez is offline
 
Join Date: Jun 2005
Posts: 96
Quote:
Originally Posted by arno View Post
Hi,

I fixed the shading problem with the bump maps. Bill's post contained most of the information to solve it, I just had to read it a couple of times .

What I did was the following:
  1. Create a normal map with the NVidia plugin
  2. Copy the content of the red channel to the alpha channel
  3. Make the red channel black
  4. Invert the green channel
  5. Make the blue channel white
  6. Save the result as DXT5 image



After that it showed up perfect on my object. Now I just have to learn how to make a good bump map to start with, so that I get a more realistic looking result in FsX .
Arno,

Very old thread but I had a quick question, what command is the invert command above? Image->Adjustments->Invert?

Thanks

Shez
Reply With Quote
  #20  
Old 16 Nov 2010, 16:00
arno's Avatar
arno arno is offline
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,777
Send a message via Skype™ to arno
Hi,

That would depend on the editor you use I guess . But you need to make sure to only invert the green channel, not the entire image.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flag turning with the wind [FSX] Siggy GMax and 3DS Max 8 03 Mar 2007 02:55
[Fsx] Animation and shadows? arno GMax and 3DS Max 2 20 Jan 2007 17:47
Normal Maps with Painshop Pro Rellek01 General 2 12 Dec 2006 14:58
Controlling mip maps Mick GMax and 3DS Max 10 13 Apr 2006 13:32
Easiest way to place maps bpahe Ground2k4, SBuilder, SBuilderX 1 22 Apr 2005 02:59


All times are GMT -4. The time now is 09:25.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.