[osg-users] [osgPlugins] Trouble with texture to export to OSGJS format

Jordi Torres jtorresfabra at gmail.com
Tue Jul 28 00:45:17 PDT 2015


Hi Mathieu,

2015-07-28 9:37 GMT+02:00 Mathieu Bartillat <mathieu.rougeron at telespazio.com
>:

> Hello Jordi, thanks a lot for your answer.
>
> I tried to use the gles plugin with the command described in the link you
> sent, but osgconv.exe crashes (no log message).
>
>
Could you share the model, or a part of it to reproduce the crash? That
will help to debug.

 I tried with an IVE and an OSGB files as input.

>
> So far the only way I have not to receive the error (Fatal nb colors 1 !=
> 1349) is to get an OBJ from the graphist without texture. Texture files are
> in a separate folder /images.
> Then I can convert to an OSGJS format.
> In this file I have references to the textures in some fields, such as:
> "File": "images\\base_age.tga",
>
> But when I load it, even if I put textures in the folder //images, they do
> not appear.
> And in the Chrome console I have this:
> warning use white texture as fallback instead of images\valve.tga
> warning use white texture as fallback instead of images\alu_txt.tga
> and so on...
>
> That message means that osgjs is not founding the textures. Are you using
a server like apache or similar? It is a must to work with separate
textures, also the textures should be in the route they appear in the osgjs
file.

By the way did you try the inline textures feature?

Cheers.




> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64503#64503
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Jordi Torres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150728/765fe4e6/attachment-0003.htm>


More information about the osg-users mailing list