Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:54 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Normal Map
PostPosted: Sat Dec 30, 2006 8:13 pm 
Offline

Joined: Sat Dec 30, 2006 7:43 pm
Posts: 4
Hello All,

I needed a height field (gray scale) to normal map plugin/feature and couldn't find one. So I wrote one.

Here is the .dll that goes in your Effects folder:
http://www.freewebs.com/realstinger/pdn ... Normal.dll

Here is the source:
http://www.freewebs.com/realstinger/pdn ... ToNormal.z

I've used it, but it is hot off the press so use at your own risk.

Have fun,

stinger


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 8:18 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Hmmm....Interesting and useful for some - a good idea to publish it :)

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 8:21 pm 
Offline
User avatar

Joined: Mon Oct 30, 2006 2:21 pm
Posts: 2028
Location: Lille;France
It is working. But what for? Could you give before/after pictures to let us see that you've build this plugin for.

_________________
Image
My DeviantArt | My Pictorium | My Plugins


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 8:22 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
Normal mapping is used primarily in 3D Rendering and such...

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 8:48 pm 
Offline

Joined: Sat Dec 30, 2006 7:43 pm
Posts: 4
To answer your question here is what the plugin is for:

Start with a gray scale, white is highest, black is lowest:
http://www.freewebs.com/realstinger/pdn/before.png

Use the plugin to make a normal map:
http://www.freewebs.com/realstinger/pdn/bump.png

Draw something with a shader that uses a normal map:
http://www.freewebs.com/realstinger/pdn/teapot.png

-stinger


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 31, 2006 12:12 am 
Offline
User avatar

Joined: Fri Aug 25, 2006 10:52 am
Posts: 77
Location: UK
I can see this being very useful in The Sims 2 game. For people who make custom content.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 14, 2007 12:07 am 
Offline

Joined: Sat Nov 11, 2006 12:19 am
Posts: 209
Location: Tampa Bay
Heh, its actually useful for any game that you can mod skins.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 1:51 am 
Offline

Joined: Wed Apr 11, 2007 5:10 pm
Posts: 42
Location: California
wait so how does this work? id like to use this

_________________
Rec. :)
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 1:54 am 
Offline

Joined: Wed Apr 11, 2007 5:10 pm
Posts: 42
Location: California
to be more exact what is a shader??

_________________
Rec. :)
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 1:58 am 
Offline

Joined: Sun Dec 04, 2005 10:34 pm
Posts: 121
You need to zip it. I don't know what the hell is up with your server or what, but it ends up serving me the file's ASCII encoding in text when I try to download that.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 2:05 am 
Offline

Joined: Wed Apr 11, 2007 5:10 pm
Posts: 42
Location: California
it works for me but i dont get how to make the shape or anything like that i just used the effect and then im lost

_________________
Rec. :)
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 2:12 am 
Offline

Joined: Wed Apr 11, 2007 5:10 pm
Posts: 42
Location: California
im leaving now if any one can help please send me a private message

_________________
Rec. :)
Image


Top
 Profile  
 
 Post subject: Normal Map plugin
PostPosted: Wed Jun 06, 2007 3:36 pm 
Offline

Joined: Wed Jun 06, 2007 3:28 pm
Posts: 1
Thanks so much for sharing!


Top
 Profile  
 
 Post subject: Re: Normal Map
PostPosted: Tue Jan 08, 2008 7:15 pm 
Offline

Joined: Tue Jan 08, 2008 7:09 pm
Posts: 2
Thanks for a great effect!

The download worked fine for me, as did the plugin.

Thanks

Quote:
wait so how does this work? id like to use this


1) Download the DLL fille.

2) Copy/Paste the DLL into your Effects folder.

3) Now when you open Paint.NET and you click your Effects tab from the menu, you will notice this effect added to the bottom of your list of effects.

4) Load an image that is used for your models texture and grey scale it (turn it black & white).

5) Now use the effect on that greyscale image and you now have your normal map.

6) save the normal map and use it with whatever program your model will be used in.

Here is a quote from Ionozation.net that might help explain normal mapping ...

Quote:
So what is Normal Mapping?

Normal mapping is a method where by the normals of a mesh are given more detailed lighting information by means of a bitmap image.
This give the mesh the appearance of more realistic lighting and more surface detail.

Normal maps are encoded to a bitmap image, much like a greyscale bump map.
The way in which they differ however is that in traditional bump mapping only distinct changes in elevation are registered.
A gradual change in height is almost impossible to perceive.
Normal maps not only describe height, but accurately depict the angle of faces and are able to describe curves and complex angles much more accurately.
In short, they create a much better illusion of height.

Normal maps are encoded in RGB values which are used to indicate which direction the normal faces relative to the face of the polygon it is mapped to.

The red channel describes normal facing in the X direction.
100% red means it is facing right 0% red means it is facing left.
A 50% value means it is facing straight out in the direction of the polygon.

The same goes for the green channel, except it is encoded to the Y axis up and down.

The blue channel theoretically encodes Z data which are values in height, however it seems to serve more as a base colour for the other two to work upon.
Normal maps can't contain values below 50% in this channel, as that would indicate normals pointing back towards the surface.
That is why normal maps appear to be primarily blue in colour.


Here is an example of a wall texture with and without the normal mapping/shaders applied...

WITHOUT Normal Mapping and Shaders...
http://www.conjured.us/fpsc/images/misc/alien_flat.jpg

WITH Normal Mapping and Shaders...
http://www.conjured.us/fpsc/images/misc/alien_flat_3.jpg

As you can see from the images above, the use of normal maps and shaders can make a your textures come alive with detail. (even flat surfaces)
This is a method that is used to create hi-poly detail on low-poly models, which gives outstanding visuals without the resource strain.
This is also a method that is basically a requirement for any DirectX 10 project, since it demands the use of these latest texturing tricks.

Thanks again Stinger, for one of the best and most needed plugins. You rock!


Last edited by david.atwell on Mon Feb 04, 2008 2:09 am, edited 1 time in total.
images WAY too big.


Top
 Profile  
 
 Post subject: Re: Normal Map
PostPosted: Sat Jan 26, 2008 2:32 pm 
Offline

Joined: Sat Jan 26, 2008 2:23 pm
Posts: 1
Location: London Englad
Hello,
Does someone have this dll? The link above is broken.

Thank you.


Attachments:
File comment: If the link above doesn't work, it's in here. Just put it into that "Effects" folder.
alphamaskandheight2normal.zip [12.45 KiB]
Downloaded 1106 times

_________________
FAR
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: georgian and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET