Shaders, Slab and jxs

Gary Lee Nelson's icon

Where do I find the basic reading on writing .jxs files for use in
jit.gl.slab?

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

wallace winfrey's icon

Moving this thread to the Jitter discussion. Please post Jitter-related topics to jitter@cycling74.com or the Jitter topic in the forums.

Thanks,

w

Wesley Smith's icon

Look in the JXS appendix (D?) of the JitterTutorial.pdf. It gives the
spec. Personally, I think the easiest way to learn is to look at
various shader examples that use textures or multiple textures or no
textures and modify them. You can get a feel for the spec easier that
way.

wes

On 11/17/06, Gary Lee Nelson wrote:
> Where do I find the basic reading on writing .jxs files for use in
> jit.gl.slab?
>
> Cheers
> Gary Lee Nelson
> Oberlin College
> www.timara.oberlin.edu/GaryLeeNelson
>
>
>
jitter mailing list
jitter@cycling74.com
https://cycling74.com/mailman/listinfo/jitter

Gary Lee Nelson's icon

Thanks Wes.

I agree that looking at existing examples is best. I've been doing that.
In fact, almost everything I have ever learned in computer music has come
from looking at examples. Thanks to everyone who posts examples and source
code.

Appendix C is very useful.

Apologies to Wallace for the incorrect posting.

On 11/17/06 4:28 PM, "Wesley Smith" wrote:

> Look in the JXS appendix (D?) of the JitterTutorial.pdf. It gives the
> spec. Personally, I think the easiest way to learn is to look at
> various shader examples that use textures or multiple textures or no
> textures and modify them. You can get a feel for the spec easier that
> way.
>
> wes
>
> On 11/17/06, Gary Lee Nelson wrote:
>> Where do I find the basic reading on writing .jxs files for use in
>> jit.gl.slab?
>>
>> Cheers
>> Gary Lee Nelson
>> Oberlin College
>> www.timara.oberlin.edu/GaryLeeNelson
>>
>>
>>
> jitter mailing list
> jitter@cycling74.com
> https://cycling74.com/mailman/listinfo/jitter

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

jitter mailing list
jitter@cycling74.com
https://cycling74.com/mailman/listinfo/jitter

Andrew Benson's icon

I also recommend looking at either the orange book or the GLSL Language
spec, which is a free PDF download. The most valuable things to know
about GLSL (for use with jit.gl.slab) are the various built-in functions
(such as smoothstep(),dot(),etc.), the "swizzle" syntax, and the
texture lookup stuff. From there you should be able to write a great
deal of shaders by just looking at the extensive examples that come with
Jitter.

Cheers,
Andrew
jitter mailing list
jitter@cycling74.com
https://cycling74.com/mailman/listinfo/jitter

yair reshef's icon

i find a suitable ide is key. typhoon labs offer an ide for shaders.
with a course and some tutorials. color coded syntax etc...
http://www2.typhoonlabs.com/
windows and linux + win source.

also.
a good(?) talk on the state of opengl and shaders + tips.
quote; "never ever ever use immediate mode" (10:04)
as in glbegin...glend
http://video.google.de/videoplay?docid=847205086747563852&q=Blender+Conference+2006

On 11/19/06, Andrew Benson wrote:
>
> I also recommend looking at either the orange book or the GLSL Language
> spec, which is a free PDF download. The most valuable things to know
> about GLSL (for use with jit.gl.slab) are the various built-in functions
> (such as smoothstep(),dot(),etc.), the "swizzle" syntax, and the
> texture lookup stuff. From there you should be able to write a great
> deal of shaders by just looking at the extensive examples that come with
> Jitter.
>
> Cheers,
> Andrew
> jitter mailing list
> jitter@cycling74.com
> https://cycling74.com/mailman/listinfo/jitter
>

jitter mailing list
jitter@cycling74.com
https://cycling74.com/mailman/listinfo/jitter

nicnut's icon

this question is regarding jitter tutorial # 33. is it possible to send
a message to jit.gl.handle to control the way it's spinning with auto
rotate "on" without using the mouse?

thanks, nick

vade's icon

you can use [line] to send control rate 'ramps' to a message
[rotatexyz 0. 0. 0.] and then have 3 lines for each 'direction'. I
too wish there was a nudge message, where you could send a vector
similar to how you make one with your mouse, but the line method
works just fine.

v a d e //

www.vade.info
abstrakt.vade.info

On Nov 20, 2006, at 12:20 AM, Nick wrote:

> this question is regarding jitter tutorial # 33. is it possible to
> send a message to jit.gl.handle to control the way it's spinning
> with auto rotate "on" without using the mouse?
>
> thanks, nick
>

nicnut's icon

ok, thanks.

On Nov 20, 2006, at 9:11 AM, vade wrote:

> you can use [line] to send control rate 'ramps' to a message
> [rotatexyz 0. 0. 0.] and then have 3 lines for each 'direction'. I too
> wish there was a nudge message, where you could send a vector similar
> to how you make one with your mouse, but the line method works just
> fine.
>
>
> v a d e //
>
> www.vade.info
> abstrakt.vade.info
>
>
>
>
> On Nov 20, 2006, at 12:20 AM, Nick wrote:
>
>> this question is regarding jitter tutorial # 33. is it possible to
>> send a message to jit.gl.handle to control the way it's spinning with
>> auto rotate "on" without using the mouse?
>>
>> thanks, nick
>>

yair reshef's icon

http://www.mathematik.uni-dortmund.de/~goeddeke/gpgpu/tutorial.html
GPGPU::Basic Math Tutorialyet another tutorial to bookmark

On 11/19/06, yair reshef wrote:
>
> i find a suitable ide is key. typhoon labs offer an ide for shaders.
> with a course and some tutorials. color coded syntax etc...
> http://www2.typhoonlabs.com/
> windows and linux + win source.
>
>
> also.
> a good(?) talk on the state of opengl and shaders + tips.
> quote; "never ever ever use immediate mode" (10:04)
> as in glbegin...glend
>
> http://video.google.de/videoplay?docid=847205086747563852&q=Blender+Conference+2006
>
> On 11/19/06, Andrew Benson < andrewb@cycling74.com> wrote:
> >
> > I also recommend looking at either the orange book or the GLSL Language
> > spec, which is a free PDF download. The most valuable things to know
> > about GLSL (for use with jit.gl.slab) are the various built-in functions
> > (such as smoothstep(),dot(),etc.), the "swizzle" syntax, and the
> > texture lookup stuff. From there you should be able to write a great
> > deal of shaders by just looking at the extensive examples that come with
> > Jitter.
> >
> > Cheers,
> > Andrew
> > jitter mailing list
> > jitter@cycling74.com
> > https://cycling74.com/mailman/listinfo/jitter
> >
>
>

jitter mailing list
jitter@cycling74.com
https://cycling74.com/mailman/listinfo/jitter

mat_kinotek's icon
nesa's icon

I think this was discussed before, but can't remember keywords.

First that comes to mind is to use monospaced/fixed width fonts. There are
plenty of free ones on the google, and their advantage is that all
characters(including spaces) are the same size, so you could calculate each
character position relatively easy.

> another jit.gl.text3d only for the selected words,
> but then i cannot insert and justify
> them properly in the lines.