Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple material colors lost #59

Open
dhabbyc opened this issue Jan 30, 2019 · 1 comment
Open

Simple material colors lost #59

dhabbyc opened this issue Jan 30, 2019 · 1 comment

Comments

@dhabbyc
Copy link

dhabbyc commented Jan 30, 2019

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

@mp3butcher
Copy link

mp3butcher commented Jan 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants