Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 579 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Gold, Shiny marble shader, Comments? #43834
04/05/05 06:30
04/05/05 06:30
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Hey guys,
This is proberly my first shader ive made, I read the basic pixal shader instructions (from a tutorial) then started programming my own one. I added some cool stuff to it such as ripply effects and made it move (thanks to someone helping me on the forums )

Heres a screenshot:

(hosted by ImageShack)

Heres a .ZIP that comes with the scripts, the images needed for the shader to work, and a .EXE demo:
GoldMarbleShader.zip

Heres the code:
Code:
 
Bmap AlphaMap = <Stone.TGA>;
Bmap EffectMap = <marble.BMP>;

Material ShinyPillar
{
Skin1 = AlphaMap;
Skin2 = EffectMap;
Effect"
Texture entSkin1;
Texture entSkin2;
Texture mtlSkin1;
Texture mtlSkin2;

Matrix matMtl;

Technique Test
{
Pass P0
{
Texture[0] = <entSkin1>;
Texture[1] = <entSkin2>;
Texture[2] = <mtlSkin1>;
Texture[3] = <mtlSkin2>;

TexCoordIndex[0] = 1;
TexCoordIndex[1] = 0;
TexCoordIndex[2] = 1;
TexCoordIndex[3] = 1;
PixelShader = asm
{
ps_1_2

tex t0
tex t1

texdp3tex t3,t0

dp3 r0,t3,t0
mul r0,r0,t1
add r0,r0,t1
};
texCoordIndex[3]= cameraSpaceNormal;
textureTransform[3]=<matMtl>;
}
}
";
}



Hope to hear your comments soon
If you have any problems running the shader then please contact me. My email is:
wadaholic@gmail.com

Thanks
-Bright


KAIN - Coming soon...
Re: Gold, Shiny marble shader, Comments? [Re: Bright] #43835
04/05/05 08:02
04/05/05 08:02
Joined: Nov 2004
Posts: 832
United States, Utah
Braxton Offline
Developer
Braxton  Offline
Developer

Joined: Nov 2004
Posts: 832
United States, Utah
What tutorial did you read to learn?


"The GREAT LAW: Life is and always will be justly ordered, and that all past experiences, good and bad, were the equitable out working of our evolving, yet unevolved selves" - As A Man Thinketh
Re: Gold, Shiny marble shader, Comments? [Re: Braxton] #43836
04/05/05 09:31
04/05/05 09:31
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand


KAIN - Coming soon...
Re: Gold, Shiny marble shader, Comments? [Re: Bright] #43837
04/05/05 20:09
04/05/05 20:09
Joined: Sep 2002
Posts: 758
Sunny Scotland
xoNoid Offline
Developer
xoNoid  Offline
Developer

Joined: Sep 2002
Posts: 758
Sunny Scotland
Sorry you link doesnt work

Re: Gold, Shiny marble shader, Comments? [Re: Bright] #43838
04/11/05 05:01
04/11/05 05:01
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Try copying the link location and pasting it into your address bar. that should work.


KAIN - Coming soon...
Re: Gold, Shiny marble shader, Comments? [Re: Bright] #43839
04/11/05 20:31
04/11/05 20:31
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
It's actually http://www.coniserver.net/ubbthreads/sho...=&fpart=all

Bare in mind the conitec server was changed, and that address points to the old domain.


--Eric

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