shader reference available?

Feb 18, 2009 at 5:09pm

shader reference available?

hi peoplez,

i started messing with shaders/slabs for GL accelerated video processing. there s a bunch of shaders included with max5 but i can’t find a reference documenting ‘m. does it exist and if so, where is it? sorry if i m being dumb but i really didn t find it anywhere…

tanx & greetz, dtr

#42381
Feb 18, 2009 at 5:37pm

We have few help files for some shaders (look in Max folder), but it seems to be a self-developping task … and beyond Max itself.
Unfortunately, for non-programmers!

#151684
Feb 18, 2009 at 6:00pm

while no official max reference for shaders, their are several resources, many online and free.

imo, the best place to start is the glsl orange book (although not online or free).

also, the cg shader tutorial is great.

http://http.developer.nvidia.com/CgTutorial/cg_tutorial_chapter01.html

when you are ready for it, the first three gpu gems books are online at nvidia as well.

the lighthouse tutorials are very instructive:

http://www.lighthouse3d.com/opengl/glsl/

some of the shaderx books are also online:

http://tog.acm.org/resources/shaderx/

please note, most of these resources are more geared towards creating shaders for 3D materials. a lot of the shaders that come with jitter are for 2D texture manipulation, possibly with slabs. i remember this distinction confusing me when i first started learning. this article may be interesting regarding 2D compositing shaders:

http://blog.mouaif.org/2009/01/05/photoshop-math-with-glsl-shaders/

-rob

#151685
Feb 18, 2009 at 6:55pm

tanx! actually i was more looking for a reference on the shaders included with the max5 install than for a general shader programming reference. guess it s gonna be a lot of getparamlist and trial & error.

#151686
Feb 18, 2009 at 8:11pm

in this case, have you tried just opening up the .jxs files in a text editor? they are all xml files containing

tags that describe all the parameters used by that shader.

#151687
Feb 18, 2009 at 8:12pm

welcome in the max world :-)

#151688
Feb 18, 2009 at 8:38pm

On Feb 18, 2009, at 10:55 AM, dtr wrote:

>
> tanx! actually i was more looking for a reference on the shaders
> included with the max5 install than for a general shader programming
> reference. guess it s gonna be a lot of getparamlist and trial &
> error.

Yes, the shaders aren’t documented the same way objects are currently.
In the future we will be making shaders more accessible in a variety
of ways. In the meantime, here’s a great patch from a fellow Jitter
user:

http://wiki.pelado.co.uk/jitter/p.jit.gl.shader

And don’t miss some demo patches for many shaders at:

examples/jitter-examples/render/slab-helpers

-Joshua

#151689
Feb 18, 2009 at 9:34pm

Please look at examples/jitter-examples/render/slab-helpers/
This folder contains a number of help-style patches that demonstrate most of the included shaders for slab processing. In the future we are hoping to provide a better interface for this info, but for now, the jitter-examples folder is full of very enlightening information.

Best,
Andrew B.

#151690
Feb 18, 2009 at 9:45pm

looks like i did miss a couple of things indeed. tanx all!

pelado’s tool is great!

#151691

You must be logged in to reply to this topic.