1
\$\begingroup\$

enter image description hereI made a potion that displayed and rendered perfectly in 3DS max. When I imported it to Unity it didn’t render correctly as the transparency was all over the place. I first imported it with a png texture with a separate png map for the alphas. I then tried using a .tga and a .psd file with alpha channels set up within the file but I got the same issues happen with both file formats. Does anyone know how to fix this I cannot seem to work it out.

\$\endgroup\$
  • 4
    \$\begingroup\$ Which one of the screenshots is from 3DS max and which one is from Unity? \$\endgroup\$ – Philipp Jun 6 '16 at 9:29
  • \$\begingroup\$ @Philipp i believe the left one is the good one, and the right one is in unity. Notice the cork on the top of the bottle \$\endgroup\$ – Evorlor Jun 6 '16 at 17:07
  • \$\begingroup\$ The left is max right it unity sorry forgot to add that. \$\endgroup\$ – Christine Jun 8 '16 at 9:08
1
\$\begingroup\$

It may be a case of backface culling. The back of the textured thingy also may not be showing because the liquid inside is also zclipping the back side of it.

\$\endgroup\$
  • 1
    \$\begingroup\$ The back face culling should effect why the cork renders above everything else. \$\endgroup\$ – Christine Jun 6 '16 at 10:23
  • \$\begingroup\$ i think thats issues with the depth buffer. It is not handling transparency correctly \$\endgroup\$ – CobaltHex Jun 7 '16 at 23:57
  • \$\begingroup\$ How do you change the depth buffer? \$\endgroup\$ – Christine Jun 8 '16 at 9:18
0
\$\begingroup\$

Change the Alpha value in color swatch for water material.

Keep the cork in opaque but potion and jar in transparent rendering mode. Give them different alpha value.

enter image description here

\$\endgroup\$
  • \$\begingroup\$ I tested this out on the potion that is 1 object and one thats in 3 sperate parts and it rendering in a simular way. \$\endgroup\$ – Christine Jun 6 '16 at 10:41
  • \$\begingroup\$ Select Transparent rather than Opaque in rendering mode dropdown as the image. \$\endgroup\$ – Sourav Paul Jun 6 '16 at 11:25
  • \$\begingroup\$ I also tried that and it came out with the same results. \$\endgroup\$ – Christine Jun 8 '16 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.