m-r-davari / flutter_3d_controller

The most complete Flutter package for rendering interactive 3D models in various formats (GLB, GLTF, OBJ, FBX), with the ability to control animations, textures, camera, and more.
https://pub.dev/packages/flutter_3d_controller
MIT License
109 stars 15 forks source link

[Question] Is it possible to change textures in multiple objects within one model? #20

Closed yokawaiik closed 4 months ago

yokawaiik commented 5 months ago

Hello!

I saw that in this library you can change textures on models.

Is it possible to change textures for different objects within the same model?

Using the example of a house in which the component parts may have different textures:

  1. Windows
  2. Doors
  3. Sheathing
  4. Roof
shegal commented 4 months ago

It is possible. Just setup separate gltf texture slots for different objects (I managed to do this in blender)

m-r-davari commented 4 months ago

Hi, sorry for late reply. Yes Exactly, It is possible to change texture of objects and it will need multiple embedded texture/variant of your .gltf model, and it can be done by 3D design software like Blender