Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Extrusion Buffer Geometry rendering transparent/inside-out. #70

Closed
akexinad opened this issue Jul 25, 2019 · 2 comments
Closed

Extrusion Buffer Geometry rendering transparent/inside-out. #70

akexinad opened this issue Jul 25, 2019 · 2 comments

Comments

@akexinad
Copy link

akexinad commented Jul 25, 2019

In the screenshot is an example of 'compartment' extrusions rendering on top of one another, like the floors to a building.

When I pass THREE.Shape to create a THREE.ExtrusionBufferGeometry, the extrusions above the initial extrusion at the very bottom seem to render without side faces/transparently. You can see the top/bottom face of each in extrusion in black.

I use the tb.Object3D method as per the example in the Threebox repo. Am I supposed to be rendering extrusions differently?

Screen Shot 2019-07-26 at 07 05 41

@ulrikborjesson
Copy link

this might be related to my issue #69

@akexinad
Copy link
Author

akexinad commented Jul 31, 2019

this might be related to my issue #69

Hey @ulrikborjesson thanks for the comment.

I found that setting my material transparency to true and opacity to one solved the issue:

const material = new THREE.MeshLambertMaterial({ color: '#D40000', transparency: true, opacity: 1 });

This is using npm threebox on angular 8.

I doubt this is a real solution, because the are still some extrusions that show some level of transparency.

I might have to try out your method of updating the threejs library in the future.

Capture

@akexinad akexinad reopened this Jul 31, 2019
@akexinad akexinad closed this as completed Jun 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants