سؤال

http://victorribeiro.com/modelo3D

If you take a look at the example above, you can see a low poly model in .obj format with some texture baked on it. My question is: Is there a way that I import this same model, apply on material on the body and another material on the eyes? If you look close, you will see it's the same model with 3 elements: 1 body and 2 eyes.

Thanks a lot.

هل كانت مفيدة؟

المحلول

If you could separate your model into the three elements then you would be able to do what you want. I looked at pig.obj and there is now way to distinguish the different elements. You only have one group in the model file defined. If you could also export material then your elements would be named and in your traverse function you could also check the name of the element.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top