I had problems to set vertex colors in MeshExpression, this.C.R = 1; throws the validation error "Could not determine type: Value". This error is independent on setting the VertexColors flag. See e.g. mesh expressions in this example from panurge.
Another observation is that imported 3ds meshes ignored vertex colors. Import itself worked, but vertex colors were ignored. Testing 3ds files were exported from Wings3D.
Problem with vertex colors (Beta release 2.0.0b, 2010-11-06)
Moderator: Moderators
Hi Rado1,
I examined this and it is caused by the presence of a DefineVariable named "C" in the the project you refer to. The compiler mistakenly tries to use that variable even though there is a "this" ahead of it.
I will fix this problem, until then a quick fix is to rename the component to something else.
I tried importing 3ds with colors and it still works here with the 3ds-files I use for testing. Please upload a non-working model so I can debug it.
I examined this and it is caused by the presence of a DefineVariable named "C" in the the project you refer to. The compiler mistakenly tries to use that variable even though there is a "this" ahead of it.
I will fix this problem, until then a quick fix is to rename the component to something else.
I tried importing 3ds with colors and it still works here with the 3ds-files I use for testing. Please upload a non-working model so I can debug it.