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
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Shaders in C-Script??? #77427
06/12/06 21:42
06/12/06 21:42
Joined: Feb 2006
Posts: 371
New England
Rad_Daddy Offline OP
Senior Member
Rad_Daddy  Offline OP
Senior Member

Joined: Feb 2006
Posts: 371
New England
Are shaders possible written entirely in c-script. If so, could someone point me in the direction of an example/tutorial. Dosent really matter what kind of affect, just would like to see it. Thank you.


"Read not to contradict and confute, nor to find talk and discourse, but to weigh and consider." Sir Francis Bacon www.deckscapedesign.com
Re: Shaders in C-Script??? [Re: Rad_Daddy] #77428
06/13/06 01:11
06/13/06 01:11
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
No...


You have to write them in a shader language such as HLSL, through the effect of a material...


ex:
Code:

material mat_this
{
ambient_red = 128;
ambient_green = 128;
ambient_blue = 128;
albedo = 100;
power = 100;
alpha = 100;
effect = "
...
";
}

ACTION MyPlayer
{
my.material = mat_this;
...
}



Sorry I didn't write a shader. I only know how they work, not the language...


xXxGuitar511
- Programmer
Re: Shaders in C-Script??? [Re: xXxGuitar511] #77429
06/13/06 01:28
06/13/06 01:28
Joined: Feb 2006
Posts: 371
New England
Rad_Daddy Offline OP
Senior Member
Rad_Daddy  Offline OP
Senior Member

Joined: Feb 2006
Posts: 371
New England
yes, i understand how shaders work as well, or at least how to assign them and good stuff like that. I havent gotten very heavy into HLSL because the quality of my game is not such that I feel I need to waste my time using shaders. However, this is a learning process. I expect my next to be that much better, and hope to use shaders in the near future. Thank you for the answer, xXxguitar.


"Read not to contradict and confute, nor to find talk and discourse, but to weigh and consider." Sir Francis Bacon www.deckscapedesign.com

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