[PyQt] Ambient texture map
pyqt at paulkoppen.com
Mon Jan 23 22:09:35 GMT 2017
I have an object in .obj format with a .mtl which defines an ambient
texture map using map_Ka. Could it be that Qt3D does not support ambient
My Python code looks something like this:
app = QGuiApplication()
view = Qt3DWindow()
sceneRoot = QEntity()
# Scene camera.
basicCamera = view.camera()
# Load scene.
scl = QSceneLoader(sceneRoot)
But the object renders near black (screenshot attached). Only texture
seems to come from diffuse light (with a default light set up
somewhere?). I am looking for a way to see the mesh without light in the
I found this page listing all sorts of materials
ambient is always QColor rather than QAbstractTextureProvider.
Any help greatly appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 51859 bytes
Desc: not available
More information about the PyQt