sebkaine
hi ! it's my first post here, so first of all thanks for soups and all the team who support it !

well i am wondering, if there is a way in SOUP to convert the vertex color of an object, in a true color that we can use in the hypershade. (that we can plug in every possible color slot).

we can get the vertexColor in MentalRay with the vertexColor texture. But i don't want to use my vertex info in mental ray. i'll like to plug it in the color channel of this tool :

http://www.hajimenakamura.com/hajime/cg/mll/displaceD/displaceD.shtml

SOUP can achieve similar displacement with the peak node, but it just work with 2D texture, i try with the 3d noise but without success.

my goal is to :
- displace a high poly object with the volume noise 3d texture
- mask some part of the displace with a painted map store in the vertexColor of the object

if you have an idea to solve this it would be cool ! For the moment i use the 3D paint texture but it need UV.

i make a quick scene to show you the pb

Reply 0 0
pshipkov
i don't think you can do that if not supported by the displaceD deformer. Your best option is to bake 3D texture and vertexColors to bitmaps per frame and then load and blend that before passing it to the deformer.
There is a vertexColorToTextureMap tool in the SOuP shelf (under the button at the very right) that can help you bake easily vertex colors to textures for given frame range.

I will have to try this displaceD tool - wonder how he did it. The MDynamicsUtil class does not support 3D procedural textures, maybe he is just hacking it by setting the point of interest from within his node to the input 3D texture and then reading the values there. Just thinking out loud ...

Reply 0 0
sebkaine
well peter thanks for you answer. you confirm that its not possible to use the vertex color data in the hypershade in a convenient way. That's a shame because vertex color is so useful to store map.

what i don' t understand is that at the end vertex color is an array of data related to vertex id. and UV texture is also an array of data related to UV. To make a connection beetween the 2 would be interesting.

for the displaceD node it is a wonderful tool, and i' m pretty sure you're very close from this with your peak node. By combining displace with Volume noise (same noise in maya fluid), you get real time feedback of the behavior of your fluid.  It's pretty useful to sculpt the raw design of a fluid



Reply 0 0
rayman
This is almost the same as our custom displacement node. It also supports 2d/3d textures. The way I did it is using MRenderUtil::sampleShadingNetwork to get proper texture colors, and I think Its not hard this to be implemented in textureToArray node.
Reply 0 0
pshipkov
Thanks a lot for the tip. I will implement that soon (hopefully).
Reply 0 0
rayman
You are welcome, I'm glad I could help.
The only problem is that you still must go outside the node (At least I wasn`t able to find better solution), but it works fine.
Reply 0 0
pshipkov
That's fine. I do that all the time :)
Reply 0 0
pshipkov
I pushed a new update - now the textureToArray node has checkBox that says "accurate sampling". When turned on the node will use MRenderUtil to sample the shading network instead of MDynamicUtil that looks-up only the node on the input. The MRenderUtil is slower than MDynamicUtil, so if you don't need sample 3D textures or shading networks, stick with the "old" way.
Reply 0 0
JeremyR
awesome! this will make things interesting ;)
Reply 0 0
sebkaine
Thanks for the update peter !
Reply 0 0
Reply