Newbie

adsrowe's picture

Hey guys,

Ive been playing around with max/msp for a little bit and then came across QC. At the moment im looking at the isosurface patches and really love the visuals from them. Im wanting to create something interactive just as a case of educating myself, where i can either make the values of the isosurface reactive to either motion (kinekt), mouse input or sound. Ive tried playing with the trackball but not getting very far.

I work more by seeing examples and then deconstructing, but the iso patch is quite large and im struggling to see how i would implement the trackball. Any help would be awesome.

Many thanks.

Ads

cybero's picture
Re: Newbie

Pardon me asking, but which isosurface patches are you referring to?

psonice's picture
Re: Newbie

Not an isosurface, but look how the camera is implemented here:

http://kineme.net/forum/Applications/Compositions/Raytracingraymarchingi...

Basically, the mesh (ignore the openCL, it's just used to get around a bug with the glsl mesh patch) is the camera. Move/rotate it to move the camera, put it in a trackball, whatever.

In the GLSL vertex shader, it reads the vertex position + rotation and sets up the camera from that, then resets the vertex position to screen coordinates so it renders filling the screen regardless of where the actual mesh is.

Then it passes the camera position + ray direction into the fragment shader, where you do your raytrace/cast/march/whatever to draw your isosurface.

adsrowe's picture
Re: Newbie

Hi cibero, it this one

http://kineme.net/Applications/Compositions/IsosurfaceRaytracerthankston...

posted by toneburst.

I did some experimentation with ferrofluid last year, and found it to be an amazing material, now id like to be able to have the same fun with this patch, and so would like to add some usewr interaction outside of the patch values menu.

Many thanks,

ads

PreviewAttachmentSize
tb IsoRaytrace 1.0 (SNav).qtz89.12 KB

adsrowe's picture
Re: Newbie

Hey psonice,

Yeah I looked at this post, i think i understand the basic idea, what im wanting to do is actual have mouse movement or camera motion tracking to control each of the variables within the isosurface patch. I would like people to be able to use their bodies as a way of pushing the material around and changing the state. Ultimately, (and i know im jumping the gun) I would like to make an installation where a camera can detect multiple users. For example, if there is nobody in front of the camera, then all wee would see is the sphere. For every new user that stands in front of the camera, another one of the variables becomes controllable by their movement.

Basically i'm looking into personal space, and how different people interacting effect the outcomes of everything we come into contact with.

Sounds very far fetched, but the idea is quite simple, however I'm aware its the application that isn't. I'm more of an ideas guy and its an avenue i want to explore.

Alternatively i was thinking of looking at control through audio. Ie, high/mid/low controls a seperate variable.

adsrowe's picture
Re: Newbie

it this one

http://kineme.net/Applications/Compositions/IsosurfaceRaytracerthankston...

posted by toneburst.

I did some experimentation with ferrofluid last year, and found it to be an amazing material, now id like to be able to have the same fun with this patch, and so would like to add some usewr interaction outside of the patch values menu.

Many thanks,

ads

PreviewAttachmentSize
tb IsoRaytrace 1.0 (SNav).qtz89.12 KB

cybero's picture
Re: Newbie

Trackball wise, I think this requires a particular input device, mentioned somewhere on the thread the isosurface composition was posted, it is certainly mentioned in the post - a 3DConnexion SpaceNavigator 3D mouse.

If you don't have one or one very similar, then you are stuck in some ways, I guess.

The closest I have at hand is a 2 button Logitech mouse, even then , you'd have to use a standard Mouse input patch and dumb down the detailed facilitation toneburst's composition provides.

adsrowe's picture
Re: Newbie

Cheers for this cybero, I will have a little read and see what i can work out.

I do have at the moment a kinekt, and wondered if it was possible to implement this way into a 3d mouse?

Forgive me if this sounds stupid, im not sure of the practicalities, hence why Im asking you guys!!

Cheers for your time,

Ads

adsrowe's picture
Re: Newbie

Hey Cibero,

Yeah I was being a little thick there. Yup the standard mouse patch does work to a degree, although like you say it then leaves you with limited control. Like I say the next step is to try and get something going with the kinekt. The out come would hopefully be little like this

http://kineme.net/composition/gtoledo3/OpenCLSculpt

for the control, but on the isosurface values.

I shall keep playing around and see what i can find out.

Thanks for your replies.

ads