rutra Posted March 1, 2012 Share Posted March 1, 2012 I've translated Malcolm Kesson's Cellular Automata SL into a Houdini VOP RSL shader (no reason). You can find the original SL on his website Main difference is that Houdini VOPs don't support arrays so I used multiple connections and 8 texture calls instead of a for loop. Let me know if there is some better way of querying neigbours:) Original shader cell size and count is dependant on micropolgyons and controlled by shading rate. I've set the shading rate to a very high value and the cell count is controlled by geometric subdivision instead. That meant I couldn't use random function for initialization so I replaced it with cellnoise shadeop. OTL library contains digital assets: cellular - Object type digital asset bake3d - shadeop for pointcloud baking texture3D - shadeop for pointcloud reading cellnoise - rendermans cellnoise function cellular_automata - cellular.sl VOP node version. Just a direct implementation of the code. Not used for anything. Cellular is Object Type Digital Asset that contains shaders, geometry and ROPs for 'out of the box' test render. cellularotl.zip 1 Quote Link to comment Share on other sites More sharing options...
gui Posted March 2, 2012 Share Posted March 2, 2012 Very cool. Thanks for sharing that! Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted March 2, 2012 Share Posted March 2, 2012 vops do support arrays! (and have been there in H10 and H11 as far as I remember) but only if your using an inline vop..or if you write your otl in vex. H12 has officially launched and it has now support for array inputs etc! the only thing is to create an array you would have to use an inline vop which lets you write vex code directly inside vex! Quote Link to comment Share on other sites More sharing options...
rutra Posted March 2, 2012 Author Share Posted March 2, 2012 but only if your using an inline vop..or if you write your otl in vex. Yes, inline vop would work but I wanted to recreate the shader with minimum amount of code and try to use only existing vops where possible. Just as an exercises to demonstrate that you can translate almost any code to vop network. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.