question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rendering objects as semi-transparent.

See original GitHub issue

It is possible to render objects as semi-transparent so that the interior remains visible? Or another alternative could be wireframing objects. I can see the different material classes in geometry.py such as MeshPhongMaterial and MeshToonMaterial but these shaders make the surface opaque. Maybe a surface texture is the way to do this? But I’m unsure how to proceed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rdeitscommented, Feb 25, 2019

Ok, this should now be available in meshcat v0.0.15. You should be able to pip install --upgrade meshcat to get the newest version. Thank you @matthieuvigne for the PR!

1reaction
matthieuvignecommented, Feb 24, 2019

Hi @danieljfarrell,

I’m also interested in such a feature. As far as I can see, meshcat-python doesn’t provide such an API. However, Three.js supports transparent objects, so it can be added quite easily. This patch adds a transparency and opacity field to the MeshMaterial object for configuring these properties. So the following code

import meshcat

visualizer = meshcat.visualizer.Visualizer()
sphere = meshcat.geometry.Sphere(1.0)
material = meshcat.geometry.MeshLambertMaterial()
material.transparency = True
material.opacity = 0.5
visualizer["sphere"].set_object(sphere, material)

renders a transparent sphere: screenshot from 2019-02-24 11-06-55

@rdeits Do you confirm this isn’t currently possible with meshcat? If so, I can make a PR with this patch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rendering - how to render semi-transparent objects with ...
You can use a Holdout shader: enter image description here. The holdout shader will render as actual image alpha, as opposed to giving...
Read more >
how to render semi-transparent objects with ... - Pinterest
I am rendering out some bubbles for use in a composite Photoshop image, so I need to render as a transparent png with...
Read more >
Rendering opaque object inside semi-transparent one in Metal
I'm trying to render an opaque object inside a semi-transparent one. My approach is: Depth compare function set to less. descriptor.
Read more >
[noob] Render some object semi-transparent? - Blender Artists
Hi, I have a scene where I need to have some objects rendered semi-transparent (say, the four machines with red parts from the...
Read more >
Make Transparent Object in autodesk 3ds max - YouTube
Making transparent object in Auto desk 3ds max is simple here we will decrease the visibility which will make the object semi transparent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found