[osg-users] osgconv.exe textures getting mangled

Jan Ciger jan.ciger at gmail.com
Tue Jan 3 07:52:06 PST 2017


On Tue, Jan 3, 2017 at 1:49 PM, Rambabu Repaka <ramboram488 at gmail.com>
wrote:

> Hi,Iam using osg 3.5.1 version Textures are not loading to the model it is
> showing  Warning: [ReaderWriterOBJ::convertElementListToGeometry] Some
> faces from geometry '' were reversed by the plugin.I converted the model
> into .osgb format but textures are not adding to the model.
>

Do you have the textures correctly applied to your model? I.e. you need the
.mtl file with your .obj and the texture needs to be in the path specified
in the .mtl

Second, the error message about reversed faces means that your model has
inconsistent winding order (clockwise vs anticlockwise). You should check
that because it could mean that your normals will be wrong and faces get
removed/culled by backface culling, making the model either disappear or
have "holes".

Conversion to .osgb won't help you any, because the converter uses the same
obj loader as the viewer. So if it doesn't work with the viewer, it won't
work after the conversion neither.

Regards,

J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170103/9147d792/attachment-0003.htm>


More information about the osg-users mailing list