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
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 2
Shaders, .FX files, and how they work... #40846
02/09/05 17:02
02/09/05 17:02
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline OP
Serious User
capanno  Offline OP
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
I know its irritating to help out noobs, but I cant find tutorials.
Say ive got a .fx file. What can I do with it? A shader is not a texture, right?
Its function is to be used ON the texture to get cool effects, right?
How do I use it in my levels. How do I use them on the textures.
If Im completely wrong about how shaders work or what they do, please correct me.

much apreciated

capanno

Re: Shaders, .FX files, and how they work... [Re: capanno] #40847
02/09/05 22:09
02/09/05 22:09
Joined: Feb 2005
Posts: 48
Hamburg, Germany
Jerome8911 Offline
Newbie
Jerome8911  Offline
Newbie

Joined: Feb 2005
Posts: 48
Hamburg, Germany
Quote:

Say ive got a .fx file. What can I do with it?



You can bind a .fx file in your project.:

Code:
string shader_name = <effect.fx>; 



a .fx file contains one or more shader-effects. Mosten there is a readme how to use the .fx file.

Quote:

A shader is not a texture, right?



right
Quote:

Its function is to be used ON the texture to get cool effects, right?



It can be assigned to a model-, or level-texture, but can also have effects on the whole screen.
Quote:

How do I use it in my levels. How do I use them on the textures.



There are two different types of textures.
The level- and the model-textures.
In both cases you have to select a material for it.
If you want a certain effect on a model you have to give it a action, like this one:
Code:

action Entity
{
my.material = name_of_the_material;
}


To say the truth, if its a level-texture I dont know how it works, but a good example for Shader on level-textures is the Ultimate lighting shader from Matt_Aufderheide

A few days ago i saw a very good tutorial in the forum. It explained how a toon shader works, perhaps a good beginning.

MfG
Jerome


Visit my indieDB page for Tactics of World War One

Or download Scheherazade's Journey, made for the A8 Winter 2020 Game Jam


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