Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Martin_HH, TipmyPip, AndrewAMD, Grant, USER0328), 5,287 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fixed function dot3 bumpmapping #271569
06/13/09 23:27
06/13/09 23:27
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
There appears to be a fixed function dot3 bumpmapping shader on the wiki. I have A7 extra and would like to use it, but i have no idea how. When i apply it to a model, the model does not react to changing light sources. Does anyone know how to use it?
It is found here

Re: fixed function dot3 bumpmapping [Re: the_mehmaster] #271577
06/14/09 00:25
06/14/09 00:25
Joined: Oct 2008
Posts: 683
Germany
Ayumi Offline
User
Ayumi  Offline
User

Joined: Oct 2008
Posts: 683
Germany
That s easy.

Write this in your main:

include <Shader.wdl>;

Below main:

Code:
action DynLight()
{
	my.invisible = on;
	my.passable = on;
	
	my.red = 255;
	my.green = 255;
	my.blue = 255;
	my.lightrange = 1000;
}

////////////////////////////////////////////////
///////////Shaderexample for Models/////////////
////////////////////////////////////////////////

material ShaderExampeModel_mat
{
	effect = "bump_model.fx";
}

action ModelShader()
{
	my.material = ShaderExampeModel_mat;
}


And now save this as "bump_model.fx"

Code:

texture entSkin1;
texture entSkin2;

technique dot3map
{
	pass p0
	{
		Texture[0] = <entSkin2>;
		Texture[1] = <entSkin1>;
		TextureFactor = 0xFFFFFFFF;
		
		COLOROP[0] = DotProduct3;
		COLORARG1[0] = Texture;
		COLORARG2[0] = TFactor;
		TexCoordIndex[0] = 0;
		
		COLOROP[1] = Modulate;
		COLORARG1[1] = Texture;
		COLORARG2[1] = Current;
		TexCoordIndex[1] = 1;
	}
}


You need a model for the light and a model which this shader.

Re: fixed function dot3 bumpmapping [Re: Ayumi] #271582
06/14/09 01:26
06/14/09 01:26
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
wow! concise, quick, and easy! thanks a heap!

Re: fixed function dot3 bumpmapping [Re: the_mehmaster] #271584
06/14/09 01:37
06/14/09 01:37
Joined: Oct 2008
Posts: 683
Germany
Ayumi Offline
User
Ayumi  Offline
User

Joined: Oct 2008
Posts: 683
Germany
Oh btw:a mistake.

You don t need include <Shader.wdl>;^^

Only the fx file and code.
(And the path to the code.)

Re: fixed function dot3 bumpmapping [Re: Ayumi] #271590
06/14/09 02:19
06/14/09 02:19
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
yeh i figured that out myself... thanks anyway!


Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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