Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
noobs and shader #113023
02/21/07 17:52
02/21/07 17:52
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
I applied a shader via MED at a model but when I opened it in Wed , it appaired more darker but without effects.
I change file fx but it rendered the same.
What is the right procedure to use a simply effect shader to a model?

Re: noobs and shader [Re: Mondivirtuali] #113024
02/21/07 18:11
02/21/07 18:11
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
via a script:
Code:

material shader_mat
{
effect = <filename.fx>; //your fx file
//or like this
effect = "
shader code goes here
";
}

action model
{
my.material = shader_mat;
}




BASIC programmers never die, they GOSUB and don't RETURN.
Re: noobs and shader [Re: bstudio] #113025
02/21/07 18:16
02/21/07 18:16
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
Thank..but in this way the model can have animation, just background models.
Okay, I'll try it.

Re: noobs and shader [Re: Mondivirtuali] #113026
02/21/07 18:22
02/21/07 18:22
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
you don't have to animate it


BASIC programmers never die, they GOSUB and don't RETURN.
Re: noobs and shader [Re: bstudio] #113027
02/21/07 18:25
02/21/07 18:25
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
I would put an effect shader to an animate model..a cool monster for istance.

Re: noobs and shader [Re: Mondivirtuali] #113028
02/21/07 18:29
02/21/07 18:29
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
ah, you mean animate the skin? you can do that in your fx file


BASIC programmers never die, they GOSUB and don't RETURN.
Re: noobs and shader [Re: bstudio] #113029
02/21/07 18:35
02/21/07 18:35
Joined: Oct 2005
Posts: 528
Italy
M
Mondivirtuali Offline OP
User
Mondivirtuali  Offline OP
User
M

Joined: Oct 2005
Posts: 528
Italy
MMMMMMMMMMM
May you link me some tutorials?

Re: noobs and shader [Re: Mondivirtuali] #113030
02/21/07 18:37
02/21/07 18:37
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands


BASIC programmers never die, they GOSUB and don't RETURN.
Re: noobs and shader [Re: Mondivirtuali] #113031
02/21/07 19:00
02/21/07 19:00
Joined: Dec 2005
Posts: 414
Munich, Germany
R
Robotronic Offline
Senior Member
Robotronic  Offline
Senior Member
R

Joined: Dec 2005
Posts: 414
Munich, Germany
Hmm, just to make sure:

Of course you donīt have to give the model exactly this action:

action model
{
my.material = shader_mat;
}

This was just a simple example. You can of course write many more lines of code into this action, which include your animation instructions ...

action model
{
my.material = shader_mat;
// many more instruction can be placed here ...
}

Cheers!

Re: noobs and shader [Re: Robotronic] #113032
02/21/07 19:04
02/21/07 19:04
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
yeah well, didn't say that because i assumed he knew that


BASIC programmers never die, they GOSUB and don't RETURN.
Page 1 of 2 1 2

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