Hi Dat,

tien dat <[email protected]> wrote:
> Hi all,
> I need to open a wrl model with OpenSceneGraph, but it doesn't have
> the right plug-in to do the job. I try to search on internet and find
> this discussion:
> http://forum.openscenegraph.org/viewtopic.php?t=3576
> (about a month ago). I try to follow the instruction mentioned there
> but am not successful. I got an error saying that it can't find
> unistd.h - which is a header for Linux, not for Windows

Unistd.h is a standard POSIX header. MinGW provides it, I am not sure about 
Visual C++. 

> (FYI, this
> header is for zlib-plugin, which is required by vrml plug-in). Anyway,
> I can't compile the plug-in and would like to ask for some favors.
> 1. Is there a way to compile vrml plug-in with less pain?

What is "less pain"? OpenVRML has plenty of dependencies because of VRML 
complexity. There is little we can do about that. IMO, this is why a lot of 
people are switching over to develop on Linux these days - managing 
dependencies like this is just so much easier there, compared to Windows.

Furthermore, the problem you are facing is nothing to do with VRML plugin but 
zlib - I am sure you can find a prebuilt copy of it (e.g. here 
http://gnuwin32.sourceforge.net/packages/zlib.htm). Otherwise, you should be 
able to build it using MinGW at least.

> 2. If there is no way, what is the best solution? I'm thinking of
> converting wrl models to obj or 3ds models, but I need some tools to

If your models are relatively simple, you can do it using Blender or 3DS Max. 
Both can import some limited subset of VRML and export into different formats. 

Regards,

Jan

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to