Thank you Gerrit

2009/3/2 Gerrit Voss <[email protected]>

>
> Hi,
>
> On Mon, 2009-03-02 at 11:36 +0100, Olivier Tournaire wrote:
> > Hi all,
> >
> > I am currently trying to use OSG I/O. I the previous versions, a OFF
> > file reader was available. In version 2.0, it seems to have disappear.
> > Am I missing something ?
>
> No, I might not have been ported yet. I'll push it up the to do port
> list.


Great ! Please, could you advise me when it will be done ? I did not
suscribed to the "commit mailing list" ...


>
>
> > When I try to use OBJSceneFileType, just including the header in my
> > code gives compilation errors:
> >
> > /usr/local/include/OpenSG/OSGOBJSceneFileType.h: At global scope:
> > /usr/local/include/OpenSG/OSGOBJSceneFileType.h:185: erreur:
> > ‘SimpleMaterialUnrecPtr’ does not name a type
> > /usr/local/include/OpenSG/OSGOBJSceneFileType.h:191: erreur:
> > ‘SimpleTexturedMaterialUnrecPtr’ was not declared in this scope
> > /usr/local/include/OpenSG/OSGOBJSceneFileType.h:191: erreur: patron de
> > l'argument 2 est invalide
> > /usr/local/include/OpenSG/OSGOBJSceneFileType.h:191: erreur: patron de
> > l'argument 4 est invalide
> >
> > What am I doing wrong ?
>
> The easiest is usually to go through the scene file handler, e.g.
> call SceneFileHandler::the()->read("foo.obj"), instead of calling
> the scene file type directly. The only trick with this is that
> you have to link against libOSGFileIO and libOSGImageFileIO in order
> to get the loaders initialized correctly.
>
> The handler themselves are usually only setup to build on their own,
> hence the headers might be missing includes. If you want to use
> them directly you might have to add additional inludes, e.g.
> OSGSimpleTexturedMaterial.h in this case, before you include
> the scene file type header.


That works perfectly this way !

Regards,

Olivier


>
>
> kind regards,
>  gerrit
>
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>



-- 
Olivier Tournaire
MATIS - Institut Géographique National
73, Ave de Paris
94165 St Mandé cedex, France

tel: (+33) 1 43 98 80 00 - 71 25
fax: (+33) 1 43 98 85 81
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to