Normal Map Issue

Post your questions here
Post Reply
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Normal Map Issue

Post by wheels1758 »

Well, I seem to have a problem with my normal map not being drawn when the camera is far away. Any ideas on how to fix it? And don't mind those rafters, they have already been fixed.

Image
jlv
Site Admin
Posts: 15127
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Normal Map Issue

Post by jlv »

Those thin lines are blending into the background at the lower mipmap levels. If you want them to stay there at a distance you'll have to make a custom mipmap for the normal map. Look here for the details.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Normal Map Issue

Post by wheels1758 »

Alrighty....

Here are my two images with the custom mip_mapping. Could you take a look and see if there is anything noticeably wrong?

diffuse:
Image

norm:
Image

Trying it with just the custom norm, and a regular diffuse:
Image

and even better, using custom mip_maps for both:
Image

Any ideas?
jlv
Site Admin
Posts: 15127
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Normal Map Issue

Post by jlv »

You need to add [mip_custom] to the png comment. You also need the complete set of mipmaps down to 1x1 pixel.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Normal Map Issue

Post by wheels1758 »

Hmm, seems like my problem is the commenting. When I go to gimp > image > image properties > comments and type [mip_custom] then check it in notepad, it adds an iXT Comment. I checked the banner from sorketorp and it seems as though they have a tEXt Comment. Can you elaborate on how to add the correct type of comment? Suppose I would know if I wasn't such a noob!
jlv
Site Admin
Posts: 15127
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Normal Map Issue

Post by jlv »

tEXt is Latin-1 characters and iTXt is UTF characters. I'm not sure how to force Gimp to not use UTF-8, but I just tried adding a comment with Imagemagick and it produced a tEXt comment.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Normal Map Issue

Post by wheels1758 »

When I try to add a comment with imageMagick it really does some magick :/ It changes my image from 64 lines long, and around 13 KBs to 28 lines and 11.3 KBs :/

I really can't figure out what I am doing wrong here.

convert <image_filename> -comment "[mip_custom]" <new_image_filename>

Is this correct usage? I am getting some funky results, and it is not adding a comment of any kind.
jlv
Site Admin
Posts: 15127
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Normal Map Issue

Post by jlv »

The manual page says: convert [input-options] input-file [output-options] output-file
So you would think that would work. But I had to put it first with the input options for it to work.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
wheels1758
Posts: 4132
Joined: Tue Oct 21, 2008 5:20 pm
Location: Washington, USA
Contact:

Re: Normal Map Issue

Post by wheels1758 »

Yay! Haha, thanks JLV! For some reason I had to put the comment text with the input options...image black magick I guess!
Post Reply