Creating normal map with Gimp, how

Posted By: JHA

Creating normal map with Gimp, how - 01/04/12 19:38

Hello
If I use "stones.mdl" from the samples directory, which comes with the installation package, this model works ok with my code and lighting works ok like it should with normal map.

When I opened this model with MED's skin manager, it has two skins one texture and other quite obviously normal map made from the texture.

If I take a picture and put it's alpha channel on and create normal map from it with Gimp and then I load both as skins to a model with MED's skin manager it does not work right with my code like "stones.mdl".

The question, what kind of settings should be used in Gimp to make a right kind of normal map?

thanks in advance
Jarkko Halme
Posted By: Espér

Re: Creating normal map with Gimp, how - 01/05/12 08:33

Best use TGA with 32Bit for normalmaps. Be sure to set the NM as second skin.

i don't know your codes, settings or what the problem looks like.. perhaps you can post a screenshot?
Posted By: JHA

Re: Creating normal map with Gimp, how - 01/07/12 19:36

Hello
Thanks for helping. I tried TGA and I put the normal map as a second image, it did not make a difference. I tried also both way around normal map as second and normal map as first skin. If normal map is second skin, the normal map is visible (blueish bump map of the actual skin) and the actual skin is not visible add all. Do I have tranparancey setting somehow wrong in Gimp when I create the normal map?

The code is:

Creating the object:
Ball=ent_create("cube_n.mdl",vector(StartPoint+k*60,StartPoint+j*60,StartPoint+i*60),BallAction);

No material setting at all.

And the action begins:
action BallAction()
{
VECTOR SpeedOfBall;
VECTOR AngSpeedOfBall;

my.skill42 = floatv(60); // texture influence
fx_envBump();

while(me)
....

And for example the "stones.mdl" which comes with the installation package works just fine in the code shown above.

thanks
Jarkko Halme
Posted By: MasterQ32

Re: Creating normal map with Gimp, how - 01/07/12 22:48

i'm using the png format for all sort of alpha-maps
also you can try to use fx_specBump
maybe it helps
Posted By: JHA

Re: Creating normal map with Gimp, how - 01/18/12 19:02

Hello
I was able to get this work. Actually I just did everything from beginning, I also created a new model and then all worked. I do not actually know what was the problem. Maybe something corrupted in the model, because I used that several times deleted texture and added new one and deleted again and so on.
But anyway thanks for helping.
Jarkko
© 2024 lite-C Forums