Re: [osg-users] osgswig: how to manipulate vertices in loaded meshes?

2010-06-17 Thread Mathias Franzius
Excellent, that seems to solve my problem. Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29063#29063 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] osgswig: osgDB.writeNodeFile

2010-06-16 Thread Mathias Franzius
Hi, how do I specify options for osgDB.writeNodeFile? I want to save texture filenames in an .osg file without absolute path. Thanks, Mathias -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29030#29030

[osg-users] osgswig: how to manipulate vertices in loaded meshes?

2010-06-16 Thread Mathias Franzius
Dear ng, I want to manipulate the coordinates of certain points after loading a mesh file. I understand that after calling n = osgDB.readNodeFile(fname) I get a Node. However, it should also be a Geode, so I try to call n.asGeode() This results in a None type. Question 1: what do I do

[osg-users] osgswig: new context, traits?

2009-03-11 Thread Mathias Franzius
Dear ng, when I want to open a new graphics context and attach it to a camera in c, this would look like: osg::ref_ptrosg::GraphicsContext::Traits traits = new osg::GraphicsContext::Traits; [...] osg::ref_ptrosg::GraphicsContext gc =

[osg-users] Howto use osg with a given OpenGL rendering context?

2009-02-25 Thread Mathias Franzius
Dear ng, I'm lost with this osg beginner's problem: Given I have an active rendering context (from glut or Qt etc.), and an osg group node holding my scene, how can I make osg render a view in this rendering context? My current knowledge of osg is sufficient as long as I use the osg::Viewer

[osg-users] osg swig: osg::GraphicsContext::createGraphicsContext?

2009-02-24 Thread Mathias Franzius
Hi, it seems that osg::GraphicsContext::createGraphicsContext and osg::GraphicsContext::Traits are not available in osgswig. How do I generate a new graphics context then? Preferably one for offscreen rendering? Thx! Mathias

Re: [osg-users] osgswig: snapshot as numpy array?

2009-02-23 Thread Mathias Franzius
Hi Gerwin, thanks for the code! Sadly I can't run it, because my osgViewer.View class has no addSlave method. That puzzles me, I use osg 2.6, which defines this method... Thx, Mathias -Ursprüngliche Nachricht- Von: Gerwin de Haan gerwindeh...@gmail.com Gesendet: 21.02.09 11:51:21

[osg-users] osg swig: crashes with nvidia

2009-02-23 Thread Mathias Franzius
Hi, I have a strange problem: when I compile osg 2.4 or 2.6 and osgswig on debian etch everything works fine with intel, ati or mesa graphics but doing the same thing on a virtually identical machine but with nvidia graphics (over a wide range of versions) all I get is this as soon as I import

[osg-users] osgswig: snapshot as numpy array?

2009-02-20 Thread Mathias Franzius
Dear ng, first of all thanks for the support for my last questions! I try to get a scene snapshot into a numpy array. In pure OpenGL I used a QT or glut context and glReadPixels and converted that to a numpy array using scipy. My problem on osg is that the context seems to be deactivated after

[osg-users] osg swig build problem

2009-02-18 Thread Mathias Franzius
Dear ng, I try to build osgswig on debian etch with either osg 2.4 or osg 2.6, python 2.5, swig 1.3.29, cmake 2.4-patch 5, and a fresh checkout from the osgswig svn. With both versions of osg cmake finishes happily but make stops with the same errors about invalid conversion from 'const char*'

Re: [osg-users] osg swig build problem

2009-02-18 Thread Mathias Franzius
On 18/2/09 10:02 PM, Mathias Franzius wrote: Dear ng, I try to build osgswig on debian etch with either osg 2.4 or osg 2.6, python 2.5, swig 1.3.29, cmake 2.4-patch 5, and a fresh checkout from the osgswig svn. With both versions of osg cmake finishes happily but make stops with the same errors

Re: [osg-users] osg swig build problem

2009-02-18 Thread Mathias Franzius
raise AttributeError(name) AttributeError: push_back Again, I'm lost here... Is this the same bug as for osg 2.6? Best, Mathias -Ursprüngliche Nachricht- Von: Mathias Franzius mathias.franz...@web.de Gesendet: 18.02.09 11:45:31 An: OpenSceneGraph Users osg-users