Commit Graph

4537 Commits

Author SHA1 Message Date
Robert Osfield
7cb6bbdfea Added GLSL shader pathway into osgforest. 2005-08-09 09:11:15 +00:00
Robert Osfield
3af2fc76dc Added setting up of Producer::VisualChooser. 2005-08-06 19:19:15 +00:00
Robert Osfield
921148f664 Change the frame reference time so that it uses the same time as the
KeyboardMouseCallback.
2005-08-06 19:18:53 +00:00
Robert Osfield
64fbb477fe Set the double buffer off when setting up pbuffers. 2005-08-06 19:16:53 +00:00
Robert Osfield
81dab87154 Added blend shadow fragment shader 2005-08-06 04:33:56 +00:00
Robert Osfield
e534e4d1ed Added setStateSet(0) to destructors to force the problem clean up of attached
StateSets.
2005-07-30 18:44:18 +00:00
Robert Osfield
098fafc198 From Pavel Moloshtan, setting of the cull traversal mask which visiting camera
subgraphs.  (with small tweak from Robert Osfield to remove compile warnings.)
2005-07-27 13:38:15 +00:00
Robert Osfield
4e69d46289 Further work on trying to get glGenerateMipMapEXT working in conjunction with
frame buffer objects.  Still don't work under Linux yet through :-|
2005-07-27 11:27:44 +00:00
Robert Osfield
72a59527f5 From Marco Jez, added setEventHandled() and getEventHandled() to osgGA::EventVisitor. 2005-07-27 09:37:26 +00:00
Robert Osfield
b9a74c87e1 From Jeremy Bell,
"My patch is a slight refactoring of the mac specific code in
Registry.cpp and FileUtils.cpp, specifically around the library and
resource file path initilialization methods. This patch cleans up a
lot of the mac specific code by moving repeated code into separate
local functions in FileUtils.cpp that are only compiled on mac builds.
It also adds one function to the API,
appendPlatformSpecificResourceFilePaths in FileUtils. This function
will mirror the already existing
appendPlatformSpecificLibraryFilePaths except for resource file paths.
Currently this function is empty except when built on the mac, in
which case it will add the application bundle's internal Resources
folder and the bundle's parent folder. Previously this code was
implemented as a separate mac specific #ifdef block in Registry.cpp
around the initDataFilePathList method. However, it now is implemented
in appendPlatformSpecificResourceFilePaths in FileUtils.cpp and the
initDataFilePathList method is now the same on all platforms. This
patch should behave the same as before on non-mac platforms.

This patch already includes the fix that Eric mentioned earlier. This
patch is based off of the 0.99 release code. I have tested this patch
using the following testing scheme:

Make a proper bundled application.
While Run from the Finder:
   Test that it finds plugins in its internal plugins path.
   Test that it finds resources in its internal resources path.
   Test that it finds resources in the bundle's parent directory
   Test that it finds plugins in the user's Application Support Directory
   Test that it finds plugins in the system's Application Support Directory
   Test that it finds plugins in the Network Application Support Directory
   Check the plugin and resource path lists after they have been
initialized to see if they are in the correct order

While Run from the command line (both from it's parent directory and
from inside the /Contents/MacOS directory) and repeat the above tests.
Check that it also finds plugins and resources within the paths
defined by various environment variables.

Now, Make an application that is NOT bundled/command line only
   Test that it does NOT try to look in an internal bundle
plugin/resource directory for plugins or resources.
   Test that it finds plugins/resources in the paths defined by the
environment variables.
"
2005-07-26 21:07:31 +00:00
Robert Osfield
07af23e280 From Eric Wing, fix to be able to handle "spacial" characters under OSX. 2005-07-26 20:31:43 +00:00
Robert Osfield
83da1b0894 From Brede Johansen, fix to the isImageTranslucent() method. 2005-07-26 16:05:42 +00:00
Robert Osfield
eca7fc210a From Fabio Mierlo, removed cast from float to RGB8, to allow native float imagery
to be correctly importated from HDR files.

From Robert Osfield, tweaked the above to allow the original casting to RGB8 as an
options switched on by a osgDB::ReaderWriter::Options string with a value of "RGB8".
2005-07-26 15:49:19 +00:00
Robert Osfield
bddaefd569 Perliminary support for glGenerateMinMapEXT. 2005-07-25 16:12:24 +00:00
Robert Osfield
384830d37e Added handling of automatic setting up of the contextID. 2005-07-25 14:28:22 +00:00
Robert Osfield
3c23a42f17 Added support for TextureCubeMap into osgUtil::RenderToTextureStage. 2005-07-25 13:05:57 +00:00
Robert Osfield
ee8f7bb756 Added post draw callback to osg::CameraNode/osgUtil::RenderToTextureStage.
Added support for Texture1D, 2D, 3D and TextureRectangle into osgUtil::RenderToTextureStage.
2005-07-24 20:31:21 +00:00
Robert Osfield
42e4488454 Port Impostor across to use the new osg::CameraNode. 2005-07-24 11:06:39 +00:00
Robert Osfield
d8a5c2e7ac Updated wrappers. 2005-07-23 19:08:02 +00:00
Robert Osfield
c210dd2db9 Added osg::CameraNode to ImpostorSprite in prep for moving across to using
camera node in pre rendering of impostors.
2005-07-23 19:05:42 +00:00
Robert Osfield
06d3d869f3 Attached ImpostorSpriteManager to the CullVisitor. 2005-07-23 15:21:18 +00:00
Robert Osfield
69efae505b Renabled impostor support using old style RenderToTextureStage setup. 2005-07-22 16:25:38 +00:00
Robert Osfield
47651d3c8d Added glSissor suppor via new osg::Scissor class.
Added .osg support for osg::Scissor.
Added .ive support for osg::Viewport and osg::Scissor.
2005-07-22 09:31:19 +00:00
Robert Osfield
37b4df3f71 Added missing typedef 2005-07-22 08:21:17 +00:00
Robert Osfield
3c12f5ccce Fixed compile error. 2005-07-21 20:45:16 +00:00
Robert Osfield
9b34bc5c86 Added GraphicsContextImplementation 2005-07-21 19:37:44 +00:00
Robert Osfield
302c58fc93 Implemented the beginings of the osgProducer::GraphicsContexImplementation.
Added options into osgprerender for controlling how to do the pre rendering i.e.
--fbo, --pbuffer, --fb --window, and also added the option for controlling the
window size with --width and --height.
2005-07-21 19:27:19 +00:00
Robert Osfield
7776924407 Checked in graphics context. 2005-07-21 08:43:24 +00:00
Robert Osfield
1e9fb4ab03 From Marco Jez (with tweaks by Robert Osfield) : clean up of inheritance from std::vector<> classes 2005-07-20 19:42:59 +00:00
Robert Osfield
b9e651baf1 Added new osg::GraphicsContext base class 2005-07-20 15:55:07 +00:00
Robert Osfield
9120a0ca2c Removed osgIntrospection wrappers 2005-07-20 14:31:54 +00:00
Robert Osfield
6b873f33f5 Updated wrappers 2005-07-20 08:03:37 +00:00
Robert Osfield
6778bc3981 Added wrapper projects and updates of autogenerated wrappers. 2005-07-19 20:40:29 +00:00
Robert Osfield
7b23cf930e Added support for multiple colour buffers into osg::CameraNode/osgUtil::CullVisitor 2005-07-19 20:01:00 +00:00
Robert Osfield
8dd013171c Ported all the render to texture examples across to using the new osg::CameraNode.
Added support for texture cube maps in FBO + CameraNode.
2005-07-19 16:30:55 +00:00
Robert Osfield
5c9bd792a3 Updated wrappers 2005-07-15 21:47:11 +00:00
Robert Osfield
71a7078d79 Added return 1. 2005-07-15 19:24:46 +00:00
Robert Osfield
ac460a2dfb Added .osg suppot for new alignment modes 2005-07-15 16:26:45 +00:00
Robert Osfield
1c88914e5f From Yuri Vilmanis, improved multi-line justifaction support and new alignment modes 2005-07-15 16:22:53 +00:00
Robert Osfield
d35ea68f3e Renamed Byte2,3,4 and Short2,3,4 and UByte4 to use the Vec*b, Vec*s and Vec4ub form 2005-07-15 14:41:19 +00:00
Robert Osfield
0c7f228224 From Brede Johansen, fixed range check 2005-07-15 10:48:23 +00:00
Robert Osfield
70647b8801 Fixed bug in ProxyNode write out where non existant children were written out. 2005-07-15 09:56:36 +00:00
Robert Osfield
cfac4c74bc Added reference frame to TexGenNode 2005-07-15 08:32:36 +00:00
Robert Osfield
ec5463c10d Cleaned up osghud and osgprerender examples 2005-07-15 08:31:02 +00:00
Robert Osfield
247327ef31 Updates 2005-07-14 21:04:40 +00:00
Robert Osfield
0e4b263ddb Fix PagedLOD::addChild(,,) so that they allocate the correct size of range data. 2005-07-14 20:32:25 +00:00
Robert Osfield
0956674292 Added back in the call to drawPreRenderStages() as this shouldn't interfere
with the stereo code in SceneView as RenderStage should automatically only
allow themselves to be draw on per frame.
2005-07-14 13:21:11 +00:00
Robert Osfield
aece690d8e Removed the set culling active flag setting 2005-07-14 10:34:46 +00:00
Robert Osfield
53347812cb From Mike Weiblen, addiding of Program::validateProgram and osg::isNotifyEnabled() method 2005-07-14 10:27:00 +00:00
Robert Osfield
d4a8bc0f03 Changed osgpagedlod example to convert LOD nodes into PagedLOD ones. 2005-07-14 10:18:05 +00:00