ocean tool

   39444   32   9
User Avatar
Member
383 posts
Joined:
Offline
Hello,

I am working on a ocean tool leisure time.
With the help of Tamte I finally implemented the surface thickness option to the shader.

http://vimeo.com/29420204 [vimeo.com]

Now, I am looking for a solution to add foam trail and some wave deformation to get the abilty to add a ship on the sea …
I already asked for help for it.
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=22645&highlight=point+cloud [sidefx.com]

wait and see

++

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Staff
2535 posts
Joined: Sept. 2007
Offline
Very nice!
Chris McSpurren
Senior Quality Assurance Specialist
SideFX
User Avatar
Member
691 posts
Joined: June 2006
Offline
Hi!!

Nice Ocean setup!!!!.

Here is a possible solution to your blurred refraction and IOR.
Edited by - Sept. 23, 2011 14:17:59

Attachments:
thickness_test_01.hipnc (210.0 KB)

Feel The Knowledge, Kiss The Goat!!!
http://www.linkedin.com/in/alejandroecheverry [linkedin.com]
http://vimeo.com/lordpazuzu/videos [vimeo.com]
User Avatar
Member
5 posts
Joined: Sept. 2011
Offline
This looks amazing
User Avatar
Member
383 posts
Joined:
Offline
thanks guys

alejandro : I'll test your hip file asap.
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
193 posts
Joined: April 2009
Offline
Would you mind to “shed a light” on your shader setup? I think it's very impressive.
User Avatar
Member
383 posts
Joined:
Offline
Hello all,

I posted a image of the network of the shading part of the ocean.
In light blue, there is the 2 HOT I use. Theses nodes are linked the nodes used as deformer in vopsop.
In dark blue, the texture used to “warp” the position of the surface. The texture are link to ramps ( red nodes) to control the amount of foam of the ocean. All the ramp are fused to obtain the final foammask.
The foammask is used to mix 2 shaders (purple node). The surface model is use for the water part. At the top of the picture you can see the actual method use to obtain thickness ( the nice tips of alejandro is not implemented yet). The foam shader is a mix of lambert and constant to fade the dark parts of the lambert ( really really cheap sss fake).

++

Vincent

Attachments:
shader.jpg (243.3 KB)

http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
193 posts
Joined: April 2009
Offline
Thanks a lot for sharing this.
You have a couple of nodes called “screen” in there but i can't figure out just yet what they do. Would you mind telling what those are?
User Avatar
Member
383 posts
Joined:
Offline
the screen node is a subnetwork. I create it to keep the pixel maximum value of the mask to 1.0.
In this network, the values of the pixels in the two layers are negated, multiplied, and then negated again.

++

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
193 posts
Joined: April 2009
Offline
I've been trying to get a grip on your setup but so far haven't been fully succesfull yet.
Would you mind posting a hip file so we can have a more in depth look to see what is going on in the shader and disect it ?
If you don't want to share the entire network, maybe a simplified version of it?

One of the things i don't get is why you are getting the HOTs in here and link them to the sops deformation hot. Wouldn't it be easier to create a variable for minEigenval in sops and import it here. Or is there something i'm missing here…
User Avatar
Member
383 posts
Joined:
Offline
hmm … i don't know the way to import variable from another context.
Can you please show me ?
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
193 posts
Joined: April 2009
Offline
Sure, that's a piece of cake compared to your shop network.
Check the attached file.
In sops the mineigenval attribute that is generated by the HOT is used to calculate a new attribute shaderFoam. You could ofcourse get the attribute mineigval itself as well and do the calculations in shop on that attribute.

In shop you just use an parameter node to get the point attribute in.
I made the interesting nodes red.

Attachments:
ocean_shaderFoam_to_shop.hipnc (362.1 KB)

User Avatar
Member
383 posts
Joined:
Offline
thanks a lot !
I'll check that asap and post my hip .
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
383 posts
Joined:
Offline
well,

I check your hip file. Thanks for this.
The thing is, you export POINT attribute. The mask you obtain is a like a vertex map. If you use new HOT node you obtain finer result.
I jointed a hip file myself. It's a wip so … ther is some mess.
But you can check it out.

++

Vincent

Attachments:
ocean-simple.hipnc (1.4 MB)

http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
193 posts
Joined: April 2009
Offline
Great, thank you very much.
I understand your point about point attributes being more course. I will “dive into” (pun intended) your ocean shop.
Thanks again.
User Avatar
Member
193 posts
Joined: April 2009
Offline
A little thing i found in your file that i do in another way is the environment.
I generally use a environment light for this and set the rendering mode to ray tracing background.
I also don't understand why you use raytracing as a render engine instead of the micropolygon one. The micropoly here speeds up renders tremendously.
There are a lot of settings in you mantra node i don't quite understand why you changed them to those values. For example the Ray tracing acceleration, the texture cache size and for the sampling the sample lock and Ray variance antialiasing. Setting all those back to default settings improved rendertimes a lot and i don't see an awfull lot of difference in the result.
You might have good reasons for the settings you used though.
Just curious.
User Avatar
Member
383 posts
Joined:
Offline
no good reason, just tests …
My mantra began to crash during the render of the anim so …
But if the default value is good for you, it's ok.
About the micropolygone, I think the default render look worse than the default raytrace. You need to increase the dicing to obtain something similar.

++

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
193 posts
Joined: April 2009
Offline
The crashing is a result of the two hots i think. I had crashes as well and i deleted one of the hots and just used 1 and everything runs smooth as can be.
User Avatar
Member
383 posts
Joined:
Offline
the problems with one hot is you can see the pattern repeat itself sometimes ( for very large view). The use of 2 hot tend to reduce that.
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
383 posts
Joined:
Offline
yo !

I had some time to work on my little project …

Here is one of my tests to create foam from boat.
Particle age and point cloud fading is not properly set for the moment.
Strange … I was sure to set the ramp parameter to fade out the particle's mask …

http://vimeo.com/31131399 [vimeo.com]

++

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
  • Quick Links