m-r-davari / flutter_3d_controller

A Flutter package for rendering interactive 3D models in different formats(glb, gltf, fbx, obj), with ability to control animations, textures and camera.
https://pub.dev/packages/flutter_3d_controller
MIT License
85 stars 11 forks source link

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

Closed yokawaiik closed 2 months ago

yokawaiik commented 3 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 3 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 2 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