Page 1 of 1

Problem with vertex colors (Beta release 2.0.0b, 2010-11-06)

Posted: Wed Jan 05, 2011 1:30 pm
by Rado1
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.

Posted: Wed Jan 05, 2011 2:20 pm
by VilleK
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.

Posted: Wed Jan 05, 2011 3:34 pm
by Rado1
Hi Ville,

you are right, Wings3D does not export vertex colors to 3ds; I simply used wrong files. 3ds import works fine in ZGE.

Posted: Wed Jan 05, 2011 3:46 pm
by VilleK
Parser problem fixed and new beta uploaded:

http://www.zgameeditor.org/files/ZGameEditor_beta.zip