<div dir="ltr"><div>The GLB you attached renders OK in view3dscene / Castle Game Engine. That is, I see something similar to your screenshot from Blender. So I would say that Blender + glTF file are correct, and something further down the line (maybe tinygltf or glview) did something wrong. I guess they applied flat shading for some reason.<br></div><div><br></div><div>Looking at my glTF -> X3D import, I do not touch X3D colorPerVertex at all. That is, it is always left as "true" (default value) when importing glTF.</div><div><br></div><div>Moreover, colorPerVertex has no meaning in case of IndexedTriangleStripSet , IndexedTriangleSet , IndexedTriangleFanSet that I use to express glTF meshes. The X3D spec for them explicitly says """The value of the colorPerVertex field is ignored and always treated as TRUE.""" ( <a href="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#IndexedTriangleSet">https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/rendering.html#IndexedTriangleSet</a> ). I realize this info may be irrelevant to you, if you express glTF mesh using a different geometry like IndexedFaceSet :)<br></div><div><br></div><div>I'm attaching a screenshot from view3dscene, and also X3D version of it (done by view3dscene opening GLB, and then "File -> Save As..." to get it in X3D format).</div><div><br></div><div>Regards,</div><div>Michalis<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">śr., 9 wrz 2020 o 03:30 J. Scheurixh <<a href="mailto:mufti11@web.de">mufti11@web.de</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am currently testing tinygltf as gltf import libary, especially rhe<br>
glview code example.<br>
when i use object mode ->  vertex paint mode in blender 2.8, the object<br>
is shown with colorpervertes true, but the exported gltf file is shown<br>
with colorPerVertex false 8-(<br>
<br>
Is this a problem of blender or a problem of tinygltf ?<br>
<br>
What show other gltf viewers for the "untitled.glb" in the attachments ?<br>
<br>
so long<br>
MUFTI<br>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>