-
Notifications
You must be signed in to change notification settings - Fork 18
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
Update ThreeJS
#418
Update ThreeJS
#418
Conversation
Preview PR at appsharing.space |
Thanks for starting this! I believe the black mesh we are seeing here is the |
yes, i've seen this plane in the mainview. I shall try to look into it and also see if it can be fixed by making it not visible or something. I'll be happy to follow up on the same in case I would need you to have to take a look into the same :) |
Integration tests repot: appsharing.space |
@@ -218,7 +218,8 @@ export class MainView extends React.Component<IProps, IStates> { | |||
|
|||
this._renderer = new THREE.WebGLRenderer({ | |||
alpha: true, | |||
antialias: true | |||
antialias: true, | |||
stencil: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Neat
for more information, see https://pre-commit.ci
Bot please update snapshots. |
Bot please update snapshots! |
Update Galata References workflow is failing everytime xref: #438, I'll be happy to try on to fix it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! That looks good to me and seems to work well
@@ -685,6 +686,7 @@ export class MainView extends React.Component<IProps, IStates> { | |||
wireframe: this.state.wireframe | |||
}); | |||
this._clippingPlaneMesh = new THREE.Mesh(planeGeom, planeMat); | |||
this._clippingPlaneMesh.visible = this._clipSettings.enabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this now that we set stencil: true
on the renderer?
I'm fine letting this here though, it does sound sensible to not render the plane in anyway when the clipping is disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^ Just a question, not a blocker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok then let's keep it! I'm unsure what changed in ThreeJS that requires this change, but the code looks more sensible now so that's good I guess
I commented there. Would you be able to try and fix the bot so we can get this PR green? |
Thanks a lot 🚀 |
Bot please update snapshots!! |
Neat! I'll trigger the CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Currently a draft, but open for reviews
Related to #344