Hum you are certainly right, i'm a newbie programmer ...I'm using this line :
- osgDB::Registry::instance()->addFileExtensionAlias("wrl","wrl");
Is it correct ? For information, it's a VRJuggler program, using openSceneGraph, and still with VC7.1
But anyway, i'm still getting an error, when I use this line on the osgshell
- osgviewer -l osgdb_wrl.dll D:\Simulateur\EvorData\imports\yoda.wrl
And it's still a "Debug Assertion Failed!". So hasn't anyone built this plugin yet with VC7.1 ?
To built the library, I use these options ;
/Od /I "C:\TGS\OIV4.0\include" /I "../../../include" /I "../../../../OpenThreads/include" /I "../../../../Producer/include" /I "../../../../3rdParty/include" /D "_WINDOWS" /D "_USRDLL" /D "WIN32" /D "_DEBUG" /D "_WINDLL" /D "_MBCS" /FD /EHsc /RTC1 /MDd /GS /GR /YX" stdafx.h" /Fp".\Debug/wrl.pch" /Fo".\Debug/" /Fd".\Debug/" /W3 /nologo /c /Zi /vmg
And these for the linker :
/OUT:"../../../bin/osgdb_wrl.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\TGS\OIV4.0\lib" /LIBPATH:"../../../lib" /LIBPATH:"../../../../OpenThreads/lib/win32" /LIBPATH:"../../../../Producer/lib" /LIBPATH:"../../../../3rdParty/lib" /DLL /NODEFAULTLIB:"LIBC" /DEBUG /PDB:".\../../../lib/osgdb_wrld.pdb" /IMPLIB:".\../../../lib/osgdb_wrld.lib" /MACHINE:X86 OpenThreadsWin32d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib osgDB.lib osg.lib OpenThreadsWin32.lib
And it give me no error. Is this plugin buggy ? I really need to be able to load WRL 2.0 file ...
Simon.
On 5/9/06, Robert Osfield <
[EMAIL PROTECTED]> wrote:
HI Simon,
I don't you should need to modify the OSG itself, the alias from wrtl
to ive can be overriden by just using:
osgDB::Registry::addFileExtensionAlias("wrl","wrl");
I can't comment on the VRML plugin though, its not my code, and I've
never compiled it.
Robert.
On 5/9/06, Simon ESNEAULT <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I want to load some VRML 2.0 on an app created with Visual Studio 7.1,
> using the plugin describe on this page.
> For the moment, I think it's compiled correctly, and I also recompile the
> whole OSG because (need to remove the line addFileExtensionAlias("wrl",
> "iv"); from Registry.cpp as explain on this page in order to make the plugin
> working)
>
> Now I'm running out for a new problem when I try to open a WRL 2.0 file with
> for exemple osgviewer, it crash and give an error message windows :
>
> ###############################################
> Microsoft Visual C++ Debug Library
> Debug Assertion Failed!
> Program: C:\Program Files\OpenSceneGraph\bin\osgviewer.exe
> File: dbgheap.c
> Line:1044
> _expression_: _CrtIsValidHeapPointer(pUserData)
>
> For information on how your program can cause an assertion failure, see the
> Visual C++ documentation on asserts.
> ################################################
>
> Then, it give an other application error message
> Finally the osg shell look like :
>
> ###########################
> C:\Program Files\OpenSceneGraph\bin>osgviewerd
> D:\Simulateur\Data\tsi05_o.wrl
> Inventor error in SoState::~SoState():
> State destroyed with non-zero (5) depth
> ###########################
>
> I'm facing this problem (loading WRL 2.0 files on windows) for a few days
> now and I really need help.
>
> The whole OSG recompilation is ok, because the exemple and my app work's
> well...
>
> Anyone as an idea ?
> Thanks for your response, and sorry for my poor english
>
> Simon ESNEAULT
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
