Easy Normal-Map & Shader Generator

Posted By: TSG_Torsten

Easy Normal-Map & Shader Generator - 07/28/07 21:12

Hi all,

I want to contribute a small, but nice tool.

What is it?
It's a normal map generator. But it also featuring a real-time preview of the normal-mapping shader. You can also export the material and the shader. It's easy to use and a fast tool for creating normal maps for models... and add them a shader.

So all shader noobies (like me ) have now an easy tool to make their own normal-mapping.

Here's a small Screenshot:


Features:
Easy normal-map creation
Supported formats: bmp,tga,pcx
RealTime 3D-Preview
Include code export
+ Fake Bump-Mapping creation (rendered shader on textur, buggy)
English and German
Free for commercial usage.

Have fun!

Notice: You find your exported shader and normal map in the export folder of the program.

If you want to try an example texture, open "example.bmp"

Download it!

Btw: Special thanks to Slin, he knows why
Posted By: DoC

Re: Easy Normal-Map & Shader Generator - 07/28/07 21:13

very nice tool, I test it and give than a better comment ^^
Posted By: TSG_Christof

Re: Easy Normal-Map & Shader Generator - 07/28/07 21:44

WOW ich bin überweltigt torsten du bist ja doch nicht so schlecht wie ich dachte
Posted By: frazzle

Re: Easy Normal-Map & Shader Generator - 07/28/07 21:51

Nice and handy tool, great effort TS
Maybe you could implant a feature that gives the normal map a sertain height (in coordinates of course) to achieve height maps which can be used for parallax mapping or sort like

Cheers

Frazzle
Posted By: xXxGuitar511

Re: Easy Normal-Map & Shader Generator - 07/29/07 07:25

looks good, but on a quick note, you put:

Step 2: Select the strange of the normal map

I think strange should be strength - You're german so I can't give you a hard time about english...
Posted By: Nicolas_B

Re: Easy Normal-Map & Shader Generator - 07/29/07 08:25

wow muss schon sagen ist sehr geil...
du hast's echt im griff mit dem scripten
Posted By: vlau

Re: Easy Normal-Map & Shader Generator - 07/29/07 08:37

Nice tool. Would be great if it has a Open File Dialogue
for texture file.
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 12:10

Hi,

thx for all your comments first!

I've worked on it to make it easier. So I've implemented an "Open..."-File dialogue, as it was whished.
I also have added a title for each "window".

@xxxGuitar: Sorry for this mistake, has also fixed now
Btw.: You can edit your language file ^^

You can download the new version (1.1) under the same link, look therefore in the first post.

If you have other great ideas, let me hear them

Have fun
TSGames
Posted By: felix_

Re: Easy Normal-Map & Shader Generator - 07/29/07 12:50

very nice tool! and usefull. I used an creator from ATI, but this one is better...
But it nerves to restart the tool evry time i want to create a new normal map!
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 12:55

Hi, I know that it isn't great that you have to restart. But I haven't find any way to change the skin of a model in real time (with right scalation), and no one could help me doing this.

Regards
TSGames
Posted By: Salva

Re: Easy Normal-Map & Shader Generator - 07/29/07 15:47

Hi!

@Thorsten It is a very useful and easy to use, besides, I must tell that it work better of the plugin from nvidia!! for photoshop, the only thing that would be changed, is the loading the texture, it should open a window for choose the texture, otherwise works well. Thank you!!

@felix: you not need to restart it, simple click at the button new texture!!


greet salva
Posted By: Salva

Re: Easy Normal-Map & Shader Generator - 07/29/07 15:54

hups!!

Sorry the delay......


greet


salva
Posted By: D3D

Re: Easy Normal-Map & Shader Generator - 07/29/07 16:13

Looks very useful. Now only a Lite-C export button
Posted By: CD_saber

Re: Easy Normal-Map & Shader Generator - 07/29/07 16:17

Hmmm, irgentwie funktioniert das nicht bei mir...
ich kriege keine fehlermeldung oder dergleichen. ich sehe im spiel leider nur die bump-textur auf dem model.
ich habe ein neues model erstellt, 2 skins eingefügt, der erste hat meine steintextur gekriegt, der zweite die bumpmap...
hilfe!!
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 16:23

Quote:

Hmmm, irgentwie funktioniert das nicht bei mir...
ich kriege keine fehlermeldung oder dergleichen. ich sehe im spiel leider nur die bump-textur auf dem model.
ich habe ein neues model erstellt, 2 skins eingefügt, der erste hat meine steintextur gekriegt, der zweite die bumpmap...
hilfe!!




Sagst du gerade BumpMap? Du musst aufpassen, du musst die NormalMap einfügen (dieses blaue Bild), dann müsste es funktionieren.
Falls nicht, denke auch dran, dass du eventuell dynamische Lichter brauchst um etwas vom Effekt zu sehen..
Sollte das nicht helfen, einfach nochmal melden

@Salva: Already done

[EDIT]@D3D: If you can give me the code for the lite-c export (because I don't work with lite-c at the moment), I can implement a button like this, of course.

Gruß
TSGames
Posted By: sPlKe

Re: Easy Normal-Map & Shader Generator - 07/29/07 16:31

THIS TOOL IS AMAZING!!!!

YOU RULE MAN!!
Posted By: DeKO_Mania

Re: Easy Normal-Map & Shader Generator - 07/29/07 17:09

Out of curiosity, what shader model is required in order to use this tool? I assume v1.1, seeing as my card is able to run it fine... but just for refrence, when figuring out what the requirements are of my current project...

Thank you, and great job with this too, it really simplifies normal mapping
DeKO_Mania

Edit: Also, it appears there is some problem with your software. I will try to explain the circumstances as best as possible...

First, I created a very simple texture in Photoshop, using some clouding effects to create a mixed gradient, and then created an alpha layer, on which I added some "noise" to get the effect of sand. Then, I saved that texture as a .bmp file (to the desktop). When I tried to import that file into your program, it gave me a nondescript "Windows Error", and shut the program down. Now, every time I try to run your program, it gives me the following error:

Error E355
Startup failure

Any idea as to whats up?

BTW: The texture was 512x512...
Posted By: Thracian

Re: Easy Normal-Map & Shader Generator - 07/29/07 17:30

Hallo,
sehr nettes Tool, danke.
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 17:49

Hi DeKO,

sorry, I don't know the reason for your problem. I just have get problems using textures >1024x1024. If you get an startup failure, try to delete all the "temp" files you can find in the program folder. Try then a shorter file name for your picture.
Hope it works.

Regards
TSGames
Posted By: D3D

Re: Easy Normal-Map & Shader Generator - 07/29/07 17:53

@ TSG_Torsten:

Well it isn't really important features to export for Lite-C. The conversion is very easy for the exported C-Script, but it would be more convienent if it could be done automatically by the click of a button.

C-Script
Code:
material Example_mat
{
// section: Diffuse:
// entry: Red
diffuse_red = 255;
// entry: Green
diffuse_green = 255;
// entry: Blue
diffuse_blue = 255;

// section: Ambient:
// entry: Red
ambient_red = 16.0;
// entry: Green
ambient_green = 16.0;
// entry: Blue
ambient_blue = 16.0;

// // section: Sun:
// // entry: Red
// specular_red = 64.0;
// // entry: Green
// specular_green = 64.0;
// // entry: Blue
// specular_blue = 64.0;

// section: Static Lighting:
// entry: Red
emissive_red = 255.0;
// entry: Green
emissive_green = 255.0;
// entry: Blue
emissive_blue = 255.0;
//
flags = tangent | enable_render;
effect = "NM_Shader.fx";
}

action Example_action
{
my.material=Example_mat;
//Hier kommt weiterer Code für die Entity
}


Lite-C
Code:
MATERIAL* Example_mat =
{
// section: Diffuse:
// entry: Red
diffuse_red = 255;
// entry: Green
diffuse_green = 255;
// entry: Blue
diffuse_blue = 255;

// section: Ambient:
// entry: Red
ambient_red = 16.0;
// entry: Green
ambient_green = 16.0;
// entry: Blue
ambient_blue = 16.0;

// // section: Sun:
// // entry: Red
// specular_red = 64.0;
// // entry: Green
// specular_green = 64.0;
// // entry: Blue
// specular_blue = 64.0;

// section: Static Lighting:
// entry: Red
emissive_red = 255.0;
// entry: Green
emissive_green = 255.0;
// entry: Blue
emissive_blue = 255.0;
//
flags = tangent | ENABLE_RENDER;
effect = "NM_Shader.fx";
}

action Example_action()
{
my.material=Example_mat;
//Hier kommt weiterer Code für die Entity
}


Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 18:03

Ok, thx, i would import it in the next hours and upload the new version as soon as it is ready, stay tuned

Regards
TSGames
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 18:40

Ok, the new version 1.2 is now out, featuring lite-c export. The download link is the same, again.

Regards
TSGames
Posted By: CD_saber

Re: Easy Normal-Map & Shader Generator - 07/29/07 19:06

hm, ne stimmt ich meine natürlich die normalmap. ich hab keine ahnung warum das gerade bei mir nicht geht... das mit den lichtern klappt auch nicht hmm
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/29/07 19:09

Einzigste Möglichkeit wäre ein Problem deiner Grafikkarte. Vielleicht unterstützt sie diesen Shader nicht (ich hab den nicht geschrieben, kann dir da also nicht helfen). Eine Möglichkeit wäre, mal eine andere Shader-FX zu probieren (in der Massive Shader Collection von Slin gibts ja zur genüge Normal Mapping Shader).

Gruß
TSGames
Posted By: CD_saber

Re: Easy Normal-Map & Shader Generator - 07/29/07 19:17

hm, also meine grafikkarte unterstützt shader 3.0. verdammt nochmal
Posted By: Galen

Re: Easy Normal-Map & Shader Generator - 07/29/07 19:35

Nice work! I've just downloaded it myself, though it will be a little while before I start using it (and I'm new to NM'ing, shaders, etc). Keep up the great work!
Posted By: D3D

Re: Easy Normal-Map & Shader Generator - 07/29/07 19:44

Thanks for the Lite-C export!

Only to prevent errors add to the top these two lines:

Code:
//Exported by Normal Map Creator ©TSGames
//Just add the action an entity
//Have fun with the Code!
//Don't forget: The first skin is the color map
//The second skin is the normal map
//Lite-C Version


#include <acknex.h>
#include <default.c>


Posted By: DeKO_Mania

Re: Easy Normal-Map & Shader Generator - 07/30/07 01:14

Ok, so it seems that your program simply has no support for textures with alpha layers. I just ran a comparason between two textures, the same texture, but one created with an alpha layer, and one without. The one with the alpha layer crashed the program, and I subsequently had to reinstall. However, the texture without the alpha layer is currently running fine. So, I am not sure what exactly would cause this, but it is a fairly big glitch, as I often use alpha layers for my textures. Just thought I would let you know my findings...

Both textures are bitmaps @ 512x512. If you would be interested in getting those textures for your own testing, PM me and I would be happy to email them to you.

Regards,
DeKO_Mania
Posted By: xXxGuitar511

Re: Easy Normal-Map & Shader Generator - 07/30/07 05:51

Nice! Very useful and creative. Also very good and clean installer (forget which program it was, but I've used it before)...

This will definatly be part of my toolset, thanks again


Not to sound greedy, but is that normal-map shader mine? Just curious...

Also, how did you create the normal maps? Just scan through the texture and calculate the normal yourself, or is there another tool involved?
Posted By: Machinery_Frank

Re: Easy Normal-Map & Shader Generator - 07/30/07 07:16

Quote:

Also, how did you create the normal maps? Just scan through the texture and calculate the normal yourself, or is there another tool involved?




Isn't there a c-script / direct-x command to convert grayscale images to normal-maps?
Posted By: Anonymous

Re: Easy Normal-Map & Shader Generator - 07/30/07 07:24

bmap_to_normals(bmap,factor)
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/30/07 17:34

Quote:

Not to sound greedy, but is that normal-map shader mine? Just curious...

Also, how did you create the normal maps? Just scan through the texture and calculate the normal yourself, or is there another tool involved?




Slin has gave me this shader, because he had said it's one of the best normal mapping shader. Anyway, I've read in the header:
// Matt_Aufderheide, Bloodline, William, xXxGuitar511

So I'm think it's on of your shaders

And I'm using the command bmap_to_normals.

Regards
TSGames
Posted By: Slin

Re: Easy Normal-Map & Shader Generator - 07/30/07 19:30

Didn´t I give you the link to xXxGuitar511s Thread?
But yeah, it is that shader
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/30/07 19:52

Quote:

Didn´t I give you the link to xXxGuitar511s Thread?
But yeah, it is that shader




You've send me this shader via icq, aren't you?

Anyway ^^, I've uploaded the new version (same link -> First post). Now the small "bug" in the lite-c export has been fixed. It also saves which directory has browsed last. So you don't have to click you trough all the folders again

If you install it and have an older version installed, please uninstall the old version first, because I've created another start menu group. Why? I want to create some other tools next time.

Regards
TSGames
Posted By: jigalypuff

Re: Easy Normal-Map & Shader Generator - 07/30/07 20:32

for some reason this crashs on startup, just getting this


Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/30/07 20:42

Can you give some more information about your system? CPU, graphic adapter, etc.?

Regards
TSGames
Posted By: jigalypuff

Re: Easy Normal-Map & Shader Generator - 07/30/07 20:47

xp home edition
sp2

amd athlon 64 processor
2.19ghz, 1gig ram
is that what your after?
Posted By: TSG_Torsten

Re: Easy Normal-Map & Shader Generator - 07/30/07 21:47

It would be important to know what graphic card are you using, which shader it are support and which max. texture size.

Regards
TSGames
Posted By: jigalypuff

Re: Easy Normal-Map & Shader Generator - 07/30/07 22:15

the texture was 1024x1024 bmp
i`m not to sure on how to find the system specs mate, but it think this is what your after, nvidea ge force 6200 se turbocache i have no ideas what shaders it supports though
Posted By: xXxGuitar511

Re: Easy Normal-Map & Shader Generator - 08/01/07 06:00

The shader only requires ps2.0, and my (now old) GEForce FX 5700LE supports ps2.0...


I need to update my card, but first I need to buy a car...
Posted By: Hummel

Re: Easy Normal-Map & Shader Generator - 11/15/07 21:42

@TSG-Torsten: Wäre es möglich den Quellcode einzusehen? ....speziell der Teil in dem die Normalmap erstellt wird-ich versuch mich nämlich auch gerade daran, aber die Qualität lässt sehr zu wünschen übrig und dann hab ich noch undefinierbare Fehler...ich hab nen Shader geschrieben der ne Normalmap in Echtzeit berechnet und die sieht gut aus-diese can ich dann allerdings nicht über bmap_save() speichern da nicht die Bitmap manipuliert wird sondern nur das Rendering.

Danke schon mal im Voraus.
Posted By: Anonymous

Re: Easy Normal-Map & Shader Generator - 11/16/07 12:43

nimm doch vec_to_normal von Gamestudio
Posted By: Hummel

Re: Easy Normal-Map & Shader Generator - 11/16/07 20:24

îch glaub ich will sterben....
seit wann gibt es "bmap_to_normals(bmap_for_entity(my,0),1);"??!!
oh Mann und ich hab mir wie in meinem Shader versucht die Grauwerte der Pixel zuholen, da hat aber pixel_for_bmap gestreikt (wie die GDL die blöden ****) als ich von den Pixelkoordinaten eins subtrahiert hatte um mir den Grauwert des neben dem zu konvertierenden Pixels zuholen -AAABBER egal..also dickes Danke das bringt mich wirklich weiter.

...unfassbar...so viel Zeit verschwendet...^^°
Posted By: rincewind

Re: Easy Normal-Map & Shader Generator - 11/26/07 20:43

Habs gerade heruntergeladen und ausprobiert. Wirklich klasse.. danach habe ich schon lange gesucht.

Vielen Dank
Rincewind
© 2024 lite-C Forums