Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to Export gltf Model with transparent Map by Blender

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how Blender derives the gltf model with transparent mapping. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

After the Blender2.8 version, the model with transparency map is directly exported to gltf, which will cause the model map to become opaque in the display platform. Effect in https://gltf-viewer.donmccurdy.com/ (gltf-viewer is developed on the basis of three.js):

Normally, the effect of the tree shown above is that the black mapping effect is not displayed. In blender, switch to the Texture Paint scene and you can see the normal effect.

Finding the official documentation of Blender, and searching the Internet, it was found that this problem did not exist in the 2.7series, but the 2.7series, gltf export still had to be added as a plug-in. Finally, find a way to set the transparency of the map, and achieve the effect that the transparency map continues to be transparent by modifying the properties of the map.

Slice the Texture Paint scene to blender:

Select the map of the current model, and on the small button on the right, select the properties of the material:

Change the properties of "mixed mode", change "opaque" to "Alpha mixed", save, and then export the model.

If you look at it again in gltf-viewer, you will find that the transparent place is now transparent.

Note: if multiple maps have transparent properties, they all need to be modified, but blender opens up a programming interface that can be developed in the python language.

This is the end of this article on "how Blender exports gltf models with transparent maps". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report