Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 1,290 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to apply shaders to Level Geometry?? #111925
02/14/07 13:36
02/14/07 13:36
Joined: Jun 2005
Posts: 5
T
TheFLood Offline OP
Newbie
TheFLood  Offline OP
Newbie
T

Joined: Jun 2005
Posts: 5
Can any one give me an example of how to apply a simeple .FX file to Level geometry. I can do it to entities but I can not seem to get a shader to work on the walls and floors.

Last edited by TheFLood; 02/14/07 13:38.
Re: How to apply shaders to Level Geometry?? [Re: TheFLood] #111926
02/14/07 16:20
02/14/07 16:20
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
I can give you an example of moving your mouse up and clicking the search button at the top of the page....


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: How to apply shaders to Level Geometry?? [Re: Rhuarc] #111927
02/14/07 16:23
02/14/07 16:23
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Quote:


I can give you an example of moving your mouse up and clicking the search button at the top of the page....




lmao - so true...

TheFlood: The problem with this is that it is too damn slow. Shaders on models runs slow enough as is, but on level geometry is a joke, "unless you like single digit framerates."


xXxGuitar511
- Programmer
Re: How to apply shaders to Level Geometry?? [Re: xXxGuitar511] #111928
02/16/07 13:54
02/16/07 13:54
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
you can assign a shader to a texture by defining a material like this:
//the name of the texture in the level is block_a.tga
material block_a
{
effect = "yourshader.fx";
}

easy, it is in the manual


Check out the throwing game here: The throwing game
Re: How to apply shaders to Level Geometry?? [Re: Roel] #111929
02/17/07 00:48
02/17/07 00:48
Joined: Jul 2004
Posts: 311
Aaron Offline
Senior Member
Aaron  Offline
Senior Member

Joined: Jul 2004
Posts: 311
what is really a shader is it like making shadows or like on the wall the darkness?? or something.

Re: How to apply shaders to Level Geometry?? [Re: Aaron] #111930
02/17/07 04:15
02/17/07 04:15
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
a shader takes every vertex/pixel on a model and runs a little piece of code for it.

The code can do just about anything to it. Mainly changing the color. Look it up on wikipedia or somethin.


xXxGuitar511
- Programmer
Re: How to apply shaders to Level Geometry?? [Re: xXxGuitar511] #111931
02/17/07 05:41
02/17/07 05:41
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well sorta, vertex you can move the position and for the pixel, you can move it stretch it, choose the color, mix the color, all sorts of things.


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