Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, 7th_zorro, dr_panther), 1,297 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bumpmaps #31879
08/13/04 01:02
08/13/04 01:02
Joined: Aug 2004
Posts: 90
Canada
Generik Offline OP
Junior Member
Generik  Offline OP
Junior Member

Joined: Aug 2004
Posts: 90
Canada
What is the quality and style of TGA file you need my bumpmaps display some weird effects. Is there a way to fix the lighting this is with normal dynamic lights. Is there no way or correcting it.


Heres my normal model with shaddow and no shaddow there both the same.



Heres the round model. No shaddow



Heres the back of the same model ewwww....



Anyways to display incorporate the light on the model. Or would i have to make myself a material for a shaded model.

Any ideas.

Re: Bumpmaps [Re: Generik] #31880
08/13/04 01:10
08/13/04 01:10
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
What effect are you using for the bumpmapping? Is it Oliver's? His has lighting regardless of whether the actual object is lit or not. Conitec's, on the otherhand, does not.


--Eric
Re: Bumpmaps [Re: Nadester] #31881
08/13/04 01:15
08/13/04 01:15
Joined: Aug 2004
Posts: 90
Canada
Generik Offline OP
Junior Member
Generik  Offline OP
Junior Member

Joined: Aug 2004
Posts: 90
Canada
Im actually using Olivers.... i guess ill try out conitecs. Where is theres found.

Re: Bumpmaps [Re: Generik] #31882
08/13/04 01:21
08/13/04 01:21
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Code:
// the following code creates a material that adds DOT3 bumpmapping

// to a model
bmap reptile = <scales.tga>;

material mat_bump
{
skin2 = reptile; // set a reptile skin
scale1 = 0.2; // factor for the skin scale at stage 0
// define a material effect string
effect = "
// declare the used textures and variables
texture entSkin1; // the entity skin
texture mtlSkin2; // the bump map
dword mtlSkill1; // the light vector
// default technique
technique bump_dot3
{
pass P0
{
// set texture stage states
Texture[0] = <mtlSkin2>;
Texture[1] = <entSkin1>;
TextureFactor = <mtlSkill1>;
ColorArg1[0] = Texture; // stage 0 = bumpmap
ColorOp[0] = DotProduct3;
ColorArg2[0] = TFactor;
ColorArg1[1] = Texture; // stage 1 - skin texture
ColorOp[1] = AddSigned;
ColorArg2[1] = Current;
ColorArg1[2] = Diffuse; // stage 2 - lighting
ColorOp[2] = Modulate2x;
ColorArg2[2] = Current;
}
}

// fallback technique for devices that do not support bumpmapping
technique fallback
{
pass P0
{
// set texture stage states
Texture[0] = <entSkin1>;
ColorArg1[0] = Texture; // stage 0 = skin texture
ColorOp[0] = Modulate2x;
ColorArg2[0] = Diffuse; // modulate by lighting
}
}
"; // end of the effect string
}

starter mat_bump_init {
// initialize the material properties
vec_set(mat_bump.ambient_blue,mat_model.ambient_blue);
vec_set(mat_bump.diffuse_blue,mat_model.diffuse_blue);
vec_set(mat_bump.specular_blue,mat_model.specular_blue);
mat_bump.power = mat_model.power;
// create the normals map for DOT3 bumpmapping
bmap_to_normals(mat_bump.skin2,2);
// set a lighting vector for DOT3 bumpmapping
mat_bump.skill1 = pixel_for_vec(vector(200,200,200),100,8888);
}




Personally, Oliver's effect is a little nice (I think). It more so compares to a good fallback for Normal Mapping. But Conitec's is more compatable, and it has no default lighting.

Btw, is that on level geometry? Could you post the script you used for it if it is? Thanks!

Last edited by Nadester; 08/13/04 01:22.

--Eric
Re: Bumpmaps [Re: Nadester] #31883
08/13/04 01:35
08/13/04 01:35
Joined: Aug 2004
Posts: 90
Canada
Generik Offline OP
Junior Member
Generik  Offline OP
Junior Member

Joined: Aug 2004
Posts: 90
Canada
Its on models right now working towards geometry. Thanks for the code. One more question while im here off topic though Nade... stencil buffer shadows how do I turn them on for the shaddow of dynamic light to display the shaddow on the wall and not slip throutgh the flor.

Re: Bumpmaps [Re: Generik] #31884
08/13/04 02:34
08/13/04 02:34
Joined: Aug 2004
Posts: 90
Canada
Generik Offline OP
Junior Member
Generik  Offline OP
Junior Member

Joined: Aug 2004
Posts: 90
Canada
nm i figured it out... yuck.

Re: Bumpmaps [Re: Generik] #31885
08/13/04 06:42
08/13/04 06:42
Joined: Jul 2004
Posts: 31
Rendering on a Pipeline
Buluen Offline
Newbie
Buluen  Offline
Newbie

Joined: Jul 2004
Posts: 31
Rendering on a Pipeline
personally I think the back side looks cooler then the lighted part...just my opinion.. I wish I could get bumpmapping to even work.


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1