Commit Graph

  • 3c461dd706 Add check to filter out the return of FILE_NOT_FOUND from archive results to prevent these from prematurely exiting the Registry::read(..) method bofore it loads plugins to try and load requested file. Robert Osfield 2011-11-02 10:57:17 +00:00
  • 04f9341161 Replaced the use of PrtScrn with 'm' for taking screenshots, replaced the use of 'm' with 'M' for taking movies. Robert Osfield 2011-11-01 16:13:24 +00:00
  • 1bcd36f5ed From Stephan Huber, "A recent commit (41e23f466d) for GraphicWindowsIOS.mm broke the compilation for OpenGL ES 1.x as GL_DEPTH_COMPONENT32_OES is not defined for 1.x. I added a #define-guard." Robert Osfield 2011-11-01 13:41:48 +00:00
  • 76396d0c12 Added screen capture handler to present3D, with the PrtScn button used for a single frame capture and 'm' for continuous frame capture. The --screenshot filename command line option can be used to configure the name of the screen capture. Robert Osfield 2011-11-01 13:36:07 +00:00
  • 215512647c Added setting of the sampleDensityWhenMovingProperty at the same time as when setting the sampleDensityProperty Robert Osfield 2011-11-01 11:08:48 +00:00
  • 3cad9d0962 Fixed the use DCM_SeriesDescription Robert Osfield 2011-11-01 10:30:18 +00:00
  • 14a4aa9a19 Improved the handling of multiple datasets being read at once, with all the images in a series being group according to Series UID and SeriesDescription and orientation. Robert Osfield 2011-11-01 10:27:12 +00:00
  • ca582c708d Adding missing checks against View's Camera and SceneData for any update callbacks that need calling. Robert Osfield 2011-10-31 15:29:49 +00:00
  • d95801f6a8 Changed the notification level to INFO. Robert Osfield 2011-10-28 11:00:55 +00:00
  • bbf081695b Changed the setting of Traits::sampleBuffers so that it's set to 1 when DisplaySettings::getMultiSamples() is set to a non zero value. Robert Osfield 2011-10-28 11:00:08 +00:00
  • 3e7900c39e Changed the default for SampleBuffers to be 1 when set. Robert Osfield 2011-10-28 10:36:29 +00:00
  • 20ffed1fa1 Removed OSX codepath for setting the depth value to 32 as this turned out to be unneccesary. Robert Osfield 2011-10-28 09:45:51 +00:00
  • 24ff8796d5 Changed the default depth to 24. Robert Osfield 2011-10-28 09:11:21 +00:00
  • 98d50250ff Updated volume shaders to use the GL_LIGHT 0 values to control the direction of the light source Robert Osfield 2011-10-27 16:33:18 +00:00
  • 3a64805d20 Reimplement the light direction controls so that they now work correctly with osgViewer::Viewer. Robert Osfield 2011-10-27 13:11:20 +00:00
  • 7bcfb3c130 Added support for ignore returns as white space. Robert Osfield 2011-10-27 09:24:34 +00:00
  • c403c052db Added support for American spelling of swap and add supportOptions(..) documentation for the new options. Robert Osfield 2011-10-27 08:34:53 +00:00
  • 881078289d Added support into the .p3d format for specifying the osgDB::Options::OptionString via the <tag options="value">. Robert Osfield 2011-10-26 14:25:56 +00:00
  • 5d26d16fd3 Added password support into present3D's vnc support via the tag usage : <vnc password="mypassword">hostname</vnc> Robert Osfield 2011-10-26 12:48:57 +00:00
  • 9995cb70a9 Added password support into osgvnc example and vnc plugin Robert Osfield 2011-10-26 12:29:38 +00:00
  • b9d7989b44 Implement a simply attempt at detecting when the pixel format needs to be swapped. Robert Osfield 2011-10-26 09:34:50 +00:00
  • 2dc271d85f Added support for 32bit depth buffer Robert Osfield 2011-10-25 15:55:33 +00:00
  • 4b655d9c46 Added hack of using a 32bit depth buffer default setting for Traits when compiling under Apple. Robert Osfield 2011-10-25 15:31:46 +00:00
  • 9b380c8d49 Moved switching off of the cursor till after the slide event handler has had a chance to switch off the scene. Robert Osfield 2011-10-24 13:40:29 +00:00
  • 1538ecf113 Fixed handling of slide with no layers. Robert Osfield 2011-10-24 11:09:35 +00:00
  • e04ca06fc8 Fixed build of StreamOperator Robert Osfield 2011-10-22 09:02:18 +00:00
  • 9e903861a2 Fixed handling of Vec3dArray in GLBeginEdnAdapter/ArrayDispatchers. Robert Osfield 2011-10-21 15:39:51 +00:00
  • d7cba048f5 Added support for using negative scale_x, scale_y and scale_z values in the <volume> tag to allow presentations to flip the imagery Robert Osfield 2011-10-21 11:00:29 +00:00
  • d3cebab9a3 Added flipDepth() method Robert Osfield 2011-10-21 10:59:42 +00:00
  • 088d00c651 Fixed handling of scale.x, scale.y and scale.z paramters so that all of them now take an effect. Robert Osfield 2011-10-21 09:31:56 +00:00
  • 6607b373d5 Fixed handling of reading/writing of osgVolume::VolumeTile tiles Robert Osfield 2011-10-20 16:49:08 +00:00
  • affe0b4a6d Added support for calling throwException() from InputIterator and added a check for negative string sizes. Robert Osfield 2011-10-20 16:35:50 +00:00
  • 62888dba38 Added check against build type to avoid the build of the osgviewerWX example with debug build as this fails with unresolved symbols within the internals of WxWidgets. Robert Osfield 2011-10-20 11:50:04 +00:00
  • aa14f603d1 From Ulrich Hertlein, fixed build problem due to cmake_policy CMP0017 being only available from cmake-2.8.4, added guard to prevent build problems Robert Osfield 2011-10-20 10:52:32 +00:00
  • 3fd407a60e Improved handling of recent Cmake versions Robert Osfield 2011-10-20 09:23:26 +00:00
  • 2c4eb8d181 Fixed typo in command line output, and add an explanation message for when createTexture3D fails to create an osg::Image from a list of input osg::Image. Robert Osfield 2011-10-20 08:59:47 +00:00
  • 61b2659fab Fixed typo Robert Osfield 2011-10-17 15:39:46 +00:00
  • 33479c7768 Improvements to the compute near/far Robert Osfield 2011-10-17 14:41:49 +00:00
  • bdb0dfe27d Improvements to osgShadow::ViewDependentShadowMap and ShadowSettings Robert Osfield 2011-10-17 14:40:29 +00:00
  • 0fc0c642bf Quitened down debug message Robert Osfield 2011-10-17 11:12:05 +00:00
  • 4992f798d7 From Jean-Sebastien Guay, add --mapres size option to ViewDependentShadowMap settings. Robert Osfield 2011-10-17 10:25:28 +00:00
  • d9dbff18a2 Add catch for when shadows are enabled between the update and draw traversals. Robert Osfield 2011-10-03 15:57:06 +00:00
  • e8e25e82a9 From Jean-Sebastien Guay, changed the border colour for the shadow map to be 1 rather the 0 used for debugging so that areas outside the shadow map default to being unshadowed rather than shadowed. changed the shadow map texture assigment to StateSet so that it doesn't use OVERRIDE, enabling subgraphs to use the same texture unit for other textures if they so required. tidied up indentation. Robert Osfield 2011-10-03 15:25:16 +00:00
  • 78ad56f76c Changed getVertical(..) so it uses the same coord scale as the getGlyph Robert Osfield 2011-10-03 14:57:39 +00:00
  • 951a437c0c Fixed handling of ShadowSetting LightNum Robert Osfield 2011-10-03 14:56:38 +00:00
  • bb48cef38c Added Font::getVertical(float& ascender, float& descender) methods. Robert Osfield 2011-10-03 10:36:18 +00:00
  • db329cf943 Added catch for NaN vertices that were being generated by osgText, these NaN vertices were causing glu tesselation functions to crash. Robert Osfield 2011-09-28 11:52:27 +00:00
  • b32d8e0151 Added computation of the extents, in light space, of the shadow maps RenderStage contents and use of this to produce a tighter bound light space projection. Robert Osfield 2011-09-28 10:54:30 +00:00
  • 12e8d09ed1 Added a half second sleep after calling system command when the command is run in the background so that this command has a chance to run and open a window before the calling present3D moves on to the next frame. Robert Osfield 2011-09-20 11:46:45 +00:00
  • 0b7dbc68c9 Added better error reporting and handling when <key> tag contents are not valid. Robert Osfield 2011-09-20 10:59:18 +00:00
  • 845d33b353 Added handling of <!DOCTYPE...> tag and "" options. Robert Osfield 2011-09-20 10:01:07 +00:00
  • 2c1b6789db From Ulrich Hertlein, "attached is a patch that cleans up compiler warnings and common functionality." Robert Osfield 2011-09-19 10:42:54 +00:00
  • e557d4f28b From Wojciech Lewandowski, "There was a bug in reading modifier keys when focus to GraphicsWindowWin32 was restored. Handler of WM_SETFOCUS was reading pressed keys and sending WM_KEYDOWN messages to fill initial keyboard state. But WM_KEYDOWN messages sent had 0 on lParam and adaptKey method computing state of modifier mask was using lParam to find which modifier keys are down. Obviously when lParam was 0 it was not recording proper modifier masks. Robert Osfield 2011-09-19 10:39:19 +00:00
  • 8a230d42ed From Luc Frauciel, "You'll find attached a new option that allow, when using LOD in USER_DEFINED_CENTER mode to expand the radius of the node by the radius of loaded objets. Motivation ; When using PagedLODs, you don't always know the real size of loaded children, If it occurs that they are out of predefined bounds, picking on the parts that are out of bound will fail They also can be culled out too soon. The problem often occurs with long object (roads). I've modified LOD and ProxyNode to include this option." Robert Osfield 2011-09-19 10:34:31 +00:00
  • 6e01f05853 Added removal of [..] from names returned from glGetActiveUniform results to avoid issues with name lookups when the driver add the [..] for uniform arrays. Robert Osfield 2011-09-19 10:12:53 +00:00
  • f9dffdba2c Copya and Paste Anti-Pattern strikes again! Renamed FreeType usage to Revisions to correct previous mistake when copying and modifying the ReaderWriter. Robert Osfield 2011-09-19 09:44:29 +00:00
  • 3279e9a5f5 Fixed memory leak Robert Osfield 2011-09-14 10:45:11 +00:00
  • 420d8f6acf Added missing forward declaration Robert Osfield 2011-09-14 10:22:04 +00:00
  • 8345c85c3c Added asCamera() methods into osg::Camera and osg::Node Robert Osfield 2011-09-14 10:02:11 +00:00
  • 0f30c08701 From Laurens Voerman, "attached is a zipped OpenSceneGraph\src\osgPlugins\ffmpeg\FFmpegDecoderAudio.cpp Robert Osfield 2011-09-14 09:49:28 +00:00
  • c1af863f78 From Morten Hauknes, "I have been using the getLastVisiblePixelCount on pre 3.0 osg. I believe maybe this was a private function that we made public in our side. I use(d) this method to make a simple algorithm to tell how much visible an object was in percent. Robert Osfield 2011-09-13 13:38:26 +00:00
  • 6c46956918 From Jean-Sebastien Guay, removed unneccessary BUILD_QT_EXAMPLES cmake option Robert Osfield 2011-09-13 13:33:41 +00:00
  • 41924dfc14 From Sukender, "I just fount that writing double precision values (eg. Vec3dArray for vertices) works with .osg but not .osgt/.osgx. So here is the fix (SVN trunk r12712). I suppose .osgb works as expected on this point and did not change anything. So, as for .osg, if you add "precision 16" (for instance) to the optionString, then you'll get double precision vertices written correctly. " Robert Osfield 2011-09-13 11:48:06 +00:00
  • 64fa6aec43 From Robert Milharcic, "This will hopefully fix some issues with osgQt, more precisely with GLWidget event handling. There are at least two current GL context braking events, QEvent::Hide and QEvent::ParentChange. When running in a multithreaded mode they both try to change current GL context in a wrong thread (main GUI thread). The QEvent::ParentChange is also problematic when running in a single threaded model because Qt is going to release current contex then delete it, and then it will create new one, and as a result the osg will continue to render to an invalid deleted context. This changes workaround above problems by deferring execution of the problematic evens. These events has to be enqueued and executed later. The enqueued event processing is currently done right after swap in a swapBuffersImplementation of GraphicsWindowQt while code is running in a render thread by calling QGLWidget handler directly. In principle the deferred events queue should be executed while in GUI thread but I couldn't find any reliable way to do this, that is without risking a deadlock. For now it is assumed, Qt is not going to execute any GUI thread only operations inside the QGLWidget handler." Robert Osfield 2011-09-13 11:09:39 +00:00
  • 098bc6df5e From Farshid Lashkari, " The osgUtil::CullVisitor class will display an OSG_INFO notification when attempting to clamp the projection matrix with invalid near/var values. This usually appears when the scene graph is empty or all objects are culled. I don't think this scenario warrants having this message appear every frame. It makes it very difficult to debug other issues when this notification floods the output window. Robert Osfield 2011-09-13 10:15:07 +00:00
  • 408c2a2267 From Paul Martz, "Here's my proposed change regarding the osg-users post "small feature culling threshold". I've updated the comments and brought the default values into agreement, but didn't bother to add the environment variable support." Robert Osfield 2011-09-13 09:59:21 +00:00
  • c35fdf7333 From Jean-Sebastien Guay, "I added a simple setting in OSG's CMakeLists.txt to be able to disable building anything related to Qt. It just skips the FindPackage(...) for Qt3 and Qt4, so since they are not found nothing related to Qt will be generated by CMake. The default is to build the Qt related stuff, so current behavior is unchanged." Robert Osfield 2011-09-13 09:53:34 +00:00
  • 698a284da8 From Sukender, "I added a tiny check to avoid an integer divide-by-zero, when image is invalid (ie. all values are 0)." Robert Osfield 2011-09-13 09:46:22 +00:00
  • abb7228d56 From Sukender, "I added a crash-guard against corrupted 3DS files, having faces indexes out of the range of existing vertices." Robert Osfield 2011-09-13 09:43:45 +00:00
  • 6d1ba5b06d From Farshild Lashkari, "Attached is a simple patch that avoids the depth write pass in Text::renderWithDelayedDepthWrites if the current osg::State object has GL_DEPTH_TEST disabled." Robert Osfield 2011-09-13 09:21:07 +00:00
  • 43483408f3 Reverted Paul Idstein warning fix as this was breaking the build Robert Osfield 2011-09-13 09:17:21 +00:00
  • 757d00c3c8 From Ulrich Hertlein, Added some error checks and memory cleanup. Robert Osfield 2011-09-12 16:24:08 +00:00
  • cd6e174a5c From Stephan Huber, fixed build for OSX 10.6 and earlier Robert Osfield 2011-09-12 16:20:45 +00:00
  • cc37579392 From Johannes Baeuerle, opptimization of ES support of osg/BufferObject Robert Osfield 2011-09-12 16:17:33 +00:00
  • 140a04aebc From Bjorn Blissing, "Found a minor (probably a copy & paste) bug in ViewerEventHandlers. Line 251: int getKeyEventWindowedResolutionDown() const { return _keyEventWindowedResolutionUp; } Robert Osfield 2011-09-12 12:38:41 +00:00
  • 6e6dafcd3e From Luc Frauciel, "When osgUtil::DelaunayTriangulator triangulate() function ends with no triangle generated, it crashes. This patch fixes that" Robert Osfield 2011-09-12 12:26:55 +00:00
  • ca51a1113b From Magnus Kessler, documentation fixes Robert Osfield 2011-09-12 12:14:17 +00:00
  • 22dd9df78b Improved the clarity of doxygen comments Robert Osfield 2011-09-12 12:04:46 +00:00
  • 4b6593b211 Fixed typos in the documentation Robert Osfield 2011-09-12 11:51:14 +00:00
  • 796ccd14c8 From Cedric Pinson, from three submissions: Robert Osfield 2011-09-12 11:28:14 +00:00
  • 19b8b1f474 From Bob Kuehne, build fix for OSX 10.7 SDK. Robert Osfield 2011-09-12 11:24:52 +00:00
  • edd83a03fe From Paul Idstein, warning fixes for OSX 10.7 Robert Osfield 2011-09-12 11:24:24 +00:00
  • 9be4a1a1c8 From Magnus Kessler, typo fixes Robert Osfield 2011-09-12 10:52:16 +00:00
  • 5162fcc108 From Wang Rui, "I've encountered a strange problem that osgviewerMFC doesn't work well with the StatsHandler. When the 's' key is pressed, the rendering window will be halted. I tried solving the problem by commenting a line in CMFC_OSG_MDIView::OnKeyDown() and it seems to work now. Robert Osfield 2011-09-12 10:47:59 +00:00
  • c8de3b70ca Updated SO version number to 90 to allow for recent changes to the ABI, and to set the base for the 3.1.0 series. Robert Osfield 2011-09-12 10:46:42 +00:00
  • 94777c4ef5 From Sukender, "I added private constructors to osg::ValueObject & TemplatedValueObject, to avoid allocation on the stack and ugly things like: TemplatedValueObject<int> value(....); container->addUserObject(value);" Robert Osfield 2011-09-12 10:43:24 +00:00
  • 83524f958e Added handling the ShadowSettings::LightNum for selecting which light to use. Robert Osfield 2011-09-07 20:05:25 +00:00
  • b2fd8f4059 Added handling of the case when RenderLeaf::_modelview matrix is NULL, such as when LightPointNode is used in the scene graph. Robert Osfield 2011-09-07 16:26:57 +00:00
  • 3a79bc343d Moved ViewDependetShadowMap parameter settings into a dedicated ShadowSettings object in prep for making it possible to scale the API to handle multiple lights and multiple shadow maps per light. Robert Osfield 2011-09-07 15:55:54 +00:00
  • 772c7d75c5 Added setting of the shadow map Camera's name to "ShadowCamera" to improve integration with osgOcean. Robert Osfield 2011-09-06 17:26:27 +00:00
  • f26ef2d9e0 Added optimization of the mutliple cessna shadow model to address peformance issues when rendering 100 cessna's. Robert Osfield 2011-09-06 14:13:13 +00:00
  • f95f43dbc6 Added -5 model option using Wang Rui's test demo as a base Robert Osfield 2011-09-06 11:42:54 +00:00
  • ecbca83c01 Fixed the heights of the trees and houses Robert Osfield 2011-09-06 11:11:38 +00:00
  • f83722d62b Added s/getPerspectiveShadowMapCutOffAngle() and use of this when setting up light space to avoid sigularaties when the light and view directions are co-incident. Robert Osfield 2011-09-06 10:12:45 +00:00
  • 15ad6eda63 Added support for setting whether ViewDependentShadowMap should provide it's own vertex and fragment shaders. Robert Osfield 2011-09-05 12:36:47 +00:00
  • 454ccad3b9 Replaced use of ShapeDrawable with osgTerrain for the terrain tile Robert Osfield 2011-09-05 12:27:20 +00:00
  • 52c2bc3ff5 Added s/getTextureSize() method for setting the shadow map texture size. Robert Osfield 2011-09-02 10:16:16 +00:00
  • f476406ae1 Disabled the use of the ReceivesShadowTraversalMask() mask Robert Osfield 2011-09-02 07:46:08 +00:00
  • ec3b2ba2d3 Added test line for COMPUTE_NEAR_USING_PRIMITIVES Robert Osfield 2011-09-01 18:49:33 +00:00
  • 1fd3c84287 Added fine grained computation of the far plane when using the COMPUTE_NEAR_FAR_USING_PRIMITIVES ComputeNearFarMode. Added COMPUTE_NEAR_FAR_USING_PRIMITIVES option that provides the original functionality where only the near plane is computed in a fine grained way, with the far plane being computed simply from bound volumes. Robert Osfield 2011-09-01 18:48:21 +00:00