-
Notifications
You must be signed in to change notification settings - Fork 27
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
Rendering differences with transparency & fog #24
Comments
Let me check it, and I'll write you asap |
Looks like the issue is in blending mode for materials |
Nice to see you are able to find what's wrong so quickly |
But I need a time to figure it out. I think the issue somewhere in WebGLRenderer.setBlending() method, perhaps in caching.. |
Ok,
// getScene().add(skyBox);
@Override
protected void loadRenderingPanelAttributes(RenderingPanel renderingPanel)
{
super.loadRenderingPanelAttributes(renderingPanel);
renderingPanel.setBackground(0xccccff);
}
getRenderer().setClearColor(0x000000, 0.0); Hope it help, If you fine you can close the issue |
I've applyed all your changes, Front side the scene is now perfect but if you rotate the scene 180° on Z axis, looks at the sphere who is now behind the red ball. Thank's for the tip about _clearAlpha value. |
Yes, this is strange behavior. I'll take a look at it |
While trying to port this demo : http://stemkoski.github.io/Three.js/Translucence.html I can see several differences with Three.js. Fog doesn't work as expected so I've to add skybox to the scene, when looking at the scene in front rendering is almost the same, but behind doesn't work as expected either.
The text was updated successfully, but these errors were encountered: