I'm trying to render objects on top of other objects.
In the fiddle, get the green torus knots to render on top of the red boxes and floor.
I've been trying mesh.renderDepth = 0, 1, 1000
and changes nothing.
The material has been created like so:
material = new THREE.MeshBasicMaterial( { color: 0x00ff00, transparent: true, opacity: 0.5 } );
How can I achieve this using renderDepth? Am I missing any other setting?
Using depthTest
to true
works but is not acceptable because concave meshes (like the torus) suffer from overlapping polygons, especially when opaque.
And while I haven't managed to get this other solution with two scenes running, it strikes me as having more overhead and perhaps less flexible than just using renderDepth
Fully working JSFiddle: http://jsfiddle.net/QHssJ/
Thanks for the help
If you look at greenb.byethost12.com you will see what I have developed so far. As of now, when you click on the correct answer, it document.location.reload(index.php) The whole page refreshes. What ...
If you look at greenb.byethost12.com you will see what I have developed so far. As of now, when you click on the correct answer, it document.location.reload(index.php) The whole page refreshes. What ...
I was furious when i could not figure out why my app was working fine in Chrome but not IE. After hours of looking at my back end making sure my JSON was coming through to each browser correctly, I ...
I was furious when i could not figure out why my app was working fine in Chrome but not IE. After hours of looking at my back end making sure my JSON was coming through to each browser correctly, I ...
I want scrollTop to trigger only once, so that the red box doesn't appear again after it has been closed with the button. I know there is .one(), but I have no idea how to apply it to my code. Below ...
I want scrollTop to trigger only once, so that the red box doesn't appear again after it has been closed with the button. I know there is .one(), but I have no idea how to apply it to my code. Below ...
Below is the code in which changeme is the text i want to change on the click of the button. HTML code and JS is below: 1) whatever user input in field will be capture and replace with changeme if ...
Below is the code in which changeme is the text i want to change on the click of the button. HTML code and JS is below: 1) whatever user input in field will be capture and replace with changeme if ...