Hi,
Today,I run the example OSGMFC and I found the app can't display the modle
correctly. Some modle stretch in the x direction. How can I avoid this.
...
Thank you!
Cheers,
Geo xy
There is a long way to go.
--
Read this topic online here:
Hi,
osg::Matrixd mt;
mt-setUpdateCallback (New UpdateNode(camera));
class UpdateNode::: public osg::NodeCallback
{
osg::camera* camera;
UpdateNode(*camera)
{camera=camera;}
operate(osg::Node* node, osg::NodeVisitor* nv)
{
mt=camera-getMatrix();
traverse(osg::Node* node, osg::NodeVisitor* nv);
}
}
Hi All,
I want to add OSGViewer to inside my c++ form(.net). I have tried with
some examples from this Forum but I am unable to add the scene to my form.
Can any one give me complete example how can i add a OSGScene inside a Form
or other window.
Thanking You
Hi Tim,
On Sun, Sep 13, 2009 at 9:26 PM, Tim Allen osgfo...@tevs.eu wrote:
Hi,
I want set my matrix to current modelview matrix and want to multiply it
myself.Can someone please help me how to do it in osg.
osg::Matrix matrix = viewer.getCamera()-getViewMatrix();
// do the stuff you want
Hi Geo,
The camera callback will be called on each frame. Or if you don't want to
use a callback you can simply roll your own frame loop and do the setting
there.
Robert.
On Wed, Sep 9, 2009 at 3:28 AM, Geo Xin tty1...@163.com wrote:
Hi,
osg::Matrixd mt;
mt-setUpdateCallback (New
Hello,
Does overlay subgraph support LOD's?
I tried to assign a paged lod as overlaysubgraph for overlay node, but it
does not seem to page the lod's.
Is there any special way to use lod's with overlay?
Thanks and Regards
Vaibhav Bansal
___
Hi All,
How can implement multithreading in OSGApplication. Can anyone provide
some examples how to return back the control after displaying the scene??
Thanking You
Prasad.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi Prasad,
You question is way too open ended to give an answer. The osgViewer library
implements multi-threading of cameras and graphics context out of the box,
you don't need to do anything. But as to whether this is what you after I
have absolutely no clue.
Tell us what you mean by
Hi Vaibhav,
On Mon, Sep 14, 2009 at 9:20 AM, Vaibhav Bansal vaib...@darshan3d.comwrote:
Does overlay subgraph support LOD's?
yes it'll just inherit the standard OSG's functional, but there is a
context to how it judges the LOD range.
I tried to assign a paged lod as overlaysubgraph for
Hi,
Thank for your advice. I took a look at:
http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/branches/OpenSceneGraph-2.6/src/osgGA/TrackballManipulator.cpp
But i can't find any place in the code where the frustum will be calculated.
Thank you!
Cheers,
Johannes
Hi,
I don't think the frustum is calculated per se. Have a look at how
NodeTrackerManipulator.cpp (and others) uses setHomePosition(). I think
a certain camera FOV is assumed and then distance from the object is
adjusted so that the bounding sphere fits into the FOV.
jp
Johannes Schüth
Hi,
Yes, the computeHomePosition calculates a position and set's it. In my case i'm
not able to change the camera positon at all because it is fixed.
I'm able to change the orientation and the fov (by the frustum).
Perhaps the osgShadow::MinimalShadowMap class does this kind of frustum
Hi,
I am new with OSG. I am trying to do an scene with a plane flying over a
terrain. I want to use two cameras, one with the plane and looking at the floor
and with freedom to rotate it. And another camera placed well above the plane
looking to it. I use NodetrackerManipulator to do that, but
Hi,
Johannes Schüth wrote:
Hi,
Yes, the computeHomePosition calculates a position and set's it. In my case i'm
not able to change the camera positon at all because it is fixed.
I'm able to change the orientation and the fov (by the frustum).
bs = bounding sphere
You have the range (cam
I believe the has been answered several times recently, a search of the
OSG mail archives should provide the answer to your question
Gordon
Product Manager 3d
__
Gordon Tomlinson
Email : gtomlinson @ overwatch.textron.com
Well, this is not a setRenderBinDetails issue, but a material / color one.
If i define a color array for the label background it wont take anymore the
text color ... I am a bit confused with this kind of osg behavior but it
works for now.
Regards,
Harold
2009/9/14 Harold Comere
Hi,
I am making a little up to this thread because I have the same problem as
Kim. I use OSG 2.8, under windows XP and my graphic card is NVIDIA GeForce 8800
GTX.
[Image: http://img147.imageshack.us/img147/3131/errorxk.jpg ]
It appears each time I do a pre render renderig pass.
It is very
Hi,
I've written a Qt application. It's used to configure some settings which
should be considered it my visualisation later on. In addition, this window
update handles sending keep-alive messages via UDP in the background.
The visualisation itselft should be rendered in an own window by OSG.
Hi Sebastien,
There is very little others can do to help without seeing the actual problem
in front of them, it has far too open ended an issue - and OpenGL error
could mean a huge range of things that could be wrong. You have your
application and hardware that reproduces the problem, no-one
Hopefully a simple question: In the demo, osggeometry, I changed all the
color values to have an alpha of 0.1 instead of 1.0 (4th component of
Vec4). It didn't have any effect. What else needs to be added in order
for the transparency to appear?
Mike Greene
Hi Mike,
You need to enable blending on the stateset.
-setMode( GL_BLEND, osg::StateAttribute::ON );
Kim.
2009/9/14 Mike Greene mgre...@hiwaay.net:
Hopefully a simple question: In the demo, osggeometry, I changed all the
color values to have an alpha of 0.1 instead of 1.0 (4th component of
Hi Miguel,
By default the OSG creates display lists for drawables, including the
ShapeDrawable, and this won't automatically update unless you tell the
drawable it needs to recompile the display list which you can do via
drawable-dirtyDisplayList(). If you plan to modify the shape regularily
Thank
Im sure that this will help me.
//Ragnar
-Ursprungligt meddelande-
Från: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] För J.P. Delport
Skickat: den 11 september 2009 15:11
Till: OpenSceneGraph Users
Ämne: Re: [osg-users]
Hi,
Hi,
I am new to OSG. I have a following code inside my c++ application to run
OSGViewer.
osg::Group* root;
osgViewer::Viewer viewer;
root = new osg::Group();
. ( setting up the viewer/adding geometry).
Prasad Pokala wrote:
Hi,
Hi,
I am new to OSG. I have a following code inside my c++ application to run OSGViewer.
osg::Group* root;
osgViewer::Viewer viewer;
root = new osg::Group();
. ( setting up the viewer/adding
Hi,
I have found the solution!!
...
Thank you!
Cheers,
Felipe
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17344#17344
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
Here 's my problem. I have a cylinder shape that I have added to my scenegraph.
here a sample code:
I have declared instances in the headers. And I can display the cylinder.
Code:
rp_cylinder = new osg::Cylinder();
rp_cylinder-setHeight(1.0f);
rp_cylinder-setRadius(100.0f);
Hi Prasad,
You can do the multi-threading in any way you, you can even thread the main
loop out into a separate thread, or you can even just use the OSG's database
pager if to create procedural scene graph elements. You have lots of
choice. You don't really say enough about your apps needs to
Hi,
I'm new to openscenegraph,
i've loaded an OBJ into a node,
what would be the best way to query everything this node contains ?
I need to extract all geodes/geometry/transforms/materials to place them into a
nodegraph.
Thank you!
Cheers,
Terrence
--
Read this topic online
Pretty vague question, but you'd probably use a NodeVisitor for that.
Have you read the OSG Quick Start Guide?
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ http://www.skew-matrix.com/
+1 303 859 9466
Terrence Vergauwen wrote:
Hi,
I'm new to openscenegraph,
i've loaded
Hi,
I'm currently working with PositionAttitudeTransform controlled objects in my
environment. Some objects are clearly too big, some too small. So I set their
scale using the setScale function. Problem is that this scale is transmitted
automatically to children of the Transforms, and I do not
Julien-Charles Levesque wrote:
Hi,
I'm currently working with PositionAttitudeTransform controlled objects in my
environment. Some objects are clearly too big, some too small. So I set their
scale using the setScale function. Problem is that this scale is transmitted
automatically to
Can you post a small example of the problem? I've been using Qt with OSG
for about a month now and haven't run into anything like this.
Have you considered using something like a QTimer to send your keep-alive
messages instead?
On Mon, Sep 14, 2009 at 9:40 AM, Zoe Catz small_dra...@gmx.net
Writing single plugin to handle multiple extensions is not really as easy as
that but i guess that is a great reference.
__
Writing jobs (http://www.suite101.com/freelance_writing_jobs/)
--
Read this topic online here:
34 matches
Mail list logo