osgexport
osgexport copied to clipboard
Simple material colors lost
Hello,
First thank you for your work.
I have a simple model on blender. Mostly extruded polygons. I have setted color for the objects in blender, like so (using python API):
mat = bpy.data.materials.new(name=name+"_mat") mat.use_object_color = True myobject.data.materials.append(mat) myobject.color = 1.0, 1.0, 0.0, 1.0
When I export the model using the blender GUI, on osgviewer everything looks on shades of gray.
Am I missing something?
Blender 2.79b, OSG 3.6.3, win10 OS
myobject.color = 1.0, 1.0, 0.0, 1.0 Not sure Python understand that...I'd try tuple () instead