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

Jordi Torres jtorresfabra at gmail.com
Tue Jul 28 23:41:02 PDT 2015


Ok I will try to be clerarer:

1. Can you please share the ive model or a part of it to debug the crash?
Otherwise is almost impossible to know what is happening.

2. Tga textures are not supported in the browser, you'll need to write them
out to jpg.

3. You *must use the gles *pseudo-reader to avoid the Fatal nb colors.

4. Did you try the inline images feature? Did it work?

  Cheers.


> Well, I can show this very simple example with one IVE and 2 texture
> files.
>
> I cannot convert directly to OSGJS format.
> IVE --> OSGJS does not work (Fatal nb colors log)
> IVE --> OSG works
> OSG --> OSGJS does not work (Fatal nb colors log)
> OSG --> OBJ works
> OBJ --> OSGJS works but I have 2 logs saying that some faces were reversed
> by the plugin
> And if I try to load this model (with the textures in a folder \\images at
> the same location of the java script file) I cannot see the texture. Chrome
> moans:
> warning use white texture as fallback instead of images\tree_03.tga
>
> Thanks in advance !
> Mathieu
>

2015-07-28 9:45 GMT+02:00 Jordi Torres <jtorresfabra at gmail.com>:

> 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
>
>
>


-- 
Jordi Torres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150729/afac4bfb/attachment-0002.htm>


More information about the osg-users mailing list