[osg-users] A question about the example OSGMFC

2009-09-14 Thread Geo Xin
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:

[osg-users] How to get the camera in UpdateCallback Node?

2009-09-14 Thread Geo Xin
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); } }

[osg-users] How to add OSGViewer window to C++(.Net) application

2009-09-14 Thread prasad pokala
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

Re: [osg-users] glmultmatrix in osg

2009-09-14 Thread Robert Osfield
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

Re: [osg-users] How to get the camera in UpdateCallback Node?

2009-09-14 Thread Robert Osfield
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

[osg-users] Overlay nodes and Lod's

2009-09-14 Thread Vaibhav Bansal
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 ___

[osg-users] OSG MultiThreading

2009-09-14 Thread prasad pokala
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

Re: [osg-users] OSG MultiThreading

2009-09-14 Thread Robert Osfield
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

Re: [osg-users] Overlay nodes and Lod's

2009-09-14 Thread Robert Osfield
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

Re: [osg-users] Focus object/scene (clamping frustum)

2009-09-14 Thread Johannes Schüth
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

Re: [osg-users] Focus object/scene (clamping frustum)

2009-09-14 Thread J.P. Delport
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

Re: [osg-users] Focus object/scene (clamping frustum)

2009-09-14 Thread 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

[osg-users] Problems with camera default views

2009-09-14 Thread Felipe Lemus
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

Re: [osg-users] Focus object/scene (clamping frustum)

2009-09-14 Thread J.P. Delport
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

Re: [osg-users] A question about the example OSGMFC

2009-09-14 Thread Tomlinson, Gordon
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

Re: [osg-users] setRenderBinDetails issue

2009-09-14 Thread Harold Comere
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

Re: [osg-users] FBO OpenGL Error with new nVidia Driver

2009-09-14 Thread Sebastien Nerig
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

[osg-users] OSG viewer blocks Qt window

2009-09-14 Thread Zoe Catz
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.

Re: [osg-users] FBO OpenGL Error with new nVidia Driver

2009-09-14 Thread Robert Osfield
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

[osg-users] Alpha question with osggeometry

2009-09-14 Thread Mike Greene
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

Re: [osg-users] Alpha question with osggeometry

2009-09-14 Thread Kim Bale
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

Re: [osg-users] shape, shape drawable and geode modification

2009-09-14 Thread Robert Osfield
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

Re: [osg-users] Confusion regarding multiple views showing almost the same sceene

2009-09-14 Thread Ragnar Hammarqvist
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]

[osg-users] OSG Threading

2009-09-14 Thread Prasad Pokala
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).

Re: [osg-users] OSG Threading

2009-09-14 Thread Jason Daly
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

Re: [osg-users] Problems with camera default views

2009-09-14 Thread Felipe Lemus
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

[osg-users] shape, shape drawable and geode modification

2009-09-14 Thread Miguel Lokida
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);

Re: [osg-users] OSG Threading

2009-09-14 Thread Robert Osfield
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

[osg-users] querying nodes/childs

2009-09-14 Thread Terrence Vergauwen
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

Re: [osg-users] querying nodes/childs

2009-09-14 Thread Paul Martz
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

[osg-users] Preventing scale from being transmitted to children

2009-09-14 Thread Julien-Charles Levesque
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

Re: [osg-users] Preventing scale from being transmitted to children

2009-09-14 Thread Jason Daly
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

Re: [osg-users] OSG viewer blocks Qt window

2009-09-14 Thread Philip Lowman
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

Re: [osg-users] Writing single plugin to handle multiple extensions

2009-09-14 Thread Budong Smith
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: