PDA

View Full Version : Transparent png broblems


TarkaDahl
07-21-2011, 06:03 AM
Hi,

Im having a problem when using pngs with transparency. You can see through objects behind.

http://forum.worldviz.com/attachment.php?attachmentid=437&stc=1&d=1311253291

The grass is on a plane however you can see through the bushes in background and can see the grey backgound image. This happens in inspector aswell.

This happens as well in other places as well when we have a semi transparent png as a water surface. Certain objects in the water then disapear.

Any help would be appreciated.

Thanks

TarkaDahl

sleiN13
07-22-2011, 12:19 AM
Sounds like a drawOrder problem. Have you tried to assign different draworders yet?

.drawOrder(number, bin=viz.BIN_TRANSPARENT)

TarkaDahl
07-22-2011, 01:40 AM
Hi sleiN13

Ive had tried draworder previously but i will retry it.

Thanks

farshizzo
07-28-2011, 10:10 AM
Is the grass plane the only object in your model that contains transparency? If you have multiple transparent objects that intersect each other, then you will have these kinds of issues.

To solve these kinds of problems, we usually break up the transparent objects into smaller pieces. This gives the rendering engine more fine-grained control with the order in which transparent objects are rendered.

If you continue to have problems, you can post your model here, or use our upload form (http://upload.worldviz.com), and somebody can take a look at it.

TarkaDahl
08-01-2011, 03:12 AM
Hi farshizzo,

I will try that today.

Also is there any way to change my spelling mistake in the title.

Thanks