Jump to content

Custom Simulations In Vop Sops And Cops


ofer

Recommended Posts

Hello!

Im searching for a way to implement some real-time CG techniques in houdini.

I want to try a simple water simulation to start. I started with the article from "Game Programming Gems".

With SOPs, the method requires me to store the mesh from the previous frame, and the current frame, to derive the next frame's mesh. Couldn't think a way to do that.

I looked in COPs, but couldn't find a way to sample neighbour pixels, or to sample a 2D texture. SO I can't take a texture based approch.

I will try to come up with a math+trig based solution, but being able to create some simple grid-based simulations is always helpful.

Any suggestions?

Link to comment
Share on other sites

Hi, ofer

this topic is being brought up from time to time, there are at least 3 people here who have implemented this algorithm in Houdini (partially or not).

Try the following links for related discussions:

http://forums.odforce.net/index.php?showtopic=3332&st=24

http://forums.odforce.net/index.php?showtopic=4804&hl=

Link to comment
Share on other sites

Thanks! Thats not what I was talking about, but I was searching for this voxel thread for some time.

Anyway, I think I thought of a way to create a simulation with COPs, and I realized I forgot about the SOP solver in DOPs, so that might be the way to go with SOPs.

I prefer COPs, since I its more scaleable. I think I can do neighbour sampling using four transform COPs and then inputing them into my VOP COP, and to use expressions in the file name in a File COP to use a texture from the previous time step.

Ill try it.

EDIT: I found the 'Cop Input' COP. That is what I was looking for.

Edited by ofer
Link to comment
Share on other sites

I have been thinking of a solution to this using CHOPS when I was using Touch a while ago, I never got past how to do a convolve on all the channels coming from a geometry CHOP, but I do know H better these days, and I will give it another go soon...

I know there is a way to achive this at realtime speeds, the first time I ever saw this algorithm in action was the old irisGL demos on a indigo running at 150 Mhz

MD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...