[osg-users] How to resize/move existing OSG window dynamically?

2019-05-30 Thread Mike Greene
Hi, I have an example where I create an OSG window. I need to be able to move or resize it after creation through code. I have tried something like this: Code: while (!viewer->done()) { viewer->frame(); if (bConditionMet) viewer->getEventQueue()->windowResize(newX, newY,

Re: [osg-users] osggeometryshaders example question

2017-09-13 Thread Mike Greene
Thanks! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71703#71703 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] osggeometryshaders example question

2017-09-12 Thread Mike Greene
Hi, In reference to the osggeometryshaders example, I have a question about a seeming problem when only passing one point to the geometry shader: If I comment out all but the first push back: Code: osg::Vec3Array* vAry = new osg::Vec3Array; setVertexArray( vAry ); vAry->push_back(

Re: [osg-users] Is it possible to draw an ive object inside a shader?

2016-12-12 Thread Mike Greene
Similar to what OSGforest example does, except render an actual ive file and mot just textured quads... Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69661#69661 ___

[osg-users] Is it possible to draw an ive object inside a shader?

2016-12-12 Thread Mike Greene
Hi, Wondering if it possible to draw an ive file inside a shader. For example, say I want to populate an urban area with a particular building, maybe have the shader scale and rotate and place it randomly. Can I use a shader to draw the ive file over and over again externally to the actual

Re: [osg-users] Irregular shaped clip node?

2016-06-16 Thread Mike Greene
Thanks, Robert. What about some convex shape like a pentagon? Just looking for some way to do something other than a rectangle? ... Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67658#67658

[osg-users] Irregular shaped clip node?

2016-06-16 Thread Mike Greene
Hi, Can you have an irregular shaped clip node? For example, what if I want an ellipse or a pentagon shaped clip node. Is that possible? Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67656#67656

Re: [osg-users] [build] undefined setColorArray and setNormalArray in 3.2.3

2016-02-12 Thread Mike Greene
Robert, I have found the problem - multiple OSG versions and I was linking to the older one. Thanks! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=66280#66280 ___ osg-users mailing

[osg-users] [build] undefined setColorArray and setNormalArray in 3.2.3

2016-02-11 Thread Mike Greene
Hi, Have some older code that I have working with on Windows (OSG 3.2.1). Uses setColorArray and setNormal array to define some primitive geometry. While porting to LINUX using OSG 3.2.3, I get undefines on these two methods while linking. Are there some "deprecation" flags or something I need

Re: [osg-users] setProjectionMatrixAsPerspective changes eyepoint when camera is rotated

2015-10-22 Thread Mike Greene
In a post frame callback. ... Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=65412#65412 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] setProjectionMatrixAsPerspective changes eyepoint when camera is rotated

2015-10-22 Thread Mike Greene
Hi, I am trying to manually effect near and far clipping planes based on camera altitude in my app. Essentially, I do this: Camera()->getProjectionMatrixAsPerspective(_fov,_ratio,_near,_far); Then based on some criteria, I might change the near or far clip planes. _near = _nearNew; _far -

[osg-users] Floating point depth buffer

2015-09-02 Thread Mike Greene
Having problems with Z-fighting when using a very large terrain database and mixing it with Triton ocean - seeing lots of z-fighting along the coast line where the water and the terrain depths are nearly the same. I can alleviate the problem by reducing the near/far clip boundaries, but this is

Re: [osg-users] LOS materail query

2015-08-28 Thread Mike Greene
OK, Got this working for some cases. For example, I used Lightwave to create a box with a colorbar texture placed on it so I would know for sure that the color returned was correct. The texture I used was a plain jpg. The problem is when using some other .ive , ost, or .osgt files. These

Re: [osg-users] LOS materail query

2015-08-26 Thread Mike Greene
OK, fixed that - loaded an .ive file and was able to get correct looking texture coordinates. In a .ive file with embedded textures, is there a textureName? Probably not - not really important. But the code does say that there is one image in the texture. But doing the getImage(0) does not

Re: [osg-users] LOS materail query

2015-08-26 Thread Mike Greene
Yes, a null texture is the problem. I am using the osgparticleeffects example, as I know the object does have a texture. It is the example where you click on the terrain and at that point an explosion and smoke effect starts. But when printing out the coordinates of hit in the code above, they

Re: [osg-users] LOS materail query

2015-08-25 Thread Mike Greene
Hi, using the example, osgparticleeffects.cpp, I added the following lines of code to the pick function (inside the //MGREENE section): Code: void pick(osgViewer::Viewer* viewer, const osgGA::GUIEventAdapter ea) { osg::Group* root = dynamic_castosg::Group*(viewer-getSceneData());

Re: [osg-users] LOS materail query

2015-08-21 Thread Mike Greene
Thank you guys very much! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64867#64867 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] LOS materail query

2015-08-20 Thread Mike Greene
Hi, I am wanting to do a dust cloud when an entity (helicopter) lands on a terrain. Ideally, would like the color of the dust cloud to be similar to the material/texture that the entity is on. Is there a way to do a material/texture color query based on an entity position, kind of like an LOS

Re: [osg-users] osg/CameraNode not in 3.4?

2015-07-31 Thread Mike Greene
Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64544#64544 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] osg/CameraNode not in 3.4?

2015-07-31 Thread Mike Greene
Sorry, I guess I should have asked - wrt OSG - the include file osg/CameraNode has vanished in the latest version (at least compared to 3.2.1). Has this functionality been replaced or superceded? Mike Greene __ -- Read this topic online here: http://forum.openscenegraph.org

[osg-users] How to programmatically clear trackball manipulator's mouse queue

2010-03-19 Thread Mike Greene
it , but it looks like the previous dragging motion queues up lots of mouse events that then continue to rotate the terrain on subsequent render loops. Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org

[osg-users] MFC and keyboard handling

2010-03-03 Thread Mike Greene
I have an MFC/OSG app that works well as far as mouse/manipulator functionality is concerned. But it seems as if the standard way I do keyboard handling does not. Does MFC intercept keyboard commands? Is there an example somewhere of how to passthrough the OSG keyboard commands? Mike Greene

[osg-users] osgmovie http streaming over wireless on Windows

2010-03-02 Thread Mike Greene
;. Is this possible? As of now, the plugin gives me the message saying it doesn't know how to handle that type of file. I can transcode the stream into an mpeg 2 or 4 format. Could I somehow just mod the QT plugin so that is will accept a url as a file name with no extension? Mike Greene

Re: [osg-users] How to render last with multiple cameras

2010-01-07 Thread Mike Greene
the HUD and the 3D cameras are separate, that doesn't seem to be working. Mike Greene 010/1/6 Mike Greene mgre...@hiwaay.net mailto:mgre...@hiwaay.net I have a view with two cameras - a HUD camera and a regular 3D perspective camera. I have my scene set up so that I can vary the alpha

[osg-users] How to render last with multiple cameras

2010-01-06 Thread Mike Greene
components drawn at full brightness while the HUD is also fully opaque. I tried using renderbins, but I think the problem is that the HUD and the 3D items are seen with different cameras. Is there a way to accomplish this? Mike Greene ___ osg-users mailing

[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

[osg-users] Easy Question? - returning points after PositionAttitudeTransform applied

2009-08-31 Thread Mike Greene
and X2nY2n)? I tried returning the bounding box on the linesegment but it returned the same values both before and after I did the transform. Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi

Re: [osg-users] osgmovie streaming

2008-11-18 Thread Mike Greene
) to work. I run it by using the command: osgmovie 0:1.livewhich is the device that gets assigned to the card. I've also gotten it to work using a regular Firewire stream in NTSC resolution using the AbstractPlane DirectShow to Quicktime convertor: http://www.abstractplane.com/ Mike Greene

Re: [osg-users] Optimization and lots of objects

2008-10-24 Thread Mike Greene
that there was not a more efficient way that I'm missing. Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Optimization

2008-10-23 Thread Mike Greene
What happens if you need to periodically update size, position, orientation of objects? Without using a PAT and putting everything in a single geometry is this possible? Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http

[osg-users] Optimization and lots of objects

2008-10-23 Thread Mike Greene
question - is there a better way of handling a large number of objects that must each be individually manipulated dynamically for the duration of the program (i.e., not static)? Im using a fairly Mike Greene ___ osg-users mailing list osg-users

[osg-users] How to speed up osg:Shapedrawable with many instances

2008-10-10 Thread Mike Greene
., not static size, orientation, position). Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Event Adapter getXNormalized doesn't return normalized value

2008-08-29 Thread Mike Greene
. Is this correct? Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] esc key handler

2008-07-17 Thread Mike Greene
Where in the osg source code is the close down section for when the user hits the esc key? I need to be able to replicate the code via a custom function, so I'd like to have it as a baseline. Mike Greene ___ osg-users mailing list osg-users

[osg-users] Disabling HUD in one camera

2008-06-12 Thread Mike Greene
I currently have a setup with one viewer with two cameras. I add a HUD to the scene (as a child to the root node) and it shows up in both camera views. Is there an easy way to disable seeing it in one view? Some camera-Set... that will do this? (based on depth or something?) Mike Greene

Re: [osg-users] osgmovie with mpgs or avis on windows

2008-06-10 Thread Mike Greene
I have it working with both avis and mpgs on Windows. You need to make copies of the osgdb_qtd.dll (in the plugins directory) and rename them osgdb_mpgd.dll and osgdb_avid.dll . Then you can give either of these types of files as arguments to osgmovie.

[osg-users] Scribe outline only

2008-06-09 Thread Mike Greene
Trying to modify the osgscribe example. I want to display the scribe lines, without the underlying model beneath it. The code does the following: root-addChild(decorator); decorator-addChild(loadedModel); The decorator setups up the scribe mode. If I then set the nodeMask of the

Re: [osg-users] error in viewer.frame

2008-05-30 Thread Mike Greene
Paul - Thanks! That fixed the problem. Can you explain why this was needed? /Paul Martz wrote: Try forcing SingleThreaded, either in your app by calling Viewer::setThreadModel, or with the env var OSG_THREADING=SingleThreaded. -Paul / ___

[osg-users] Error in Viewer.Frame()

2008-05-29 Thread Mike Greene
Using Windows XP, VS2005 debug, OSG 2.3.7. Getting an exception inviewer.frame(OSGSimTime); the first time through the render loop. Looking at the auto variable values, it appears that BoundingSphere has returned an error. I do call : terrainGroup-addChild(terrainNode); const

[osg-users] How to set Texturerect to BGRA?

2008-05-23 Thread Mike Greene
for this? Mike Greene //code #include osg/Notify #include osg/TextureRectangle #include osg/Geometry #include osg/Geode #include osg/TexMat #include osg/Group #include osg/Projection #include osg/MatrixTransform #include osgText/Text #include osgDB/Registry #include osgDB/ReadFile #include

Re: [osg-users] OpenSceneGraph 2.4 released

2008-04-25 Thread Mike Greene
In the QuickTime Live feed stuff, has anything changed from 2.3.7 (maybe a ? for Colin). I'm still having some issues with an HD live feed with 2.3.7 and was just curious if anything has changed since? Mike Greene ___ osg-users mailing list osg

Re: [osg-users] Building VirtualPlanetBuilder and osgdem on Windows

2008-04-08 Thread Mike Greene
. Is there a new dependency package somewhere that contains ALL the necessary components and that has been checkout on Windows with the latest svn versions? Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http

[osg-users] Building VirtualPlanetBuilder and osgdem on Windows

2008-04-07 Thread Mike Greene
is found in cpl_string.h b ut this is not included in the source files. I used the included CMAKE files and built the Visual 2005 solution files, and satisfied all the required environment vars. What am I missing? Mike Greene ___ osg-users mailing list

Re: [osg-users] Quicktime plugin live streaming documentation/examples

2008-04-03 Thread Mike Greene
, Quicktime SDK 7.3. Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Quicktime plugin live streaming documentation/examples

2008-04-02 Thread Mike Greene
output is : available Video DigitizerComponents : 0 I know the video is working because I have a VideoLan Client instance running and it shows the output of the camera feed. Is there there something else (maybe relative to QuickTime) that I need to specify? Mike Greene

Re: [osg-users] Quicktime plugin live streaming documentation/examples

2008-04-02 Thread Mike Greene
into that next. Mike Greene ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

[osg-users] Quicktime plugin live streaming documentation/examples

2008-04-01 Thread Mike Greene
I've been using the QT plugin for sometime now with a pre-recorded movie (.mov). I now want to send it live streams. Is there any documentation/examples on how to do this? I use VideoLan Client to start a multicast stream (udp://@2xx.xxx.xxx.xxx:1234) and can see it remotely, so I know it is

[osg-users] Simple Mailing list question - message numbers

2008-01-30 Thread Mike Greene
In other mailing lists that I subscribe to, the message number is given in the header of the actual message as it corresponds to the topic summary. In the OSG mailings, although the message number is given in the top summary, it does not appear in the actual message itself, thus making it