Grid values assigned, unexpected result #1323
Unanswered
alessandroAM
asked this question in
Q&A
Replies: 1 comment
-
Hello, It is not clear what you are using to visualize the densities. The code seems right - that will make a zero-one gradient, assuming xyz is set to a Coord vector of x,y,z. But if you view a cube cross wise, the result is an integration of the density over the cube. So one would expect a very swift alpha transition from black to white, depending on the thickness. As soon as your cube is optically thick additional density stops having an effect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, after studying some examples I made a FloatGrid and populated it with a vertical gradient, so that voxel values range from 0 to 1.

Result is in this image
Granted that setting voxels at 0 does indeed produce a 0 density output, It seems to me that the scale of values is off because the density basically reach high values immediately.
Attached an image showing densities sampled at different values:

So obviously I'm doing something wrong, maybe there is a setting for min and max value for the grid?
Here is a part of the code I'm using, related to assigning values to the grid.
Beta Was this translation helpful? Give feedback.
All reactions