Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 689 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to use the shaders included? #262421
04/23/09 16:22
04/23/09 16:22
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
A7 Pro

I dont find the answer to this question, altough it seems obvious for you all. I downloaded the shader viewer from the downloads page, and searched the shaders in the include- and code folders. When i try to implement the actions for the models, I only get to work the glassbmap

Can someone teach me?

What I infer is:

The code for shaders is writen in CODE folder, in .fx format
the materials are in INCLUDE
you set the action wich calls the material in the action of the model. I tought its supposed to give the shader automaticaly. But the models are turned all black, or simply not drawn.

Can someone explain me? From the beggining, please do not turn me to look at the shader tutorial of tacoCohen. Thanks

Re: How to use the shaders included? [Re: FcoElizalde] #262427
04/23/09 17:01
04/23/09 17:01
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Which version do you have, 7.70 or 7.73?

Normally, you need only assign the material and set the 4 skills that the material needs, this is the example in the manual:

#include <mtlFX.c>
...
action toon_warrior()
{
my.skill41 = floatv(50); // Shadow
my.skill42 = floatv(50); // Edgewidth
my.skill43 = floatv(50); // Threshold
my.skill44 = floatv(50); // Smooth
my.material = mtl_toon;
...
}

Re: How to use the shaders included? [Re: Spirit] #262631
04/25/09 01:28
04/25/09 01:28
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
A7.73

Hey thanks, it all make sense now.

But the model its still dark, even with the same parameters you gave me.

Re: How to use the shaders included? [Re: FcoElizalde] #263452
04/29/09 18:32
04/29/09 18:32
Joined: May 2008
Posts: 62
México.
F
FcoElizalde Offline OP
Junior Member
FcoElizalde  Offline OP
Junior Member
F

Joined: May 2008
Posts: 62
México.
I figured out what my problem was:

Those shaders didnt work when the sun_angle where changing. When I stoped the functions the shaders started to run.

It was my fault for not letting you know the code but still thanks, and:

Is there a way to use the shaders when the sun_angle is moving?


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