[javascript-dev] Re: gl orientation and "moving forward"
Seejay James
cjlacke at ilstu.edu
Sun Feb 17 18:59:10 MST 2008
- Previous message: [javascript-dev] Re: Send a list to a named bpatcher
- Next message: [javascript-dev] Re: gl orientation and "moving forward"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It's nice to experiment with the js so you can determine the commands that are possible, and be able to do just what you want. That said, you should also look at jit.gl.sketch and its cousins (gridshape is another good one) since there's a lot taken care of already, and may be better optimized (?). I did a lot of stuff within jsui, and while I don't regret the time spent fiddling, there was a lot ready-to-go in the jit.gl.sketch that I should have explored first, which can readily take advantage of simple max messages (i.e., "color 1. 0. 0. 0.5" for red at 50% alpha, formatted thru a swatch and a slider). Not only that, but you can then attach a jit.gl.handle to your Render object, so you can accomplish lots of perspective changing intuitively. Most of the commands to jit.gl.sketch also work for jit.gl.render, so stuff like "rotatexyz" will work on an object-by-object basis for the jit.gl.sketch parts, and a scene basis for the jit.gl.render part (with multiple streams going at once if you want). Controlling things like color / alpha, blend modes, line width or point size, etc., is easy and gives you a lot of options.... textures are also readily available to apply to whatever shapes you have. For more crazy fun check out jit.gl.model and use a 3D program to generate some .obj models, then use them in your sketch scene... great stuff! --CJ
- Previous message: [javascript-dev] Re: Send a list to a named bpatcher
- Next message: [javascript-dev] Re: gl orientation and "moving forward"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
