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_ptr root (new osg::Group);
osg::ref_ptr geode (new osg::Geode());
osg::ref_ptr geometry (new osg::Geomet
Hi Robert
Thanks, it works fine.
Regards, Moji
HI Moji,
You are falling foul of small feature culling as your bounding volume
has zero size. You can disable small feature culling by doing:
viewer.getCamera()->setCullingMode(
viewer.getCamera()->getCullingMode() &
~osg::CullSe
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 to
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); aspectRatio=do
ter
what number I plugged in for the aspect ratio, 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 Vie
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 any
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 wrote:
From: Mojtaba Fathi
Subject: [osg-users] memory management incompatibility?
To: osg-users@lists.openscenegraph.org
Date: Thursday, March
Hi
I have a developed a manipulator like the one you want. It has some extra code
specialized for my needs. Let me clean extra codes and send it to you. Maybe it
can help.
Regards, Moji the Great
--- On Wed, 4/22/09, Richard Baron Penman wrote:
From: Richard Baron Penman
Subject: [osg-users]
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 function
Hi all
in the body of class osgViewer::View, EventHandlers is defined as follows:
typedef std::list< osg::ref_ptr > 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, etc.
This class also
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
wrote:
From: Jean-Sébastien Guay
Subject: Re: [osg-users] Question about osgViewer::View::EventHandlers
To: "OpenSceneGraph Users"
Date: T
M
HI Moji,
On Thu, May 14, 2009 at 5:30 PM, Mojtaba Fathi 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 and 2.9.x series there is an
View::removeEventHandler() impleme
Hi
I'm using WTL.
Regards, Moji the Great
--- On Sat, 5/16/09, Mike Hall wrote:
From: Mike Hall
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 you all doing for GUI development in OSG?
QT,
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 is
: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 programincluded)
Hi all
I have a strange problem with
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 programincluded)
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 mig
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 wrote:
From: Mojtaba Fathi
Subject: Re: [osg-users] problem with Drawable and glCallList (sample program
included)
To: osg-users
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 t
19 matches
Mail list logo