fresnel icon indicating copy to clipboard operation
fresnel copied to clipboard

Improve spec_trans documentation

Open mturiansky opened this issue 6 years ago • 6 comments

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 avatar Sep 18 '19 20:09 mturiansky

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

tcmoore3 avatar Sep 19 '19 01:09 tcmoore3

@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?

mturiansky avatar Sep 19 '19 01:09 mturiansky

@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.

tcmoore3 avatar Sep 19 '19 02:09 tcmoore3

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 avatar Sep 19 '19 11:09 joaander

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.

mturiansky avatar Sep 19 '19 23:09 mturiansky

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[bot] avatar Jul 30 '21 19:07 github-actions[bot]