[osg-users] mutipass shaders

2006-12-06 Thread xiaoshuxing
Hi, everyone: Is there anyone here has used mutipass shaders in osg? Which of the osg examples has been talking about this? Or is there any else examples about this? thanks ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.

[osg-users] using OSG as a plugin with dlopen() and dlclose()

2006-12-06 Thread Philip Lowman
Hi, We're trying to use OSG within a dynamically loaded plugin in our code. Whenever we call dlclose() on our plugin, however, shortly after main() returns we segfault. I was wondering if anyone who's worked with OSG has heard of this kind of problem before? I've attached an example of wha

Fwd: [osg-users] where is the delete operator??

2006-12-06 Thread elekis
thanks a lot -- Forwarded message -- From: Robert Osfield <[EMAIL PROTECTED]> Date: Dec 6, 2006 4:00 PM Subject: Re: [osg-users] where is the delete operator?? To: osg users On 12/6/06, elekis <[EMAIL PROTECTED]> wrote: hi all, I have to use the osg for a work so I learn with

Re: [osg-users] Flight DOFTransform bug?

2006-12-06 Thread Brede Johansen
Hi Robert, It could be the DOF local coordinate system. I recommend going to the MPI website and download the latest version of the specification for details on the DOF record. Regards, Brede On 12/6/06, Robert Nitti <[EMAIL PROTECTED]> wrote: Hi – I loaded an OpenFlight model with sever

Re: [osg-users] Viewer clean up on isle 4

2006-12-06 Thread Robert Osfield
Hi Mike, On 12/6/06, Mike Wittman <[EMAIL PROTECTED]> wrote: Hi Zach, Are you setting the graphics context ID when you create your viewer? I was observing similar symptoms until I explicitly did so. I just added this line after SceneView creation: sceneView->getState()->setContextID(osg::Gra

RE: [osg-users] Viewer clean up on isle 4

2006-12-06 Thread Mike Wittman
Hi Zach, Are you setting the graphics context ID when you create your viewer? I was observing similar symptoms until I explicitly did so. I just added this line after SceneView creation: sceneView->getState()->setContextID(osg::GraphicsContext::createNewConte xtID()); -Mike -Original Mess

Re: [osg-users] Viewer clean up on isle 4

2006-12-06 Thread Robert Osfield
Hi Zach, I have done some more work in the CVS version of the OSG to clean things up cleanly, you still need to manually call the clean up though. I don't have the source code to hand right now, tomorrow I'll unearth it and send an example along. Robert. On 12/6/06, Zach Deedler <[EMAIL PROTEC

Re: [osg-users] Problem compiling OSG in Cygwin [ESRI Plugin]

2006-12-06 Thread Brian Keener
Since it appears that OpenThreads forum on Sourceforge hasn't had a lot of activity since Jan O6 I will continue this conversation here. I built the example simplethreader and workcrew on Cygwin and simplethreader runs but workcrew will not. I then rebuilt OpenThreads in debug mode and tried a

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Paul de Repentigny
Robert, Thanks for the explanation. It's now clear to me! Paul On 6-Dec-06, at 3:02 PM, Robert Osfield wrote: Hi Paul, Luigi's right: when "offset" is forced to be 0, textures are applying OK. I don't quite understand everything going in DataSet.cpp, but I do know that these calculated of

[osg-users] Viewer clean up on isle 4

2006-12-06 Thread Zach Deedler
Hello all, PROBLEM We have an application that creates an instance of a viewer. It displays several models, including replicant body models and osgText. Everythings works fine on the first iteration. We unload all the models and close the instance of the viewer but keep the application open.

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Robert Osfield
Hi Paul, Luigi's right: when "offset" is forced to be 0, textures are applying OK. I don't quite understand everything going in DataSet.cpp, but I do know that these calculated offset are in *degrees*, a unit I rarely seen in the datasets I'm used to. As to why "d_bb.xMin()" can be smaller tha

Re: [osg-users] osgdem: little enhancement

2006-12-06 Thread Robert Osfield
Hi Luigi, This little addition looks generally useful so please send it along to osg-submissions. Cheers. Robert. On 12/6/06, Luigi Calori <[EMAIL PROTECTED]> wrote: Just to stay on osgdem theme: Currently osgdem does not take -O options to let specify options to selectd osgdb plugins (for exa

Re: [osg-users] how to disable the osgGA::TrackballManipulator in the osgsimpleviewerQT4

2006-12-06 Thread Robert Osfield
HI Benny, On 12/6/06, benny porat <[EMAIL PROTECTED]> wrote: I made my own event handler, and I add it to the SimpleViewerQT(from the example) and I return "true" in the handke function, but the manipulator keed working. so I try to remove the line that add him. to work without manipulator just

[osg-users] osgdem: little enhancement

2006-12-06 Thread Luigi Calori
Just to stay on osgdem theme: Currently osgdem does not take -O options to let specify options to selectd osgdb plugins (for examples .ive or .jpeg plugins) I ' d like to be able to specify jpeg compression factor that is selectable with the option JPEG_QUALITY It should be enougth to add

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Luigi Calori
Paul de Repentigny wrote: Robert, Jason, Luigi, Gert, and all Luigi's right: when "offset" is forced to be 0, textures are applying OK. If you uptate the file, you will see that the setting is enabled only if d_bb.is_Geographic is true I do not understand exactly the meaning, but brobably

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Luigi Calori
With latest CVS, this bug has gone: I had missed your last check-in on the 14/11: it does exactly what I had in mind for fixing Thanks a lot and sorry for the bothering. Jason Beverage wrote: Robert is probably right, the fix that I applied probably wasn't general enough. I've got no idea r

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Paul de Repentigny
Robert, Jason, Luigi, Gert, and all Luigi's right: when "offset" is forced to be 0, textures are applying OK. I don't quite understand everything going in DataSet.cpp, but I do know that these calculated offset are in *degrees*, a unit I rarely seen in the datasets I'm used to. As to why

Re: [osg-users] Small Bug in LWS plugin

2006-12-06 Thread Chris Hanson
[EMAIL PROTECTED] wrote: Cool! Good to know someone else is using it. I was planning on looking at just what the reader can do wrt transparency, so I imaging I will be hitting that one soon and I will post it. I will keep this email around so we can keep in touch. It should be a matter of

[osg-users] extending osgIntrospection

2006-12-06 Thread Mike Wittman
Hi everybody, I'm looking deeper into osgIntrospection's capabilities for generating OSG C# bindings and I noticed that the wrappers don't expose whether a function interface is virtual or pure virtual. That's information that I'll need for the bindings, so I'll need to add it to the wrappers.

[osg-users] how to disable the osgGA::TrackballManipulator in the osgsimpleviewerQT4

2006-12-06 Thread benny porat
I made my own event handler, and I add it to the SimpleViewerQT(from the example) and I return "true" in the handke function, but the manipulator keed working. so I try to remove the line that add him. to work without manipulator just my event handler,l and sudnly the scene is empty? way that? the

Re: [osg-users] Metaflight loader

2006-12-06 Thread Robert Osfield
Hi Terry, On 12/6/06, Terry Welsh <[EMAIL PROTECTED]> wrote: I might need to write a Metaflight loader. Just wondering if anyone has done any work on one yet. I'd actually probably only write half of the loader, the geometry paging part. I don't plan to write support for cliptexturing, at lea

[osg-users] Metaflight loader

2006-12-06 Thread Terry Welsh
I might need to write a Metaflight loader. Just wondering if anyone has done any work on one yet. I'd actually probably only write half of the loader, the geometry paging part. I don't plan to write support for cliptexturing, at least not yet. Also, is libxml2 the standard xml library for OSG?

RE: [osg-users] Small bug: Primitive set of a single GL_POINT notdrawn

2006-12-06 Thread Dekker, E. (Erik) den
Indeed you were right Robert, turning off small feature culling did the job for me. Works like a charm now,... Erik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: maandag 4 december 2006 20:54 To: osg users Subject: Re: [osg-user

Re: [osg-users] Problem compiling OSG in Cygwin [ESRI Plugin]

2006-12-06 Thread Brian Keener
Robert Osfield wrote: > certainly is fine under the Linux, OSX, FreeBSD etc, so my guess is > the problem lies with Cygwin. Perhaps Cygwin developers could be > encouraged to use the OSG as a test bed. Not sure they will use as a test bed but if we can narrow it down to a simple test case wher

RE: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Jason Beverage
Robert is probably right, the fix that I applied probably wasn't general enough. I've got no idea right now what could be causing the issue. I'm kind of swamped with work until maybe early next week or this weekend, so I won't be able to look into this until then. If you guys can come up with any

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Paul de Repentigny
Jason, Luigi, The same problem occurs with the latest Nightly Tarballs ( 2006-12-05 ), cleanly built on Linux FC4. Ciao, Paul On 6-Dec-06, at 11:17 AM, Luigi Calori wrote: I' ll chechout as soon as possible and I' ll let you know the result. Is there a parameter to set in order to disable

Re: [osg-users] Small Bug in LWS plugin

2006-12-06 Thread rpingry
Cool! Good to know someone else is using it. I was planning on looking at just what the reader can do wrt transparency, so I imaging I will be hitting that one soon and I will post it. I will keep this email around so we can keep in touch. I just got a not from Robert saying the small tweak to

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Luigi Calori
I' ll chechout as soon as possible and I' ll let you know the result. Is there a parameter to set in order to disable the shifting or is it infering from the dataset? Jason Beverage wrote: Hi Luigi and Paul, Just to clarify, are you guys using the latest CVS or a previous version. As Rober

Re: [osg-users] find intersection without osgProducer::Viewer functionality

2006-12-06 Thread John_Donovan
As Robert says, this list isn't for writing your program for you. This is a general 3D maths question, and not OSG specific. But as I've got a few minutes, I'll explain. You have a model/view/projection matrix (either all separately or as one matrix). This converts a point from from world-space

Re: [osg-users] find intersection without osgProducer::Viewer functionality

2006-12-06 Thread benny porat
how I get such ray from the camera to the mouse cursor? what O do is to use the function "computeNearFarPoints" and get the 2 point,and get the intersection of the segment that the points create withe the plane... but I don't have osgProducer::Viewer so I can't use this function... thanks NB On

Re: [osg-users] find intersection without osgProducer::Viewer functionality

2006-12-06 Thread Robert Osfield
On 12/6/06, benny porat <[EMAIL PROTECTED]> wrote: someone? I realy need to move object in the scene with the mouse.. there maby onother way to do so? Do you nee us to write the program for you? Moving subgraphs is done by placing a transform node above the subgraph, see osganimate for exam

Re: [osg-users] find intersection without osgProducer::Viewer functionality

2006-12-06 Thread John_Donovan
If you want to move the selected object around on a plane (which sounds like what you want to do), then you can do a simple ray/plane intersection test and get the world coordinates from that. For example, if your object is at [5 3 8] and you want to move it on the z-plane, then you just use the

Re: [osg-users] where is the delete operator??

2006-12-06 Thread Robert Osfield
On 12/6/06, elekis <[EMAIL PROTECTED]> wrote: hi all, I have to use the osg for a work so I learn with http://www.nps.navy.mil/cs/sullivan/osgtutorials/osgGeometry.htm but I have some question about the code, there are a lot of new, where are the delete?? is osg take in charge that?? second

Re: [osg-users] find intersection without osgProducer::Viewer functionality

2006-12-06 Thread benny porat
someone? I realy need to move object in the scene with the mouse.. there maby onother way to do so? thanks NB On 12/5/06, benny porat <[EMAIL PROTECTED]> wrote: thanks the intersection now work fine, but I still have the problem that I need to use the function: computeNearFarPoints I need this

Re: [osg-users] Finally found the cause of my bug in .osg file loading mechanism

2006-12-06 Thread Robert Osfield
On 12/6/06, Alan Purvis <[EMAIL PROTECTED]> wrote: Yeah, this solves the problem, want me to submit the changes or just make them yourself? Send the changes to me, as a complete modified file, and I'll merge them, that what I know for sure the changes work for the problem you have in hand. Che

[osg-users] where is the delete operator??

2006-12-06 Thread elekis
hi all, I have to use the osg for a work so I learn with http://www.nps.navy.mil/cs/sullivan/osgtutorials/osgGeometry.htm but I have some question about the code, there are a lot of new, where are the delete?? is osg take in charge that?? second thing after a thing like that root->addChild(py

Re: [osg-users] osgpointsprite: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(, )

2006-12-06 Thread Andre Normann
Hi Robert, GL_POINT_SPRITE_COORD_ORIGIN is not part of the GL_ARB_point_parameters extension. So it is not enaugh to check for this extension. GL_POINT_SPRITE_COORD_ORIGIN is a OpenGL 2.0 feature, which is currently not available on a Mac. On my linux box I have GL >= 2.0 and seeing no prob

RE: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Jason Beverage
Hi Luigi and Paul, Just to clarify, are you guys using the latest CVS or a previous version. As Robert and Gert mentioned, that line is changed in the CVS to fix the problem that Gert found. If you're not using the latest, could you do a CVS update and see if you have the same problems? Thanks,

[osg-users] Ctrl-Click vs. Right-Click

2006-12-06 Thread James E. Hopper
Eric, i don't care that much which way it is, as long as its consistent. jim On Dec 6, 2006, at 9:28 AM, [EMAIL PROTECTED] wrote: Thanks for the feedback. Assuming I did not accidentally reverse the middle and right click actions, then I think the Ctrl-click action is the correct one. Ctrl-cl

RE: [osg-users] EllipsoidModel::convertXYZToLatLongHeight

2006-12-06 Thread Jolley, Thomas P
I think you may have misread what happens when x is 0 and y is not 0. When X is 0 and Y is positive atan2 returns PI/2. When X is 0 and Y is negative atan2 returns -PI/2. The only "if" needed is when both X and Y are 0. -Original Message- From: Schmidt, Richard, SDGE1 [mailto:[EMAIL PROT

Re: [osg-users] Finally found the cause of my bug in .osg file loading mechanism

2006-12-06 Thread Alan Purvis
Yeah, this solves the problem, want me to submit the changes or just make them yourself? Alan. On 6 Dec 2006, at 09:56, Robert Osfield wrote: Hi Alan, Good catch on tracking down what the problem is, certainly is a most obscure trail to find the final bug. I'm not sure of what the solutio

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Robert Osfield
Hi Luigi and Paul, On 12/6/06, Luigi Calori <[EMAIL PROTECTED]> wrote: Using your data, I have the same problems (shift in image wehen lod sawp...i think) This problem seems related to the line double xoffset = d_bb.xMin() < s_bb.xMin() ? -360.0 : 0.0; in osgTerrain/DataSet.cpp, line 520 Wit

Re: [osg-users] EllipsoidModel::convertXYZToLatLongHeight

2006-12-06 Thread Robert Osfield
Hi Richard, Feel free to fix it and send me the changed file :-) If no I'll get I've noted it down on my TODO list and will get to some time this week. Robert. On 12/6/06, Schmidt, Richard, SDGE1 <[EMAIL PROTECTED]> wrote: Hi, I was looking at the method mentioned above, which is used for ca

Re: [osg-users] osgpointsprite: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(, )

2006-12-06 Thread Robert Osfield
Hi Eric and Andre, I have just do a cvs log on PointSprite.cpp: revision 1.9 date: 2006/11/14 12:29:54; author: robert; state: Exp; lines: +18 -5 From Farshid Lashkari, "This patch adds a CoordOriginMode to the osg::PointSprite attribute. The mode needs to be changed to LOWER_LEFT when ren

[osg-users] Flight DOFTransform bug?

2006-12-06 Thread Robert Nitti
Hi - I loaded an OpenFlight model with several DOFTransforms. I noticed, upon looking in the debugger, that the InversePut matrix of the DOFT(s) seem to have all its values in absolute coordinates despite several DOFTransforms being children of other DOFTs; I know they are children because I par

Re: [osg-users] osgpointsprite: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(, )

2006-12-06 Thread E. Wing
Attached is the debug output. I do see GL_ARB_point_sprite in the list. I think I do see the point sprite (even changed the texture to make sure), so I'm not sure why the code is complaining. Thanks, Eric [EMAIL PROTECTED] ~/DEVELOPMENT/OSG/OSGpost1.2/OpenSceneGraph/Xcode/OpenSceneGraph/build/D

Re: [osg-users] osgpointsprite: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(, )

2006-12-06 Thread Andre Normann
Hi Robert, I got the warning too. Here is a dump from OpenGL Profiler: glPointParameteri(0x8ca0, 36002) Error: GL_INVALID_ENUM Context: 0x02808400 Function call stack: 0: 0x1ffeef1c in std::vectorosg::State::ModeStack, std::less, std::allocator > >, std::allocatorstd::le

Re: [osg-users] osgdem: offset in texture pages

2006-12-06 Thread Luigi Calori
Using your data, I have the same problems (shift in image wehen lod sawp...i think) This problem seems related to the line double xoffset = d_bb.xMin() < s_bb.xMin() ? -360.0 : 0.0; in osgTerrain/DataSet.cpp, line 520 With this deta, this value is getting set (incorretly? ) to -360.0 If you re

[osg-users] EllipsoidModel::convertXYZToLatLongHeight

2006-12-06 Thread Schmidt, Richard, SDGE1
Hi, I was looking at the method mentioned above, which is used for calculating the lat/long from a geocentric position. The longitude gets calculated using longitude = atan2(Y,X); However when X = Y = 0 the MSDN says: atan2 is well-defined for every point other than the origin, even if x equals

Re: [osg-users] terrain / importing 3D model

2006-12-06 Thread Robert Osfield
Hi Josh, There are plenty of ways to create terrain with the OSG, osgshaderterrain isn't a place I'd start, as its an experiment with using vertex shaders to do height field visualization and rather "bleeding edge". What type of data do you have for you terrain? If its large dataset then you co

Re: [osg-users] Re: osgdem: offset in texture pages

2006-12-06 Thread Robert Osfield
Hi Gert, I merged Jason's changes, but did they fix the problems you were seeing? Paul is saying that CVS still has the problem. Perhaps its a problem with CVS not updating local files correctly. Robert. On 12/6/06, Gert van Maren <[EMAIL PROTECTED]> wrote: Hi Robert, It seems this is the s

Re: [osg-users] custom drawable shared across sceneview

2006-12-06 Thread Robert Osfield
Hi Jerome, On 12/6/06, SCHMID, Jerome <[EMAIL PROTECTED]> wrote: Thanks Robert for the answer. Currently I am not sure my code is CVS compatible :) The drawImplementation(State&) method is still present for backwards compatibility, but the new drawImplementation(RenderInfo&) is now the main o

Re: [osg-users] osgpointsprite: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(, )

2006-12-06 Thread Robert Osfield
Hi Eric, On 12/6/06, E. Wing <[EMAIL PROTECTED]> wrote: I started playing with the osgpointsprite example today (did an update from CVS). I am seeing a lot of these messages: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,) I don't see any of these warnings in the sta

Re: [osg-users] Finally found the cause of my bug in .osg file loading mechanism

2006-12-06 Thread Robert Osfield
Hi Alan, Good catch on tracking down what the problem is, certainly is a most obscure trail to find the final bug. I'm not sure of what the solution should be off the top of my head, but its most likely be necessary to add a namespace qualification to the DotOsgWrapper associative names. I'm su