osgexport icon indicating copy to clipboard operation
osgexport copied to clipboard

Simple material colors lost

Open dhabbyc opened this issue 6 years ago • 1 comments

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

dhabbyc avatar Jan 30 '19 13:01 dhabbyc

myobject.color = 1.0, 1.0, 0.0, 1.0 Not sure Python understand that...I'd try tuple () instead

mp3butcher avatar Jan 30 '19 20:01 mp3butcher