Height2Normal(v. 1.1) - convert height maps to normal maps

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

Height2Normal(v. 1.1) - convert height maps to normal maps

Postby ent1ty » Sun Apr 03, 2011 9:19 am

Hi!
This is a tool I developed primarily for my needs, but there's no reason why I can't share it with you. I hope you'll find it useful.

I think the name explains it all, but take a look at this screen to see how does the interface look like

Image


So, here is how you use it:
1. Load a height map;
1.1. If you want, you can also load a diffuse map to get a better idea of how will the normal map look like. If not, the height map will be used as a diffuse map.
2. Play with the amplitude values, to get the desired effect.
3. Choose a file name for the normal map. IF YOU DON"T CHANGE IT, IT WILL OVERWRITE YOUR HEIGHT MAP(which might be desired behavior for some people)
4. Hit the Save Normal Map button.


Changelog for 1.1
- The application is now forced to save the original height value into the alpha channel(this is kind of fundamental for parallax mapping). Up until now, the height value was only saved if the height map file was 32 bit on disc.

Download(pre-compiled windows binary and source with a CB project)

Have fun!
Last edited by ent1ty on Sat May 14, 2011 12:58 pm, edited 1 time in total.
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am

hmm

Postby tecan » Sun Apr 03, 2011 4:54 pm

thanks for the new tool but it does seem to have a bug in linux where it locks up my mouse clicks even outside the window and none of the gui stuff works.
Live long and phosphor!
--Luna - Status 60%
User avatar
tecan
 
Posts: 284
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada

Postby ent1ty » Sun Apr 03, 2011 6:18 pm

That's odd... sounds like an irrlicht issue to me. Did you run it using wine or did you recompile it for linux?
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am

Postby randomMesh » Mon Apr 04, 2011 4:17 pm

Runs fine here. Ubuntu 10.10, compiled on my own, Irrlicht is latest SVN trunk.

Thanks for this great tool!
"In fact, nearly every sequence of punctuation is used for something in Perl. So, if you get writer’s block, just let the cat walk across the keyboard, and debug the result."

Katastrophe - A free, open source flocking boids simulation
User avatar
randomMesh
 
Posts: 1138
Joined: Fri Dec 29, 2006 12:04 am

Postby ent1ty » Mon Apr 04, 2011 5:02 pm

Quite frankly, i have suspected this for some time.

tecan, you might like to spend some money on engineering next Christmas.

randomMesh: thanks for info :)
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am

Postby tecan » Tue Apr 05, 2011 1:03 am

turns out it was running too fast, once i put dev->sleep(10,0); in there it runs just fine.
Live long and phosphor!
--Luna - Status 60%
User avatar
tecan
 
Posts: 284
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada

Postby ent1ty » Tue Apr 05, 2011 1:00 pm

Maybe vsync would do better... is that a justification for a new(bugfix) version?
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am

Postby ent1ty » Sat May 14, 2011 12:59 pm

There is a new version in the first post, together with the changelog.
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am

Re: Height2Normal(v. 1.1) - convert height maps to normal ma

Postby devsh » Mon Mar 25, 2013 8:48 pm

any chance of a heightmap preprocessor for relaxed cone stepping??? (GPU Gems 3 article)
Portfolio (WIP) and Development Blog:
http://indirectlightandmagic.tumblr.com/

Do you want to hire a GLSL graphics programmer cheaply???
Try me!
http://indirectlightandmagic.tumblr.com/contact
User avatar
devsh
Competition winner
 
Posts: 1303
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK

Re: Height2Normal(v. 1.1) - convert height maps to normal ma

Postby ent1ty » Fri Apr 05, 2013 3:41 pm

Hah! Sorry, I didn't notice your reply until now, but that's what you get for not being on irc :P

Well frankly, i'm not very sure how one would go about doing that, what i did here is just call irrlicht to create the normal map and put a few shiny buttons with a cube on a window :)
Height2Normal - convert height maps to normal maps

Code with brain, not heart.
- entity, a proud member of the Heartless Coders society
ent1ty
 
Posts: 925
Joined: Sun Nov 08, 2009 11:09 am


Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 1 guest