pywavefront / PyWavefront

Python library for importing Wavefront .obj files
BSD 3-Clause "New" or "Revised" License
312 stars 80 forks source link

Accessing texture values #118

Closed danperazzo closed 4 years ago

danperazzo commented 4 years ago

Hello, I am trying to project my 3D model into a 2D projection (I have the camera intrinsics and pose). However, I do not understand how to get the RGB values of the faces, how do I do this?

einarf commented 4 years ago

In that context? This library is mainly focused on rendering the model(s) in opengl.

danperazzo commented 4 years ago

Oh, ok. Thank you! I was trying to use pywavelet to project a 3D model given a camera pose and intrinsics

einarf commented 4 years ago

Not familiar with pywavelet.

An example of how the low level data can be accessed can be found here: https://github.com/pywavefront/PyWavefront/issues/87#issuecomment-464348971

A lot can be done with that alone. It's not anyting fancy, but at least the data is easily accessible.

danperazzo commented 4 years ago

Ok, thank you!