Commit Graph

758 Commits

Author SHA1 Message Date
Robert Osfield
b81cea3963 Added missing include <osg/TexEnv> 2006-08-02 21:04:29 +00:00
Robert Osfield
41a4aa1548 Added viewer.cleanup_frame() to all examples. 2006-08-02 19:55:03 +00:00
Robert Osfield
9f15e25451 Added cleanup_frame to prevent crashes on exit. 2006-08-02 16:12:46 +00:00
Robert Osfield
7d4eb93847 Changed the viewer.setUpViewer(..) from default to just ESCAPE_SETS_DONE. 2006-08-01 10:27:11 +00:00
Robert Osfield
564ee34f76 Added Matrix*::getRotate()/setRotate(Quat), deprecating Matrix*::get(Quat&), Matrix*::set(Quat&) 2006-07-31 17:31:21 +00:00
Robert Osfield
f977d7c606 Updated osgunittests with a matrix invert unit test, and added a conditional
calling of invert_4x4 or invert_4x3 depending on the the right hand column of the matrix.

Updated wrappers
2006-07-28 13:48:08 +00:00
Robert Osfield
032bba78fa From J.P. Delport, added units tests to pick up on erroneous Matrix::get(Quat&) computation. 2006-07-27 11:13:56 +00:00
Robert Osfield
9b0b98200f Force SingelThreaded usage due to use of osgParticle. 2006-07-25 20:43:57 +00:00
Robert Osfield
b03a772846 Added mutexes to RealizeCallbaks 2006-07-19 13:02:35 +00:00
Robert Osfield
4bb4add9b3 Added scene handler init to custom realize callback 2006-07-19 12:58:45 +00:00
Robert Osfield
f1c2694c17 Updated copyright years. 2006-07-18 15:21:48 +00:00
Robert Osfield
56fce04cb4 Added additional command line docs 2006-07-18 15:11:41 +00:00
Robert Osfield
dcdc2d492d Updated commandline docs 2006-07-18 13:37:42 +00:00
Robert Osfield
419e185895 From Eric Wing, add alternate backdrop implementations.
From Robert Osfield, updated naming  and copy constructor methods.
2006-07-18 12:24:04 +00:00
Robert Osfield
618e63a267 Removed the default loading of bluemarble.ive 2006-07-14 14:04:54 +00:00
Robert Osfield
822ef01531 Added mutex to the test context. 2006-07-05 13:31:38 +00:00
Robert Osfield
b871ae5cf7 Added vertex program hack to get round apparent NVidia bug when handling
vertex texture read.
2006-07-05 13:18:00 +00:00
Robert Osfield
b6b9e4bc7e fixed warning and add a few extra tests 2006-07-04 09:46:41 +00:00
Robert Osfield
c986f6ea41 Added a performace test section to osgunitests, currently just does basic C/C++ tests. 2006-07-03 13:53:39 +00:00
Robert Osfield
2cf8fd8f42 Added a setRadius into the screen space LOD. 2006-06-28 10:00:54 +00:00
Robert Osfield
bc9c949d53 From Eric Wing, added support for outline/shadow and colour gradient effects. 2006-06-27 12:05:40 +00:00
Robert Osfield
240fc9ebee Replaced ref_ptr<>:take with ref_ptr<>:release, and added handling of removeal
of ref_ptr<> operator >.
2006-06-26 20:45:51 +00:00
Robert Osfield
8d111fd147 Added pick handler. 2006-06-12 14:04:40 +00:00
Robert Osfield
ac20eca87a Revamped osgkeyboardmouse to use the osgGA. 2006-06-12 11:32:11 +00:00
Robert Osfield
2e2684c05a From Paul Martz, added support to textured light points into osgSim and OpenFlight loader, as part of the OpenFlight v16.0 spec. 2006-06-08 14:32:02 +00:00
Robert Osfield
ecd5a96671 From Mike Weiblen, reverted shaders changes due to lack of hardware/driver support 2006-06-08 12:07:11 +00:00
Robert Osfield
efeeabbef9 added SphereSegment test code segment, commented out at pressent. 2006-06-08 11:18:27 +00:00
Robert Osfield
5670ce8c0a Added extra SphereSegment intersection tests. 2006-06-05 16:25:01 +00:00
Robert Osfield
bf065ed3a4 From Mike Weiblen, support GLSL uniform arrays. A couple of tweaks and fixes from Robert Osfield. 2006-05-15 15:46:08 +00:00
Robert Osfield
d7fdaecfa0 From Adrian Egli, added std::ifstream::binary qualifier to ifstream usage. 2006-05-15 11:38:56 +00:00
Robert Osfield
43f0efd6d2 Reorganised the Group::removeChild and Geode::removeDrawable methods so
that removeChild(Node*), removeChild(uint) and equivilant Geode methods are
now inline methods, not designed to be overriden, and seperated out the
multiple remove method to be called removeChildren(uint, uint) which is
now the only virtual method.  There removeChildren is now the method to
override in subclasses.

This reorganisation requires some call code to be rename removeChild usage
to removeChildren.
2006-05-02 09:45:31 +00:00
Robert Osfield
475f526b3d Added UseFarLineSegments option 2006-04-25 12:56:33 +00:00
Robert Osfield
039457700d Implemented seemless update of precipitation properties. 2006-04-25 12:39:00 +00:00
Robert Osfield
10f2feeac5 Moved PrecipitationParameters directly into PrecipitationEffect. 2006-04-24 16:21:10 +00:00
Robert Osfield
49a5ef9ee1 Added support for wind. 2006-04-24 06:36:26 +00:00
Robert Osfield
e8fa0433b3 Moved PrecipitationEffect node into osgParticle. 2006-04-22 15:08:07 +00:00
Robert Osfield
1cf1710f92 Moved PrecipitationDrawable into PrecipitationEffect. 2006-04-22 06:33:01 +00:00
Robert Osfield
c144977b6e Added new precipitation nodes. 2006-04-21 19:39:05 +00:00
Robert Osfield
a00455b4ff Convertered shaders across to using modelview matrix instead of uniforms. 2006-04-19 13:04:21 +00:00
Robert Osfield
832c22fe9e Standardised the bin number of the particle effects 2006-04-17 19:10:06 +00:00
Robert Osfield
453243ed8c Added inline shaders so that the tha example can be run from any directory. 2006-04-14 16:44:12 +00:00
Robert Osfield
6f20b47c23 Further tweaks to settings to improve performance at mid intensity ranges 2006-04-14 15:03:36 +00:00
Robert Osfield
839fb12098 Refined the default settings for rain and snow to achieve better framerates. 2006-04-14 14:24:12 +00:00
Robert Osfield
fd838f5787 Added fog parameters settings. 2006-04-14 11:04:11 +00:00
Robert Osfield
f1b52fbd0a Added --numberOfParticles, --numberOfCellsX, --numberOfCellsY, --numberOfCellsZ, --boundingBox, --fogEnd and --fogDensity controls 2006-04-13 20:21:55 +00:00
Robert Osfield
264ae12770 Added command line options and various speed improvements. 2006-04-13 19:05:26 +00:00
Robert Osfield
7747971b6a Implement positioning of cells via vertex attribute. 2006-04-12 11:59:07 +00:00
Robert Osfield
19a1d83f33 Moved common uniforms to top of precipitation subgraph.
Added a run of the SpatializeGroupVisitor to create a balanced subgraph.

Changed the quad to particle transistion distance from 100 to 50m.
2006-04-12 09:42:25 +00:00
Robert Osfield
3be10b5a2a Added support for LOD's with transistion between quads and point rendering. 2006-04-11 19:56:53 +00:00
Robert Osfield
9faf5f9496 Added support for point sprite particle effects. 2006-04-11 13:22:59 +00:00
Robert Osfield
e15c67b9cd Added point and line paths. 2006-04-11 10:53:46 +00:00
Robert Osfield
abfda5e38a Added mipmap generation. 2006-04-07 19:54:44 +00:00
Robert Osfield
5335b45146 Added quad based rain effect 2006-04-07 18:24:52 +00:00
Robert Osfield
051f2a5eb9 Added beginings osgprecipitation example. 2006-04-05 15:13:17 +00:00
Robert Osfield
1c2deb253a Build fixes to cope with changes to Producer/osgProducer. 2006-03-30 10:20:11 +00:00
Robert Osfield
f17faa80b3 From Keith Steffen, changed instance of sun to sun_geode to avoid Solaris10 build issue with it defining "sun"?#! 2006-03-17 22:22:57 +00:00
Robert Osfield
5fe7595478 Added moving sphere segment intersections. 2006-03-15 12:26:10 +00:00
Robert Osfield
dbbabf87c6 Converted osgGA::GUIEventAdapter into a concrete class capable of respresenting
keyboard and mouse events.

Added osgGA::EventQueue class to support a thread safe event queue and adaption
of keyboard and mouse events.

Removed osgProducer::EventAdapter as GUIEventAdapter replaces it.

Adapted osgProducer and examples to work with the new changes to osgGA.
2006-03-08 14:09:47 +00:00
Robert Osfield
71b7a6be7b Compile fix. 2006-02-28 20:10:25 +00:00
Robert Osfield
93f514109f Further clean up of RefNodePath references. 2006-02-28 19:36:18 +00:00
Robert Osfield
a028f59ea0 Added debugging code to help pick out instablilities in osgParticle. Debugging
code now commented out.
2006-02-24 13:57:47 +00:00
Robert Osfield
943be478f4 Fixed function name call. 2006-02-23 12:39:31 +00:00
Robert Osfield
7d5c81bf5e From Ulrich Hertlein, spelling corrections and a few Doxgen comments. 2006-02-20 21:05:23 +00:00
Robert Osfield
3936bcde9e Added support for up sampling by dividing longest edges. 2006-02-06 17:12:35 +00:00
Robert Osfield
e4e95a1d60 Added support for tracking mouse movement and computing the intersection of the mouse position
into texture coords.
2006-01-12 22:43:36 +00:00
Robert Osfield
3235f4fa22 Added ability to write out the selected parts of the scene graph. 2006-01-03 16:52:06 +00:00
Robert Osfield
6fe4be23e6 Ported picking across to using PickVisitor. 2005-12-23 10:59:31 +00:00
Robert Osfield
061976f4d4 Fixed typo in text string. 2005-12-16 14:53:51 +00:00
Robert Osfield
c41d027e6b Fixed the text to match the implementation. 2005-12-09 19:54:31 +00:00
Robert Osfield
be850746e4 From Eric Wing, fixed typo induced bug. 2005-12-07 11:38:39 +00:00
Robert Osfield
2d14519946 Enabled thread safe counting by default. 2005-12-07 09:48:28 +00:00
Robert Osfield
a865ea7773 Removed osgdemeter example from distribution because it no longer compiles,
and Demeter itself nolonger compiles, osgdemeter has now been moved to the community
section of openscenegraph.org.
2005-12-06 12:07:34 +00:00
Robert Osfield
e1454d22a7 Attempt at build fixes for IRIX. 2005-12-05 10:24:02 +00:00
Robert Osfield
edf4598838 From Geoff Michel, Fix to prevent Producer::Trackball being set up with a negative
radius.
2005-12-05 10:08:52 +00:00
Robert Osfield
b1f9e1dfd7 Added comments. 2005-12-01 16:43:40 +00:00
Robert Osfield
1c9f1b8eb1 Added TestSupportCallback to properly handle querry of OpenGL support of
vertex texturing in GLSL.
2005-12-01 14:09:38 +00:00
Robert Osfield
2ce7718a66 From Eric Wing, fixes for "warning: converting of negative value '-0x00000000000000001' to 'unsigned int'" 2005-11-29 11:39:07 +00:00
Robert Osfield
caaecc9f2a Switched off the VBO usage in osgparametric as it was tripping up ATI and 3DLabs drivers. 2005-11-29 08:59:30 +00:00
Robert Osfield
0514427c0a Fixed warning. 2005-11-28 10:58:09 +00:00
Robert Osfield
81435a28b9 From Gideon May, port to OSX of GLUT examples. 2005-11-28 09:15:46 +00:00
Robert Osfield
3881a55564 From Geoff Michel, fix for the scaling of the random number generation. 2005-11-27 15:32:57 +00:00
Robert Osfield
0663c3b653 From John Donovan, typo fixes. 2005-11-25 19:18:12 +00:00
Robert Osfield
13cd57eafc Lightened by the ambientBias term. 2005-11-24 19:53:20 +00:00
Robert Osfield
b5a5cd7901 Changed the default value of Texture::_resizeNonPowerOfTwoHint to true, to
improve the backwards compatibility of peformance on systems that have OpenGL2.0
drivers but without hardware that can't handle non power of two textures.
2005-11-24 10:28:09 +00:00
Robert Osfield
b4fb878e1e Fixed mistmatch of ReadFileCallback type. 2005-11-23 12:16:22 +00:00
Robert Osfield
91855e7c50 Replaced tabs with spaces in examples. 2005-11-17 20:22:55 +00:00
Robert Osfield
74f90ed9a4 From Mike Weiblen, "fix for another one of those GLSL syntax errors that slip thru the nvidia compiler.
gl_TexCoord[] is an array of vec4, and must be reduced to a vec2 for use with texture2D()"
2005-11-17 11:22:09 +00:00
Robert Osfield
d91f2c631d Improved handling of core OSG being compile with float Matrices. 2005-11-17 09:57:40 +00:00
Robert Osfield
6bedddf146 Ran dos2unix on makefile. 2005-11-16 20:27:28 +00:00
Robert Osfield
10b5d505a2 From Joakim Simonsson/Robert Osfield. Fixed line endings. 2005-11-15 22:18:29 +00:00
Robert Osfield
4eb5b0d715 Added proper descriptions of examples in place of the copy and paste description. 2005-11-15 22:07:54 +00:00
Robert Osfield
dd622d7a9a From Mike Weiblen, switched off lighting of points to make them clearer 2005-11-15 08:56:05 +00:00
Robert Osfield
91f5b9b04e Fixes for VS6.0 build. 2005-11-11 12:45:59 +00:00
Robert Osfield
6fb7ff83d7 Fixes for VS6.0 2005-11-10 20:04:16 +00:00
Robert Osfield
435e4b828c Fixes for dumb VS6.0 compiler 2005-11-10 19:32:37 +00:00
Robert Osfield
06117353df Fixes for VS6.0 2005-11-10 19:16:01 +00:00
Robert Osfield
cee8424c0f Compile fixes for VS6.0. 2005-11-10 17:24:41 +00:00
Robert Osfield
c2f1527fe0 Added better control for cancel GraphicsThreads. 2005-11-10 15:25:06 +00:00
Robert Osfield
20d9c3c3c4 Compile fixes for VS7.1 2005-11-10 09:42:34 +00:00
Robert Osfield
2bd868cd1c Added release and flush of OpenGL objects after build of the terrain database to prevent
the build graphics context state leaking into the viewers graphics context set.
2005-11-09 20:26:34 +00:00