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

Improve spec_trans documentation #91

Open
mturiansky opened this issue Sep 18, 2019 · 6 comments
Open

Improve spec_trans documentation #91

mturiansky opened this issue Sep 18, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request essential Work that must be completed
Milestone

Comments

@mturiansky
Copy link

Description

It would be nice to be able to specify an RGBA value for the color of meshes.

Preview

I'd like to reproduce the isosurfaces with the opacity shown in (b) and (c) of this figure using fresnel:

image

Developer

I'd be happy to look into implementing this if someone could push me in the right direction.

@mturiansky mturiansky added the enhancement New feature or request label Sep 18, 2019
@tcmoore3
Copy link
Member

@mturiansky is the spec_trans material property not what you are looking for?

@mturiansky
Copy link
Author

@tcmoore3 Oh wow, now I feel dumb. That is exactly what I'm looking for. The spec_trans property just doesn't work in the interactive SceneView, right?

@tcmoore3
Copy link
Member

@mturiansky I think it should work in a SceneView, but Qt widgets are notoriously finicky, so there may be something weird going on with different versions of different libraries.

@joaander
Copy link
Member

spec_trans should work in the interactive scene view. Maybe you are using the Preview tracer? spec_trans only works with the Path tracer. That should be documented somewhere, but it is not. Also, there needs to be light coming from behind the object to pass through the material, so it works best with cloudy or lightbox lighting. There should also be an example dedicated to spec_trans, specifically covering the lighting issues (which are not obvious).

I am reopening this as a reminder to add this documentation.

@joaander joaander reopened this Sep 19, 2019
@joaander joaander changed the title Opacity for Mesh Geometries Improve spec_trans documentation Sep 19, 2019
@tcmoore3 tcmoore3 self-assigned this Sep 19, 2019
@mturiansky
Copy link
Author

You're correct; spec_trans does work in the interactive scene view. I think the combination of sub-optimal lighting, lower sampling, and relatively low spec_trans value made the transparency not obvious. It wasn't until I generated a static image with good sampling that I could see the transparency.

@joaander joaander added this to the 0.12.0 milestone Jan 21, 2020
@joaander joaander modified the milestones: 0.12.0, 0.13.0 Feb 27, 2020
@joaander joaander modified the milestones: 0.13.0, 0.14.0 Nov 11, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Jul 30, 2021
@joaander joaander added the essential Work that must be completed label Aug 2, 2021
@github-actions github-actions bot removed the stale label Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request essential Work that must be completed
Projects
None yet
Development

No branches or pull requests

3 participants