stroke texture jit.gl.sketch
Sep 22, 2006 at 5:28pm
stroke texture jit.gl.sketch
I’m trying to recreate the textured stroke in jsui_splinestuff-example using jit.gl.sketch, but the texture part won’t work. I read from some previous posts mentioned about tesselating the stroke but I didn’t see any action like that in the jsui_splinestuff-example. Here is the part of the js code I used to create the stoke (I wrote this by mimicing jsui_splinestuff-example). Could anyone help me find out why the texture is not working?
Thanks in advance,
var mystroke=new JitterObject(“jit.gl.sketch”,”ListenWindow”);
Sep 22, 2006 at 6:44pm
On Sep 22, 2006, at 10:28 AM, xiaohua sun wrote:
jit.gl.sketch doesn’t support the JSUI sketch Image class. You need
Sep 23, 2006 at 12:40am
Thank you very much for your reply. I created the jit.gl.texture instance and use it for the glbindtexture. The texture got assinged to the stroke when I experimented with some moives and images, but it seems that the texture is not applied to the stroke as a single piece. and also those two brush tif files don’t work.
I’m working on a project in which the textured stroke effect in jsui_splinestuff-example.pat is very very important for me. Could you do me a favor and make a simple patch to show how this would work with jit.gl.sketch?
Thanks a lot,
Sep 24, 2006 at 1:08am
When I rotate the jit.window in which I draw the (badly) textured stroke, I just realized that it is actually a flat thing with no z dimension. What I’m looking for is something 3d (I can navigate around it) and have the same brush effect like in the jsui_splinestuff-example.pat. Is this something possible to be done in jitter or max?
I had ever created 3d strokes in Maya using my wacom pen, but the rendering process is so painful and the mel coding crashes very often. Above all, it is not real time. It will be great if there is a way to make the 3d stroke working in jitter.
Any suggestion will be very appreciated.
Sep 24, 2006 at 8:48am
have you looked into xray.jit.line2quad
2006/9/24, xiaohua sun
Sep 24, 2006 at 9:53pm
Thank you very much for the information.
I downloaded the xray external objects, and got the “load old CFM externals disabled” error with MAX4.6, then I tested with MAX4.5.7, it works there, but this might be a problem because all my other pieces are built in 4.6.
I then looked at xray.jit.line2quad.pat, and found that it is different from what I’m looking for. The external generates equal sized quads at 3d points along a curve oriented based on the tangent at each point. the texture is then applied to each quad individually.
What I want to have are those features in jusi sketch, I can defined the color, width and texture coordinate at each control point of a stroke. Also the capability to use texture with alpha chanel. Of course, I need a 3D version of these features.
Thanks anyway for your help,
Sep 24, 2006 at 10:19pm
If you want UB version of the xray object, see this link:
My webserver switch machines and something has gone awry with the
On 9/24/06, xiaohua sun
You must be logged in to reply to this topic.