3

I tend to load the .obj file with its color in python and save it as png. I had many searches, but none were suitable for my purpose. here is the code I found for saving as a png file:

and output appears like this:

enter image description here

but the desired output is like this one: enter image description here

or this one: enter image description here

Any help, please.

Ali Ganjbakhsh
  • 541
  • 7
  • 13

1 Answers1

7

Finally, I found the answer in the vedo library it can be installed easily:

pip install vedo

by these simple codes, this output came out:

from vedo import *

mesh = Mesh("data/10055_Gray_Wolf_v1_L3.obj",)

mesh.texture("data/10055_Gray_Wolf_Diffuse_v1.jpg", scale=0.1)

mesh.show()

enter image description here

I downloaded 3d obj file by its texture from here.

Ali Ganjbakhsh
  • 541
  • 7
  • 13