-
Notifications
You must be signed in to change notification settings - Fork 42
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
How to handle transparency of objects in vts-browser-js? #190
Comments
Thanks Horky, |
There is example how to draw transparent meshes: Main prerequisite is to use render state where is blending enabled:
and set this state when you render transparent meshes
In case that you use build sharers, then you set opacity to desired value. When you render transparent meshes then rendering order is important. There is no build in support for rendering transparent meshes. You have to sort it manually. Most common practice is to render non-transparent meshes first and then render transparent meshes. Rendering order of the transparent meshes should by sorted by distance from camera (most distant should be rendered first). |
I am trying to draw a 3D object on top of VTS earth environment (vts-browser-js).
Can I make that object semi-transparent by specifying some transparency factor somewhere in the code?
Also, if the model (.obj) is imported, can we play with its transparency?
I understand that we can apply a semi-transparent texture and import that texture along with mode(.obj,.mtl), but is there any other way to achieve the required transparency in vts-browser-js?
Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: