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
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using Shaders Made with Cg? #17178
09/18/03 04:59
09/18/03 04:59
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline OP

Expert
Nadester  Offline OP

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
I have downloaded the Cg Toolkit from Nvidia and have experimented in programming vertex shaders in Cg. Once I have made my vertexshader.cg file, can I compile it into Shader Assembly with the cg compiler provided in the toolkit? Or is there some other cg compiler out there that I must use(or should use, if you have any reccomendations)? Also, once I get my shader assembely code, do I just paste it into my c-script like so:

Code:
 VertexShader =
decl
{...;}
asm
{
... my shader assembly here...;
};


Thankx for any help on this. Is there any documentation on this with 3dgs out there other than readbeta.txt?


--Eric
Re: Using Shaders Made with Cg? [Re: Nadester] #17179
10/24/03 18:06
10/24/03 18:06
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
did you ever get ananswer?
CG loks like an awesome tool and it exports .fx


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: Using Shaders Made with Cg? [Re: Drew] #17180
10/25/03 04:20
10/25/03 04:20
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
you can't use cg directly. but it is possible to compile it to shader assembler which will work with a6 with some adaptations.

when conitec updates the engine to dx9 the directx high level shading language (which is basically the same as cg) will be supported.

Re: Using Shaders Made with Cg? [Re: ventilator] #17181
10/25/03 05:20
10/25/03 05:20
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Thanks for the info!
Ventilator is the shader king!


Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: Using Shaders Made with Cg? [Re: Drew] #17182
10/25/03 12:35
10/25/03 12:35
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline OP

Expert
Nadester  Offline OP

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
lol I just let the topic die down once I figured it out on my own. Cg is a very neat tool, but I don't have time to start learning another language at the moment with my game and all. I am just sticking to dx assembly.


--Eric
Re: Using Shaders Made with Cg? [Re: Nadester] #17183
10/30/03 11:49
10/30/03 11:49
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
It should be possible to convert Cg to DX assembly and then cutnpaste this into a shader file for GameStudio. Check the options of that command-line compiler.
Also, if I remember correctly, RenderMonkey allows HLSL to ASM conversions.

Re: Using Shaders Made with Cg? [Re: Marco_Grubert] #17184
10/30/03 18:49
10/30/03 18:49
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Rendermonkey is amazing... please someone convert the Fur shader!!!



Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot
Re: Using Shaders Made with Cg? [Re: Drew] #17185
10/31/03 12:58
10/31/03 12:58
Joined: Jul 2002
Posts: 2,813
U.S.
Nadester Offline OP

Expert
Nadester  Offline OP

Expert

Joined: Jul 2002
Posts: 2,813
U.S.
Post a link and I'll give it a shot Drew. I have gotten the hang of converting... for the most part


--Eric
Re: Using Shaders Made with Cg? [Re: Nadester] #17186
10/31/03 13:21
10/31/03 13:21
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
Drew Offline
Serious User
Drew  Offline
Serious User

Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
wow really? converting from what specifically?
here is renderMonkey (it includes a fur shader in examples, one of 4 that I got to run on my ATI 8500, so i assume they are 8.1 shaders...)

RenderMonkey

Is it possible for a non-shader programmer to convert? or is it more of an art?
Do you have any new shaders working?



Drew Medina
Game Developer (Artist)
Personal & professional website
Deviant Art
My Blogspot

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