near/far clip per object?

Feb 28, 2009 at 11:27am

near/far clip per object?

is there a way to use near and far clip for single objects and not the whole scene? Im making something that looks really great with the clip settings of the render object really tight together, but I want to be able to add another piece of geometry in that isn’t affected by the clip planes.

Is this possible?

Feb 28, 2009 at 7:24pm

check out the glclipplane message to gl.sketch.
should do what you want.

Feb 28, 2009 at 7:38pm

Sorry, I had been confused about the functionality of the drawmatrix command, disregard this post.


But what if my geometry is heavily based on something I’m pretty sure is not possible with sketch?? I am using gridshapes with matrixoutput 1 being distorted by a BFG and then going into a mesh… Is it possible to do this with sketch? I didn’t think sketch had the ability to do matrixoutput.. or is there a way for me to run my mesh into sketch somehow, and then do the clipping inside there? The other objects I am working with are isosurf, would those be able to go into sketch somehow?

Feb 28, 2009 at 8:10pm

I see that I can run named matrix objects into sketch, but it seems like they loose some of their interactivity.. like they become sortof a “sample” of where they are at when they are drawn to sketch.. I guess Id just have to reset and draw the shape each frame.. Ill try it out.

Mar 1, 2009 at 4:17am
Axiom-Crux wrote on Sat, 28 February 2009 13:38

I am using gridshapes with matrixoutput 1 being distorted by a BFG and then going into a mesh.

This isn’t about your question, just about this sentence. I’ve done this too and I just have to say it’s *amazing* for visualizations, for example sine functions rolling through the mesh like water waves. If anyone’s looking to create visuals like this, the above plan works incredibly well… or an alternative is to just use the jit.bfg directly to (especially good if the jit.bfg has an auto-offset driven by a counter so that it “scrolls” along). Think sine waves (in this case, actually “hills”) rendered in 3D which affect a plane, gradually rolling through the surface, which of course can have video on it as a texture. beautiful!

Mar 1, 2009 at 6:04am

Hey SHHHHHHHH quiet dont give out the secret master technique!!!

Mar 2, 2009 at 7:50am

secret for noone

Mar 6, 2009 at 4:49am

I was just joking around, of course its an obvious combo,, but it seems like I haven’t seen anyone doing it…

Mar 10, 2009 at 8:36pm

It’s an old trick, checkout Whitney brothers jit.bfg examples, from the sixties:)
(bfg at ~2:20)

Mar 12, 2009 at 3:08am

I guess you guys are on a different tip with the BFG then I am, heres some of my bfg pics


You must be logged in to reply to this topic.