Black vertex colours after upgrade from 1.12.10 to 1.12.11

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
emc
Silver Sponsor
Silver Sponsor
Posts: 41
Joined: Mon Mar 20, 2006 12:43 pm
Location: Athens/Greece
Contact:

Black vertex colours after upgrade from 1.12.10 to 1.12.11

Post by emc »

Ogre Version: :1.12.11 / double precision:
Operating System: :Windows 10:
Render System: :OpenGL3+:

Hi!
After upgrading to Ogre 1.12.11 the vertex colours of some submeshes are black. See attached images. Any ideas, directions?

thank you,
- George

Ogre 1.12.10:
Image

Ogre 1.12.11:
Image

Ogre 1.12.11 but this time I ignore the vertex colour in the shader and output red instead (just to make sure that this is not a shading problem):

Image
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: Black vertex colours after upgrade from 1.12.10 to 1.12.11

Post by paroj »

so you mean some vertex colours still work and some other are broken?

this commit had some vertex attribute related fallout in GL and D3D9:
https://github.com/OGRECave/ogre/commit ... 2c81ec3514

you could try going back to its parent to see whether it is causing your issues as well.

Also, since 1.12.10, you can use RenderDoc on Windows to inspect whether the right data arrives at the GPU:
https://renderdoc.org/
User avatar
emc
Silver Sponsor
Silver Sponsor
Posts: 41
Joined: Mon Mar 20, 2006 12:43 pm
Location: Athens/Greece
Contact:

Re: Black vertex colours after upgrade from 1.12.10 to 1.12.11

Post by emc »

Ok, there is nothing wrong with the code. For some reason the OgreMax exporter failed to generate colour_diffuse attributes for every submesh. For the missing vertex colours Ogre 1.12.10 passed white to the shader and 1.12.11 black. I'll fix my meshes :)

Thank you for your help Pavel

- George
Post Reply