Is this a bug of PollyLine?

Started by nill, November 13, 2016, 10:07:21 AM

Previous topic - Next topic

nill

Docments  saids : "Pollyline will be rendered after all objects have been drawn."
and It is true . see attachment, some lines is on the top of the circle. The circle object has been set to be transparent.

But if I disable the transparent of the circle. The PollyLine will not on top of the circle.  Is it by design?
How can I avoid this situation.

thanks for any comments.

EgonOlsen

I'm not sure what I'm supposed to see in that screen shot. Anyway, Polylines are drawn after any other geometry but they take the depth buffer into account and transparent objects don't write into the depth buffer. Maybe that's there issue here. What happens if you offer offset the lines slightly?

nill

I want to hide the PollyLine that on the top of the circle object.

So I can't use a transparent object.  right?
So I can't use texture with alpha channel. Because  I found the Object3D must be transparent mode otherwise the apha channel will not work.




EgonOlsen

I'm confused now. Do you actually WANT to see the lines or not? So you want the rest of the geometry drawn over them? Or only parts of it? One solution would be to split the scene into different Worlds ( with a shared camera to ease things) and define a rendering order that way.

nill

Sorry my english is not good enough to describe what I want.

Could you tell me more details about how to share a camera between two worlds ?
Or  how to define a rendering order ?

thanks

nill

  I use setCameraTo() to make world2 share world1's camera. yes it works .  Is it right?

EgonOlsen