[osg-users] how to make a node fixed in screen position

2008-09-11 Thread forest37
hi all, I want to draw axes in screen position,the axes can't be scaled or transformed ,but which can be rotated with other scene.I do it like this,but the billboard (texts: 'X','Y','Z') doesn't work,what should I do to make the billboard work well?“axes.osg” is downloaded from the osg

[osg-users] GUI - HUD

2008-09-11 Thread Julen García
Hi all, I'm new with OSG and I'm doing my fist project. I would like to make a menu in the interface, someting like http://yag2002.sourceforge..net/pix/screen-11-05-b.jpg or like http://www.openscenegraph.org/projects/osg/attachment/wiki/Screenshots/Archivideo/paris20122.jpg A box, with a

Re: [osg-users] GUI - HUD

2008-09-11 Thread CG
Hi Julen, Have a look at OsgWidget examples, it may help :)Regards, Cg Date: Thu, 11 Sep 2008 08:11:15 +From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: [osg-users] GUI - HUD Hi all, I'm new with OSG and I'm doing my fist project.. I would like to make a menu in the interface, someting

Re: [osg-users] GUI - HUD

2008-09-11 Thread Ümit Uzun
Hi Julen, If you want to create more flexible and complex GUI you should look at CEGUI. It may help you creating good HUD panels. Best Regards. Umit Uzun 2008/9/11 CG [EMAIL PROTECTED] Hi Julen, Have a look at OsgWidget examples, it may help :) Regards, Cg

Re: [osg-users] GUI - HUD

2008-09-11 Thread Robert Osfield
On Thu, Sep 11, 2008 at 9:41 AM, Ümit Uzun [EMAIL PROTECTED] wrote: Hi Julen, If you want to create more flexible and complex GUI you should look at CEGUI. It may help you creating good HUD panels. N, CEGUI cause lots of problem in integration with the OSG, it's possible to do but in

Re: [osg-users] osgTerrain::TerrainTile question

2008-09-11 Thread Coco
Hey Brian, I found the old post you were takling about. I copied it below. But where is the link to the code? Best regards, Nicolas Duval [osg-users] Paged Terrain Question *Brian R Hill* bhill22 at csc.com

Re: [osg-users] GUI - HUD

2008-09-11 Thread Ümit Uzun
Hi Robert, I advice the CEGUI because of Delta3D integrate the OSG and CEGUI in same platform. So I have thought it can be possible to integrate base osg project. Sorry, I made mistake. But if Julen want to take support CEGUI, ODE,OPENAL and etc with coding OSG, you should look at DELTA3D game

[osg-users] Strange behavior with multiple screens and ImageStream

2008-09-11 Thread Serge Lages
Hi all, We've made an ImageStream using FFmpeg to display movies on textures, but I am currently facing some problem when displaying this movie on two different contexts. Here is my setup : WinXP with one GForce 8600GTS and 2 screens, viewer on DrawThreadPerContext mode (OSG SVN head version).

Re: [osg-users] GUI - HUD

2008-09-11 Thread Julen García
Hi all, Thanks for your help. As I'm beginner, maybe it is better start with osgWidget if CEGUI can cause some problems. But I'm using osg 2..4. Can I use osgWidget, or I have to download the 2.6 version. - Mensaje original De: Ümit Uzun [EMAIL PROTECTED] Para: OpenSceneGraph Users

[osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hello I need to draw a plane (more exactly two lines by three points). Problem is in plane color. It must depends on camera position relative plane side - red or blue. I did it with CullCallback, because it's only one way to get access to camera, which I can find. What is right way to do it?

Re: [osg-users] GUI - HUD

2008-09-11 Thread Robert Osfield
Hi Julen, On Thu, Sep 11, 2008 at 11:11 AM, Julen García [EMAIL PROTECTED] wrote: As I'm beginner, maybe it is better start with osgWidget if CEGUI can cause some problems. But I'm using osg 2.4. Can I use osgWidget, or I have to download the 2.6 version. For osgWidget you'll need to use

Re: [osg-users] painting plane

2008-09-11 Thread Robert Osfield
Hi Ilia, If one side of the plane should be red, and the other blue then you could render two polygons for the plane, each with opposite winding and colour, then use glCullFace(osg::CullFace) to cull the faces to give the illusion of changing colour. The other technique you could use of two

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hello, Robert Thanks so much - it really helps Ilia В Чтв, 11/09/2008 в 11:38 +0100, Robert Osfield пишет: Hi Ilia, If one side of the plane should be red, and the other blue then you could render two polygons for the plane, each with opposite winding and colour, then use

[osg-users] Mac OS X 10.5 crash in osgText

2008-09-11 Thread Hartmut Seichter
I seen some other threads mentioning FreeType not being thread save. This is OSG 2.6 branch This is replicable with plain osgviewer on OSX on a MBP 2.4 To replicate: export OSG_WINDOW='20 20 800 600' open osgviewer cow.osg press 's' to show the stats with '' and '' go up and down the

Re: [osg-users] Mac OS X 10.5 crash in osgText

2008-09-11 Thread Robert Osfield
Hi Hartmut, The FreeType plugin usage is guarded to prevent thread problems so while FreeType isn't thread safe, this shouldn't affect OSG-2.6, and almost certainly has no barring on the crash you describe. The crash you looks to be CGL issue, whether this is a threading issue or otherwise I

[osg-users] fish eye projection

2008-09-11 Thread Filip Wänström
Hi, I need to output to a single channel fish eye projection lens . (Elumenati system) Is there a simple way to achieve this? Basically I believe there are 3 paths to chose from: 1. doing the fisheye projection yourself (similar to osgdistortion) 2. using the elumentai api, omnimap (only windows

Re: [osg-users] fish eye projection

2008-09-11 Thread Filip Wänström
Ok, I searched and tested a little bit more. Using -c congfigfile.view should have been the first thing to try out. Sorry about that. But anyway, Is there some documentation of how the rendering is set up etc? Complications etc? Would be nice to understand and be able to change depending on the

Re: [osg-users] fish eye projection

2008-09-11 Thread Filip Wänström
Robert, thanks for clearing that out. I'll experiment and see what I come up with. I would also prefer not to use/integrate 3rd party libs. /Filip On Thu, Sep 11, 2008 at 2:02 PM, Robert Osfield [EMAIL PROTECTED]wrote: Hi Flilip, The .view format is still in a very early stage of development,

Re: [osg-users] fish eye projection

2008-09-11 Thread Robert Osfield
Hi Flilip, The .view format is still in a very early stage of development, so only supports a select range of convenience methods that are provided in the osgViewer::View::setUpView*() methods. The OSG also has Producer .cfg plugin which allows you to use Producer configuration files, these are

Re: [osg-users] fish eye projection

2008-09-11 Thread Robert Osfield
Hi Filip, If you system is a relatively common configuration then we might be able to add a View::setView*() and associated support into .view format, this way others will benefit and will be able to test the functionality. The way I developed the spherical display support was by creating

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hello This technic working fine for poligons, but is it possible to make this trick to lines? I need exactly two lines, not three as in triangle. I trying in such way group-addChild( geode_with_poligons ); group-addChild( geode_with_lines ); group-getOrCreateStateSet()-setMode( GL_CULL_FACE,

Re: [osg-users] Open/Close the window on win32

2008-09-11 Thread christophe loustaunau
Hello, This is something I'd like to make available as well. I have tried to implement a function that restores the previous graphic context one the window as been closed. Nothing has been successful. Is such a thing possible with osg? Thanks On Tue, Sep 9, 2008 at 3:00 PM, Lucas Lallement

Re: [osg-users] painting plane

2008-09-11 Thread Robert Osfield
Hi Ilia, face culling only works on polygons. Robert. On Thu, Sep 11, 2008 at 2:20 PM, Korolyov Ilia [EMAIL PROTECTED] wrote: Hello This technic working fine for poligons, but is it possible to make this trick to lines? I need exactly two lines, not three as in triangle. I trying in such

Re: [osg-users] fish eye projection

2008-09-11 Thread Jean-Sébastien Guay
Hi Filip, Robert, Diving into 3rd party libs for setting up the rendering I'd personally avoid as they'll just complicate your application, and will limit the threading options you have in your viewer. Personally I have integrated our rendering backend here at work with both OmniMap and

Re: [osg-users] GUI - HUD

2008-09-11 Thread Jeremy Moles
On Thu, 2008-09-11 at 11:35 +0100, Robert Osfield wrote: Hi Julen, On Thu, Sep 11, 2008 at 11:11 AM, Julen García [EMAIL PROTECTED] wrote: As I'm beginner, maybe it is better start with osgWidget if CEGUI can cause some problems. But I'm using osg 2.4. Can I use osgWidget, or I have to

Re: [osg-users] Returning ref_ptr vs. ref_ptr::get()

2008-09-11 Thread Jolley, Thomas P
Hi Paul Martz, The example in the middle of page 37, above the one Cliff cited, looks like it won't compile. Did you really mean to return *grp? I know it's meant to show bad programming practice but the book reads like it should compile. osg::Group* CreateGroup() { osg::ref_ptrosg::Group

Re: [osg-users] Strange behavior with multiple screens and ImageStream

2008-09-11 Thread Kawicki, Ryan H
I am not an expert in this area, but our application seems to suffer from this as well. I don't think this has to do with OSG. I believe it to be more driver related. Do you have VSync turned on? If you do, force VSync to be always off and retest. Ryan H. Kawicki The Boeing Company

Re: [osg-users] osgTerrain::TerrainTile question

2008-09-11 Thread Brian ...
If you go here: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2007-December/005634.html The link is near the bottom: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071219/eaa1ef2c/attachment.obj Brian Date: Thu, 11 Sep 2008

Re: [osg-users] OverlayNode bug

2008-09-11 Thread Mathieu MARACHE
Hi Robert, 2008/9/10 Robert Osfield [EMAIL PROTECTED] Hi Mathieu, I don't know the cause/or a solution to the problem, but in the case of VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY a GLSL vertex and fragment program is used to generate the results, so I'd guess that the shader simply doesn't

Re: [osg-users] painting plane

2008-09-11 Thread Tomlinson, Gordon
Doubtful really as lines don't have back faces.. Gordon __ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Korolyov Ilia Sent:

Re: [osg-users] Open/Close the window on win32

2008-09-11 Thread brettwiesner
Hi, Recycling context id's is something that seems fixed in 2.6.0. I'm not sure if you can keep a graphics context around without a window however you can keep the scene graph around. Just hold onto a ref ptr to the root node of your scene graph. You should be able to open a new window and

Re: [osg-users] fish eye projection

2008-09-11 Thread Filip Wänström
Nice to hear! I don't have access to the actual inflatable dome at this time but I am trying to do a quick-and-dirty app to help me display media and models for testing purposes. By using 3DSphericalDisplayTopProjector.view with the projector matrix set to identity I think I have something close

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Ok. Coming back to first letter - what is right way to do such painting? As I understand, proper way to change scene - is using UpdateCallback. But in UpdateCallback there is no camera information. So I can't define suitable color for lines. In CullCallback there is camera information, but it's

Re: [osg-users] painting plane

2008-09-11 Thread Robert Osfield
Hi Ilia, The way I'd do it be to use a cull callback that decides between two subgraphs to traverse, one for the front face, one for the back, this would mean that your scene graph doesn't change with the viewport, and it'll scale nicely on multi-threaded and multi-camera setups. The other

[osg-users] Lightning strike effect

2008-09-11 Thread rvinyard
Anyone have tips or other thoughts on implementing a lightning strike effect? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hi, Robert I'll try first one. Thanks Ilia В Чтв, 11/09/2008 в 16:40 +0100, Robert Osfield пишет: Hi Ilia, The way I'd do it be to use a cull callback that decides between two subgraphs to traverse, one for the front face, one for the back, this would mean that your scene graph doesn't

Re: [osg-users] Returning ref_ptr vs. ref_ptr::get()

2008-09-11 Thread Paul Martz
The example in the middle of page 37, above the one Cliff cited, looks like it won't compile. Did you really mean to return *grp? I know it's meant to show bad programming practice but the book reads like it should compile. You are correct, that code is wrong. I meant to return grp.get()

Re: [osg-users] Strange behavior with multiple screens and ImageStream

2008-09-11 Thread Serge Lages
Hi Ryan, Thanks for the tip but it doesn't change anything for me... :/ The solution will be to not display the video in full resolution on the 2 screens for the moment. On Thu, Sep 11, 2008 at 4:18 PM, Kawicki, Ryan H [EMAIL PROTECTED]wrote: I am not an expert in this area, but our

Re: [osg-users] Movie texture on poly

2008-09-11 Thread Patrick Webb
Robert, Thank you, I did not know that movies started paused. Yes, I've got the movies playing via osgmovie, and by using the command osgviewer --movie myanim.gif So that's all working! Hooray! So I guess my big question would be how do you call play on a movie in a .osg file? Thank you

[osg-users] OverlayNode : Proble setting render target implementation

2008-09-11 Thread Rahul Jain
Hi All, I am trying to set Render target implementation using function setRenderTargetImplementation() in my application but it is not changing, When i looked in to the code I found out that the init() function is called in constructor, which in turn calls function getOverlayData(); for the

Re: [osg-users] Movie texture on poly

2008-09-11 Thread Robert Osfield
On Thu, Sep 11, 2008 at 6:51 PM, Patrick Webb [EMAIL PROTECTED] wrote: So that's all working! Hooray! So I guess my big question would be how do you call play on a movie in a .osg file? You'll need to write a visitor to find the ImageStream and then play them.

Re: [osg-users] OverlayNode : Proble setting render target implementation

2008-09-11 Thread Jason Beverage
Hi Ravi, I submitted a fix for this but it didn't make it into the 2.6 release. Moving to the trunk should fix the problem. I also don't think this made it into the 2.6 maintainence branch either, perhaps it should? Thanks! Jason On Thu, Sep 11, 2008 at 2:19 PM, Rahul Jain [EMAIL PROTECTED]

Re: [osg-users] Returning ref_ptr vs. ref_ptr::get()

2008-09-11 Thread Alberto Luaces
El Jueves 11 Septiembre 2008ES 18:37:07 Paul Martz escribió: The example in the middle of page 37, above the one Cliff cited, looks like it won't compile.  Did you really mean to return *grp?  I know it's meant to show bad programming practice but the book reads like it should compile.

Re: [osg-users] Returning ref_ptr vs. ref_ptr::get()

2008-09-11 Thread Paul Martz
El Jueves 11 Septiembre 2008ES 18:37:07 Paul Martz escribió: The example in the middle of page 37, above the one Cliff cited, looks like it won't compile.  Did you really mean to return *grp?  I know it's meant to show bad programming practice but the book reads like it should

Re: [osg-users] Mac OS X 10.5 crash in osgText

2008-09-11 Thread Hartmut Seichter
Well, sorry I forgot to mention it certainly works with singlethreaded mode. I could try to reproduce it with a simpler example but I think osgviewer is as lean as it gets. If I don't switch on the HUD in osgviewer the problem does not occur - or lets say I can't reproduce it. We have some