Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume inconsistent density based on cell size #442

Open
StasJ opened this issue Jul 7, 2020 · 3 comments
Open

Volume inconsistent density based on cell size #442

StasJ opened this issue Jul 7, 2020 · 3 comments

Comments

@StasJ
Copy link

StasJ commented Jul 7, 2020

If you create a volume comprised of 100^3 tightly packed regular cells, the volume density will be much higher than that of a volume of the same size comprised of a single cell.

@carsonbrownlee
Copy link
Contributor

hi Stas, volume density is not a function of world space coordinates. You can achieve this by altering the density scale on the volumetric model.

@johguenther
Copy link
Contributor

That the density of the volume depends on its resolution has been the behavior of OSPRay since the beginning. But I agree that this is unfortunate. We have some ideas to rectify this in a future release (around fall). In the meantime please use densityScale as Carson suggested to counter the effect.

@carsonbrownlee
Copy link
Contributor

Johannes, in ParaView this is handled by altering the scalarOpacityUnitDistance variable on the volume, which by default scales with volume size. In paraviewOSPRay we handle this by altering the density scale to map to the scalarOpacityUnitDistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants