Gamestudio Links
Zorro Links
Newest Posts
blogherenowcenter
by 3s05bmmc. 06/05/24 06:08
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, AndrewAMD), 779 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
UVSHIFTING - Modification #209152
06/01/08 16:03
06/01/08 16:03
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
Hi I am not familiar with shaders, but i need i simple modification for an easy UVShader! (lite-c)

This is the "basic" code:
Code:
function mtl_UV_Clamp_event ();


MATERIAL* mtl_UV_Clamp =
{
	
   event = mtl_UV_Clamp_event;
	effect = "
		matrix matMtl;
	
		extern texture entSkin2;
		
		technique uvspeed
		{
			pass p0
			{
				

				Texture[0] = <entSkin2>;
				ColorOp[0] = subtract;		
				TextureTransform[0] = <matMtl>;
				TextureTransformFlags[0] = Count2;

			}
		}";

}

function mtl_UV_Clamp_event ()
{
	mat_identity(mtl.matrix);
	mtl.flags |= ENABLE_RENDER;
	mtl.matrix31 = floatd(my.skill1, 256);
	mtl.matrix32 = floatd(my.skill2, 256);
}


I have a tank with 3 Skins - first skin for the Model, second and third for the two tracks!

So i want to change the U-values of skin2 and skin3 depending on skill1 and skill2!

So can anyone help me plz? I think its quite easy, but i get this only working with skin1!
THX kasimir

Re: UVSHIFTING - Modification [Re: kasimir] #209704
06/05/08 06:55
06/05/08 06:55
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
no ideas???

this is only working with the first skin! how to change this? pleace help!

THX kasimir

Re: UVSHIFTING - Modification [Re: kasimir] #209715
06/05/08 08:14
06/05/08 08:14

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Without thinking about changing the shader (and if or how it's work) I would seperate the tank into 2 (body+track) or 3 (body+track+track) parts. (but this is only one solution)

Re: UVSHIFTING - Modification [Re: ] #209719
06/05/08 08:22
06/05/08 08:22
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
Yes i did it, but i want to know how to fix the shader!


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