[osg-users] Drawing a point

2009-05-28 Thread Mojtaba Fathi
Hi all Accept my apology for such a simple question. I want to display two coincident points at (0,0,0). I use code like this: int main() {     osgViewer::Viewer viewer;     osg::ref_ptrosg::Group root (new osg::Group);     osg::ref_ptrosg::Geode geode (new osg::Geode());    

Re: [osg-users] problem with Drawable and glCallList (sample program included)

2009-05-20 Thread Mojtaba Fathi
robertosfield wrote: Hi Moji, Could you try OSG-2.8.1 or OSG-2.9.x/svn/trunk as this has a fix in Drawable::compileGLObjects() for the compilation of vertex arrays, this fix affected ATI drivers that couldn't cope with putting VBO's inside a display list. There is a chance that this might

Re: [osg-users] problem with Drawable and glCallList (sample program included)

2009-05-20 Thread Mojtaba Fathi
Hi again I tried OSG 2.9.4 and nothing changed, I got the same Access Violation Error. Regards, Moji the Great --- On Wed, 5/20/09, Mojtaba Fathi modjta...@yahoo.com wrote: From: Mojtaba Fathi modjta...@yahoo.com Subject: Re: [osg-users] problem with Drawable and glCallList (sample program

Re: [osg-users] problem with Drawable and glCallList (sample program included)

2009-05-20 Thread Mojtaba Fathi
Hi Robert I think we are probably looking at a driver bug.  Could you try other machines/drivers to see if there is pattern to it. I think so, I ran the program on a Virtual PC client running Windows 2000 and everything was fine. I'm not sure this signature will come across well across the

[osg-users] problem with Drawable and glCallList (sample program included)

2009-05-19 Thread Mojtaba Fathi
Hi all I have a strange problem with Drawable::draw function which can't understand the reason. In order to show you the problem, I've attached a sample program which generates an Access Violation in Drawable::draw function when it calls glCallList function. Before the main function, there

Re: [osg-users] problem with Drawable and glCallList (sample programincluded)

2009-05-19 Thread Mojtaba Fathi
__   From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mojtaba Fathi Sent: Tuesday, May 19, 2009 3:40 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] problem with Drawable and glCallList (sample

Re: [osg-users] problem with Drawable and glCallList (sample programincluded)

2009-05-19 Thread Mojtaba Fathi
303 859 9466   From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mojtaba Fathi Sent: Tuesday, May 19, 2009 1:40 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] problem with Drawable and glCallList (sample

Re: [osg-users] What is everyone doing for GUIs?

2009-05-16 Thread Mojtaba Fathi
Hi I'm using WTL. Regards, Moji the Great --- On Sat, 5/16/09, Mike Hall mike.hallo...@gmail.com wrote: From: Mike Hall mike.hallo...@gmail.com Subject: [osg-users] What is everyone doing for GUIs? To: osg-users@lists.openscenegraph.org Date: Saturday, May 16, 2009, 4:01 AM Hey All, What are

Re: [osg-users] Question about osgViewer::View::EventHandlers

2009-05-15 Thread Mojtaba Fathi
Hi J-S I did what you suggested and now it's working fine. Thnaks for your help and explanation. Moji the Great --- On Thu, 5/14/09, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote: From: Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Subject: Re: [osg-users] Question about

Re: [osg-users] Question about osgViewer::View::EventHandlers

2009-05-15 Thread Mojtaba Fathi
osg-users@lists.openscenegraph.org Date: Friday, May 15, 2009, 12:47 PM HI Moji, On Thu, May 14, 2009 at 5:30 PM, Mojtaba Fathi modjta...@yahoo.com wrote: Also, there is no such removeEventHandler function in View class, which I think could help me to solve the problem. In the svn/trunk version

[osg-users] Question about osgViewer::View::EventHandlers

2009-05-14 Thread Mojtaba Fathi
Hi all in the body of class osgViewer::View, EventHandlers is defined as follows:     typedef std::list osg::ref_ptrosgGA::GUIEventHandler EventHandlers;     In fact, I use a wrapper class for OSG in my application which acts as a container for all major OSG objects, like Viewer, Manipulator,

Re: [osg-users] CAD style rotation

2009-04-22 Thread Mojtaba Fathi
Hi all Thanks Martin for his excellent work on SphericalManipulator. I will be so glad if this can be added to the submission list. But there are a few notes and questions: 1 - you have commented the body of zoomOn function, but it's declaration exits in the class. 2 - I think zoomOn

[osg-users] memory management incompatibility?

2009-03-12 Thread Mojtaba Fathi
Hi all I'm using OSG 2.8 dll's for VS80 in my application. After some malloc/realloc and free operations, I get messages like this Free Heap block ... modified at ... after it was freed. I think the problem arises from memory management incompatibility between my app and OSG dll's. Is there

[osg-users] memory management incompatibility? (SOLVED)

2009-03-12 Thread Mojtaba Fathi
Hi again As expected, that was my fault. I found the problem and now everything is fine. Regards, Moji the Great --- On Thu, 3/12/09, Mojtaba Fathi modjta...@yahoo.com wrote: From: Mojtaba Fathi modjta...@yahoo.com Subject: [osg-users] memory management incompatibility? To: osg-users

Re: [osg-users] forcing a square aspect ratio

2009-02-11 Thread Mojtaba Fathi
HiI had the same problem, and I found a solution (but can't remember where I found it). It's like this: // Realize the Viewer _viewer-realize(); // correct aspect ratio double fovy,aspectRatio,z1,z2; camera-getProjectionMatrixAsPerspective(fovy,aspectRatio,z1,z2);

Re: [osg-users] forcing a square aspect ratio

2009-02-11 Thread Mojtaba Fathi
my view always looked the same. Cory Mojtaba Fathi wrote: Hi I had the same problem, and I found a solution (but can't remember where I found it). It's like this: // Realize the Viewer _viewer-realize(); // correct aspect ratio

[osg-users] about Drawable::ComputeBoundingBoxCallback struct

2009-02-04 Thread Mojtaba Fathi
Hi all osg::Drawable class declares 5 structs which can be used to implement callback functions for different purposes. Except 'ComputeBoundingBoxCallback' struct, other 4 structs inherit virtually from osg::Object class. Is there any particular reason for 'ComputeBoundingBoxCallback' struct