Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Applying Shaders #31179
07/26/04 16:48
07/26/04 16:48
Joined: Jul 2004
Posts: 1
H
hacker2 Offline OP
Guest
hacker2  Offline OP
Guest
H

Joined: Jul 2004
Posts: 1
I've saved the sample fur shader in RenderMonkey as fur.fx
How do I now apply it to a model in 3dgs?
What do I have to do to put the shader in a material, load it, and apply it to a model?

Thanks in advance!

Re: Applying Shaders [Re: hacker2] #31180
07/26/04 18:05
07/26/04 18:05
Joined: Feb 2004
Posts: 334
metal Offline
Senior Member
metal  Offline
Senior Member

Joined: Feb 2004
Posts: 334
why dont you look at the manual?

Re: Applying Shaders [Re: hacker2] #31181
07/26/04 23:20
07/26/04 23:20
Joined: Sep 2003
Posts: 2,174
Israel, Haifa
ROMAC Offline
Expert
ROMAC  Offline
Expert

Joined: Sep 2003
Posts: 2,174
Israel, Haifa
I know nothing about shader programming but in the manual it says that you can load a shader using
effect_load(material,"fur.fx");
You have to set a material apply it to an action and apply the action to the model.
Look in the manual for:
effect_load and material

Re: Applying Shaders [Re: ROMAC] #31182
07/26/04 23:33
07/26/04 23:33
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline

Expert
Nadester  Offline

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Define a material, like so:

Code:
 material mat_fur {} 



Then, make a starter function like so:

Code:
 starter init_fur{
effect_load(mat_fur,"fur.fx");
}



Then, apply your material to an entity's action, like so:

Code:
 action test{
my.material = mat_fur;
}



That's it! Just keep in mind - chances are that shader will not work because RenderMonkey is directX 9 based, and 3dgs is directX 8.1.


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