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

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

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

Post 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.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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.
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

Post 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.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Parser problem fixed and new beta uploaded:

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