how to write and implement a Cg shader?

Dec 8, 2007 at 3:25pm

how to write and implement a Cg shader?

Hi,

There is in the jitter documentation only a chapter how to write and implement GLSL shaders in the jitter format .jxs

Where can i get documentation how to write and implement a Cg shader in the jitter format .jxs?

What is the best to learn and go for, GLSL or Cg?
Is there somebody how knows a free and good GLSL/Cg shader editor with debugging for MacOS x?

Thanks, grzz, BartBITter

#34939
Dec 8, 2007 at 6:40pm

On Dec 8, 2007 7:25 AM, bart wrote:
>
> Hi,
>
> There is in the jitter documentation only a chapter how to write and implement GLSL shaders in the jitter format .jxs
>
>
> Where can i get documentation how to write and implement a Cg shader in the jitter format .jxs?

see jitter-shaders/material/mat.phong.cg.jxs

> What is the best to learn and go for, GLSL or Cg?

The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics

http://www.amazon.com/Cg-Tutorial-Definitive-Programmable-Real-Time/dp/0321194969

> Is there somebody how knows a free and good GLSL/Cg shader editor with debugging for MacOS x?
>

Never heard of one. I doubt one exists but if someone does know of
such a thing I would love to hear about it.

wes

#118522
Dec 8, 2007 at 6:54pm

I am sometimes using a program that comes with xcode,
called glsleditorsample. if your files have extensions like .vert or
.frag, this is the default program. or are you looking for something
more sophisticated?
marius.

Wesley Smith wrote:
> On Dec 8, 2007 7:25 AM, bart wrote:
>> Hi,
>>
>> There is in the jitter documentation only a chapter how to write and implement GLSL shaders in the jitter format .jxs
>>
>>
>> Where can i get documentation how to write and implement a Cg shader in the jitter format .jxs?
>
> see jitter-shaders/material/mat.phong.cg.jxs
>
>> What is the best to learn and go for, GLSL or Cg?
>
> The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics
> http://www.amazon.com/Cg-Tutorial-Definitive-Programmable-Real-Time/dp/0321194969
>
>> Is there somebody how knows a free and good GLSL/Cg shader editor with debugging for MacOS x?
>>
>
> Never heard of one. I doubt one exists but if someone does know of
> such a thing I would love to hear about it.
>
> wes
>

#118523
Dec 9, 2007 at 7:50pm

2 x thanks

So i have to buy the book but it is too expensive for now.
I will check glsleditorsample.

It doesn’t have to be sophisticated because i wanna try if it is possible for me to get into shaders but a little debugger and a few examples how to start helps a lot.

Grzz, Bart

#118524
Dec 9, 2007 at 7:56pm

The book is good for learning shader design like how to build your own
per-pixel lighting shader or how to do reflection and refraction. If
you want to know more about the Cg spec, download the documentation
from Nvidia’s site. You can probably find shaders online and teach
yourself without having to buy the book if it’s too expensive.

wes

On Dec 9, 2007 11:50 AM, bart wrote:
>
> 2 x thanks
>
> So i have to buy the book but it is too expensive for now.
> I will check glsleditorsample.
>
>
> It doesn’t have to be sophisticated because i wanna try if it is possible for me to get into shaders but a little debugger and a few examples how to start helps a lot.
>
> Grzz, Bart
>
>

#118525

You must be logged in to reply to this topic.