Transparent ImageTexture in Simulink 3D Animation

Hello, I'm modifying a VR scene. I created a rectangle with an image texture of tree. The rest of the image is transparent so that only the tree can obstacle the vision. When I viewed it with web browser, it works as I expected. When I viewed it with internal 3D viewer, the transparent part became white. How can I deal with this problem? Please help me. Thanks.

Respuestas (1)

Jan Danek
Jan Danek el 4 de Sept. de 2013

0 votos

Simulink 3D Animation Internal Viewer accepts the following file formats with transparency:
GIF: Transparent colour has to be Colour 0 in the palette PNG: Transparent colour can be any colour in the palette, also alpha blending is supported.
I recommend you to convert your image into the PNG format, you should be able to render it correctly.
Hope this helps,
Jan

Categorías

Más información sobre Animation en Centro de ayuda y File Exchange.

Preguntada:

el 14 de Ag. de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by