Re: [osg-users] [osgPlugins] Trouble with texture to export to OSGJS format
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). 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... -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64503#64503 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgPlugins] Trouble with texture to export to OSGJS format
Good morning, I'm hardly trying to export a 3d model to OSGJS format but I have trouble with the textures. Concretely the textures do not appear in the OSGJS output file. What I did: 1) initially I had an IVE file that an infographist gave me. I tried the two commands osgconv File.ive File.osgjs. I got this return: Fatal nb colors 1 != 1349 can't save osgjs file Unable to write to output stream Idem with osgconv -O OutputTextureFiles File.ive File.osgjs 2) I tried (just for test) to convert the ive file to osg format. It works but the output file has no texture. 3) I asked the infographist to export the model to OBJ format with 3dsMAX. So I got an OBJ file and a MTL file. Then I do osgconv -O OutputTextureFiles File.obj File.osgjs I get some warnings such as *** line not handled *** :map_refl C:\myFolder\myFolder2\maps\refmap_txt.jpg Warning: [ReaderWriterOBJ::convertElementListToGeometry] Some faces from geometry '' were reversed by the plugin Strange because the JPG file really exists in my fodler ! I have other JPG files and I have no warning message for them. Anyway, I do not think it is the source of the problem. But the final OSGJS does not appear with textures, as no texture is exported. The geometry is correct. Apparently I did something wrong, but I don't know where ! If someone has an idea about this export issue ? Thanks a lot and have a good day, Mathieu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64482#64482 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org