[osg-users] [osgPlugins] Vertices duplicated in FBX plugin

Eon Strife eon_strife at yahoo.com
Tue Mar 27 00:46:10 PDT 2018

Hi all,

I am trying to do something which attach additional information (loaded from an external JSON file) to each vertex. The loaded information are loaded as texture in GPU. The only problem here is how to figure out which element of data to be used for particular vertex in vertex shader. I am trying to use gl_vertexID.

The model is in FBX format and they are loaded using FBX plugin. However the method I am using is not working because the FBX plugin duplicates the vertices, so I cannot establish one-to-one correspondence between texel in a texture (with information loaded from JSON file) and the vertex.

Attached is screenshot of statistics I output using osgUltil::StatsVisitor. The 3D model contains 382 vertices. If you see the statistics of object loaded using FBX plugin, it contains 2280 vertices. However, for object loaded using OBJ plugin, it contains exactly 382 vertices. Is there any way to preven FBX plugin from duplicating the vertices ? or there is other solution for this problem I am trying to solve ?

(we have to use FBX plugin because OBJ does not support animation).



Read this topic online here:


More information about the osg-users mailing list