Color vertex map to volume offset

Color vertex map to volume offset

Konstontin
Explorer Explorer
955 Views
10 Replies
Message 1 of 11

Color vertex map to volume offset

Konstontin
Explorer
Explorer

Hello!

 

I'm trying to change the thickness of the volume using color vertex map. And than convert it into a mesh.

 

But instead of a solid mesh with varying thickness, I get another mesh for each vertex map value.

 

What am I doing wrong?

 

image.png

 

0 Likes
Accepted solutions (1)
956 Views
10 Replies
Replies (10)
Message 2 of 11

sepu6
Advisor
Advisor
Accepted solution

Hey, 

 

So in theory this should be pretty straightforward since the "offset_level_set" node should provide a mask for this operation. Hopefully, this will be added soon. A lot of the volume operations should have a mask port. 

Anyhow to create a proper mask with volumes, they should be a fog/density volume, so even if we were to have the option in BF right now the way that you are trying to do it will not work. 

 

For now, you have to work with fields I attached a file and added some comments so you understand what is happening. Basically, I create a geo property that gets transferred to a voxel property by the volume to mesh. 

Then you convert both of these into fields and multiply them. I use the fcurve field to invert it, (play with the values here to get what you want or invert if u want) (Check the fields with the scalar field scope)  then you use the field to volume and offset the volume in the node. 

 

HTH

 

maya_U5vOfKCu3I.png

0 Likes
Message 3 of 11

Konstontin
Explorer
Explorer

Wow.

It's not an easy solution and doesn't work perfectly.

The gradient distribution isn't smooth.

image.png

 


Hopefully, this will be added soon. A lot of the volume operations should have a mask port. 

I'm really looking forward to this functionality in new versions!
Thanx!

0 Likes
Message 4 of 11

sepu6
Advisor
Advisor

That is dependent on your input mesh though, the more pts you have the better and more accurate representation you will see of that gradient/color vertex. Also, it can help if you add a smooth voxel node before you convert to mesh. 

 

Just to be clear when they add the mask ports on the volume nodes you will still have to create a volume btw, but it will be a density vol.  

0 Likes
Message 5 of 11

Konstontin
Explorer
Explorer

@sepu6 wrote:
the more pts you have the better and more accurate representation you will see of that gradient/color vertex. Also, it can help if you add a smooth voxel node before you convert to mesh. 

These are obvious solutions, but not always suitable.

 


@sepu6 wrote:

when they add the mask ports...


Hope this happens as soon)

Message 6 of 11

Konstontin
Explorer
Explorer

@sepu6 wrote:

when they add the mask ports


Greetings! Is there any progress on my issue?

In new versions of bifrost, the proposed scheme no longer works. It gives errors sRGB (ACES) and something else.

0 Likes
Message 7 of 11

sepu6
Advisor
Advisor

Yeah now the a few more of the volume nodes support Mask operations. So the "offset_level_set" node it does now, I think they added in 2.10 or even maybe 2.9 but as always I would recommend using the latest 2.11 

0 Likes
Message 8 of 11

Konstontin
Explorer
Explorer

@sepu6 wrote:

"offset_level_set"


Could you please show an example of using the offset_level_set node?

0 Likes
Message 9 of 11

sepu6
Advisor
Advisor

Now is just this. 

 

maya_6iosdqL0fx.png

0 Likes
Message 10 of 11

Konstontin
Explorer
Explorer

Still difficult for me to understand how it works))

 

Are there any tutorials that explain at a basic level the logic behind how bifrost works?

 

There are a lot of videos on YouTube on solving specific tasks in bifrost. But this does not give an understanding of the principles.

 

 

0 Likes
Message 11 of 11

sepu6
Advisor
Advisor