[osg-users] camera node in osg file
Erik Sundnes Løvlie
eriklovlie at gmail.com
Sun Mar 2 09:05:22 PST 2008
Yes, I need to control the camera view and animation path, and I would like
to be able to set up the complete scene (or "level" if you will, in game
terms) in blender and export it (meshes, cameras, lights, etc) to a single
file (.osg would be simplest I guess). In the code I imagine I can then
simply use the camera (or cameras) in the scene graph, with the stored
position and orientation.
Erik
On Sun, Mar 2, 2008 at 3:00 PM, Robert Osfield <robert.osfield at gmail.com>
wrote:
> Hi Erik,
>
> What do you mean by a camera in the scene graph in this context? Are
> you looking to control the camera view and animation path? Or do you
> require to control the capturing of images via an active camera such
> as a RTT effect?
>
> Robert.
>
> On Sun, Mar 2, 2008 at 1:47 PM, Erik Sundnes Løvlie
> <eriklovlie at gmail.com> wrote:
> > Hello everyone,
> >
> > I have a few questions regarding the osg file format (and the blender
> export
> > plugin), and I couldn't find the answer when searching the mailing list
> > archive (for this mailing list or the blender mailing lists + forums)
> and
> > google.
> >
> > Short intro / background: I am trying to write a small game using
> blender
> > for creating the 3d content and openscenegraph for the real-time
> > visualization. I am using version 2.44 of blender and 2.2.0 of osg
> (checked
> > out from svn). My environment is kubuntu 7.10.
> >
> > So I have three questions that I hope someone can help me with:
> >
> > 1) I haven't been able to get the camera information (position +
> > orientation) into the osg file when I export from blender. Looking at
> the
> > python code for the exporter, it seems it ignores the camera nodes
> > completely. Does anyone know if this is a limitation in the osg file
> format,
> > or the blender plugin, or neither? I haven't been able to find camera
> info
> > in any of the .osg files in the OpenSceneGraph-Data-2.0 archive.
> >
> > 2) How do people normally use the osg file format in their projects?
> Many
> > .osg files with one mesh in each, keeping the scene setup (camera,
> lights,
> > etc) in some other file?
> >
> > 3) Does anyone have a feeling about which file format is the most common
> to
> > use in games projects using openscenegraph? Could it be collada perhaps?
> >
> > Regards,
> > Erik Lovlie
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080302/dd65e0d7/attachment.htm
More information about the osg-users
mailing list