Commit Graph

3175 Commits

Author SHA1 Message Date
Robert Osfield
f4dd930376 From Gordon Tomlinson:
"
This fixes some crashing issues I was having with certain FLT files that only had partial colour palettes

Which are typically found in older 14.x files and file converted through Polytrans or Deep exploration etc.

The code that grabs the color entries in ConvertFromFLT::visitColorPalette was assuming that there were full
palettes always coming in and stepping was out of bounds in certain cases (not all) and thus crashing with
access  violations etc,

Although the normal from Creator is to have 1024 or 512 entries , this is not a  really requirement of the format,  just the way Creator creates its default palettes etc.

Code changed to look at the number of entries and use just those and fills in any missing entries with a default white colour"
2005-08-24 11:53:13 +00:00
Robert Osfield
e7c6a03bb2 From Farshid Lashari, added support for reading from std::istream's to the BMP, GIF, PNG and TGA image plugins 2005-08-24 10:48:24 +00:00
Robert Osfield
3ac94784fc From Geoff Michel, added normal definition for tesselation 2005-08-22 15:13:04 +00:00
Robert Osfield
6e167c0db7 From Carlo Camporesi, fixed .ive handling of character height and aspect ratio. 2005-08-22 14:13:28 +00:00
Robert Osfield
c0d6126313 From Domenico Mangieri, addded some missing const qualifiers in osgUtil::SceneView. 2005-08-22 13:58:23 +00:00
Robert Osfield
8e3f4e4890 From Fabio Mierlo,
"I add a new option in the HDR Reader.

The RAW option store the RGBE values into a Image, to use
this option you need to decode the RGBE value in the frag-
ment shader. Follow the cube map glsl decoder:

vec4 textureCubeRGBE( uniform samplerCube sampler, vec3 coords )
{
   ivec4 rgbe = textureCube( sampler, coords ) * 255. + 0.5;
   float e = rgbe.a - ( 128 + 8 );
   return vec4( rgbe.rgb * exp2( e ), 1.0 );
}

This option is usefull for who have a outdate hardware like
FX cards and want to do cool things.

Finally this patch is need by a new HDR Rendering example
that I will put on the Wiki."
2005-08-22 13:54:43 +00:00
Robert Osfield
9394e224f4 Tweaked flight manipulator pitch sensitivity. 2005-08-22 13:03:23 +00:00
Robert Osfield
ac07e07705 Further work on GraphicsContext/GraphicsThread 2005-08-20 08:59:03 +00:00
Robert Osfield
f07b24e56b From Joseph Winston, removed #include <osgUtil/RenderToTexture> 2005-08-20 08:20:26 +00:00
Robert Osfield
356f1ccfaf Added GraphicsThread class 2005-08-18 20:35:19 +00:00
Robert Osfield
51faa7e43a Various updates to support the new GraphicsThread class. 2005-08-18 20:17:51 +00:00
Robert Osfield
84618ffcb3 Merged RenderToTextureStage functionality into RenderStage 2005-08-17 10:12:49 +00:00
Robert Osfield
4745e2b79b Fix compile under x64_32. 2005-08-17 08:50:17 +00:00
Robert Osfield
b04e09c8b8 Disabled assembly code for x64_64 paths. 2005-08-17 07:27:51 +00:00
Robert Osfield
e8fc5248fa Added realize() and isRealized() methods to osg::GraphicsContext.
Added osgcamera example that uses osg::GraphicsContext to create the required
window for rendering too, will eventually use osg::CameraNode to replace usage
of osgUtil::SceneView.
2005-08-16 13:29:07 +00:00
Robert Osfield
d48841f09b Fixed indenting and typo 2005-08-09 10:47:21 +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
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
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
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
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
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
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
638c928e30 From Paul Martz, fix to memory leak of StateSet's 2005-07-09 09:56:49 +00:00
Robert Osfield
fafbb43bf9 From Jason Beverage, fix to setting of grey band. 2005-07-08 19:45:18 +00:00
Robert Osfield
99279fbf61 From Marco Jez, added missing method implementations to CameraNode and
added check to ensure FBO extension is support to RenderToTextureStage.
2005-07-08 14:46:13 +00:00
Robert Osfield
0d8e38f9ee Tweaks for better OSX paging support, 6 and 9 keys for control drive manipulator
up and down looking, and removed redundent API from osg::Geometry.
2005-07-07 14:14:38 +00:00
Robert Osfield
facb0e2638 From Pavel Moloshtan, Byte2,3,4 and Short2,3,4 classes and their Array counterparts.
With a few build tweaks and bug fixes by Robert Osfield.
2005-07-05 15:57:53 +00:00
Robert Osfield
ba5f3ce99a Changed notice to be an info message 2005-07-03 19:58:21 +00:00
Robert Osfield
72488d274f Added support for equalizing the normals along tile boundaries. 2005-07-02 08:11:55 +00:00
Robert Osfield
1c8aca5a00 Added smoothing and tri strip pass. 2005-06-29 15:52:01 +00:00
Robert Osfield
cefa62097f Added support nesting the parameter specification within a [x,y,z] block and
float parameters
2005-06-29 10:23:34 +00:00
Robert Osfield
b6e2653d4f From Colin McDonald, build fix for Solaris 2005-06-29 10:21:49 +00:00
Robert Osfield
4e0a5e5069 Added missing dirtyBound(). 2005-06-27 08:54:43 +00:00
Robert Osfield
042ca70866 From David Spilling, fixed the incircle test so it handles colinear points. 2005-06-24 20:19:12 +00:00
Robert Osfield
57eb631654 From Colin McDonald,
"On fixing the pointer access I discovered that reading osga archives
    containing ive files went into a cpu loop.  This turned out to be a
    problem with proxy_streambuf on Solaris.  Public methods in the Solaris
    streambuf standard library implementation rely on the gptr() being set,
    which proxy_streambuf was not doing.  So I have modified
    proxy_streambuf to set the input sequence pointers, and have also
    aligned it more with the standard library streambuf implementation
    where all input is through underflow(), not uflow() which merely calls
    underflow() and advances the pointer."

From Robert Osfield, change from using pointer cast and assignment to using
    a templated _write and _read method to avoid pointer aliasing to 2/4/8
    byte boundaries that some computer system may produce.  These changes
    where inspried by Colin McDonalds change to using memcpy, these
    changes weren't merged as memcpy is not as clear in naming as _read,
    _write and memcpy will incurr a function call just for copy a
    uint.
2005-06-24 19:50:14 +00:00
Robert Osfield
e8cc8f06c5 From Martijn Kragtwijk: "I ran into the same problems as Karl Martensson
(http://openscenegraph.org/archiver/osg-users/2005-June/0575.html);
after switching children of a Switch node off and on again, they become
unpickable. This issue occurs first in 0.9.9, with 0.9.8 everything is fine.
My fix involves calling dirtyBound() every time the on/off-values of the
Switch are changed"
2005-06-24 15:34:46 +00:00
Robert Osfield
bad47e0fe0 From David Guthrie, "The call NSLookupAndBindSymbol was changed to
NSLookupSymbolInModule.  The former call would lookup the named
symbol NOT in the current dynamic library, but in the entire running
program while the call NSLookupSymbolInModule, takes the handle to
the library the symbol should be found in.  This means the current
code will fail if one loads multiple bundles at runtime and attempts
to load the same named symbol from each one."
2005-06-24 15:30:11 +00:00
Robert Osfield
914b16c9e9 Moved the working createPagedLODScene() implemention into createScene()
method replacing the original flaky code.
2005-06-24 15:15:55 +00:00
Robert Osfield
3baa8cdad2 Disabled NPO2T on GeforceFX. 2005-06-22 11:02:37 +00:00
Robert Osfield
7453711267 From Mike Weiblen,
" - adjustments to improve namespacing on VS
  - clarify compilation status message"
2005-06-20 10:36:06 +00:00
Robert Osfield
c5cad6982e Further FBO support work. 2005-06-16 14:01:38 +00:00
Robert Osfield
1641cd7b54 From Pavel Moloshtan, added support of Drawable::Extensions::glDeleteQueries() 2005-06-16 13:53:52 +00:00
Robert Osfield
3a0b742461 Added copyright notices. 2005-06-16 11:45:50 +00:00
Robert Osfield
d702fed0ef Moved FBO support from osgfbo example into core osg. 2005-06-16 11:42:59 +00:00
Robert Osfield
77a4cef9d6 Futher work on FBO support 2005-06-15 20:06:10 +00:00
Robert Osfield
bc76fbf60d Added automatic creation of texture when size is set but not osg::Image is assigned.
This is useful for FBO usage.
2005-06-15 20:05:47 +00:00
Robert Osfield
92087ee5ac From David Guthrie, " In the constructor
in removes any options beginning with "-psn" from argv on OSX by
calling the "remove" method.  When a .app run is created in OSX,
which is required to get a fully functioning UI application, the OSX
finder passes a -psn_XXXX option to the application where the XXXX
refers to a unique process number.  An example option would be "-
psn_0_37617665".  The argument parser was choking on this option in
all the osg example applications."
2005-06-15 11:49:25 +00:00
Robert Osfield
dfaed083ea Added osgmultiplecameras example and support for pre/post multiplaction. 2005-06-15 10:59:10 +00:00
Robert Osfield
71122ff38f Work on the RenderToTexture usage of the new osg::CameraNode. Both osghud
and osgprerender now ported across to osg::CameraNode.
2005-06-14 20:51:35 +00:00
Robert Osfield
868d381528 Added osg::CameraNode. 2005-06-14 13:16:58 +00:00
Robert Osfield
4fb9039d0c Fixed position of glBindBuffer. 2005-06-14 08:48:48 +00:00
Robert Osfield
486f5c1a30 Fixed with the reprojection so that it doesn't promote all source data to
RGBA, but only does this for RGB data.
2005-06-13 20:03:26 +00:00
Robert Osfield
80a99a2559 From Ken Sewell, fixed for x86_64 build. 2005-06-13 11:14:42 +00:00
Robert Osfield
38528c4952 Updated wrappers. 2005-06-08 13:20:09 +00:00
Robert Osfield
27c4c6a956 Moved the set/getName() support from osg::Node etc into the osg::Obejct
base class
2005-06-08 13:16:19 +00:00
Robert Osfield
e0cf176590 From Mike Weiblen, added GLSL datatypes mat2 and mat3 to osg::Uniform, with .osg and .ive support 2005-06-08 10:36:56 +00:00
Robert Osfield
f87d09b64d From Mike Weiblen, "modified .rot pseudoloader plugin so rotation order actually matches the embedded documentation" 2005-06-08 08:33:59 +00:00
Robert Osfield
6fc00a2613 From Mathia Walker: bug fix to LOD ranges in TXP plugin to avoid cracks:
"I took a closer look at the conditional code in
SeamFinder::seamReplacement().

Because _info.minRange is a double and lod->getMinRange(0) is a float,
the difference will be calculated with double precision. If
_info.minRange is cast as a float it is exactly the same value as
lod->getMinRange(0) and the difference is exactly zero.

So if you change


 if((fabs(_info.minRange-lod->getMinRange(0))<0.001)&&(fabs(_info.lod0Range-lod->getMaxRange(0))<0.001))

to


 if((fabs((float)_info.minRange-lod->getMinRange(0))<0.001)&&(fabs((float)_info.lod0Range-lod->getMaxRange(0))<0.001))

it works a lot better."
2005-06-06 10:18:33 +00:00
Robert Osfield
a799cdca2f From Tim Daust, "I fixed the getScale functions in matrixf and
matrixd.  It was returning the values of the diagonal
of the matrix, which only returns the scale if there
is not a rotation.  I fixed this by returning the
length of the  vectors that form the basis.
  I also added a function to orthonormalize the
rotation component of the matrix. I seem to always run
into situations where non uniform (or even uniform)
scale complicate my calculations, and I thought other
members of the community could use this function as
well."
2005-05-31 06:21:16 +00:00
Robert Osfield
fee1e75fe0 Changed char* to const char* 2005-05-31 05:47:40 +00:00
Robert Osfield
4d960e9ecd From Tom Jolly, fixes to the mapping of the billboard rotate mode. 2005-05-31 05:46:41 +00:00
Robert Osfield
44b8b0177c Added ability to toggle on/off the pre compile of OpenGL objects in the
DatabasePager via the setDoPreCompile(bool) method or via the env var
OSG_DO_PRE_COMPILE=ON or OFF.
2005-05-31 05:37:13 +00:00
Robert Osfield
ac5ffa2bec Added support for reading:
OSG_MINIMUM_COMPILE_TIME_PER_FRAME <float>

and

   OSG_MAXIMUM_OBJECTS_TO_COMPILE_PER_FRAME <int>

environmental variable during the initialization of the DatabasePager
to allow apps to be tweaked for best database pager behavior.
2005-05-30 16:15:11 +00:00
Robert Osfield
55ba67ab76 From James French, fix for multiple definitionwhen compiling osg + plugins into monolithic dll. 2005-05-26 13:56:23 +00:00
Robert Osfield
6385630407 From Blake Williams, fix for VS8.0 build 2005-05-25 17:19:47 +00:00
Robert Osfield
24849f3c70 Renamed ExplosionDebriEffect to ExplosionDebrisEffect 2005-05-25 16:42:36 +00:00
Robert Osfield
2b08f729f3 Updated change log.
From Fredric Marmond, changed unsigned int to unsigned long to avoid compile errors under 64 bit compile.
2005-05-25 15:35:51 +00:00
Robert Osfield
40ef0026df Updated doxgen docs. 2005-05-25 11:45:02 +00:00
Robert Osfield
59be8c19f3 Changd unsigned int's to unsigned char* to fix gcc3.4 64 bit issues. 2005-05-25 09:50:11 +00:00
Robert Osfield
e229a8cb67 Updates to clean up wrapper generation, and to update wrappers 2005-05-24 15:34:23 +00:00
Robert Osfield
fcd2f504e6 Added check for an empty compile lists. 2005-05-24 10:46:21 +00:00
Robert Osfield
3ba6ce887b Added re-entrent mutex to serialize access to OpenFlight plugin to prevent
any multi-threaded issues.
2005-05-24 10:37:18 +00:00
Robert Osfield
00c3c5dc61 Tweaked wrappers by hand to get them to compile 2005-05-20 22:15:57 +00:00
Robert Osfield
f609185e03 Updated wrappers. 2005-05-20 21:12:57 +00:00
Robert Osfield
b23d3965df Removed long unused and out of date DX writer plugin from distribution, will now
be placed on the wiki just in case its needed.
2005-05-20 11:33:22 +00:00
Robert Osfield
f6298daae4 Added env var report. 2005-05-20 06:39:41 +00:00
Robert Osfield
276dfbd0ad Added support for setting the default render bin sort mode via the
env OSG_DEFAULT_BIN_SORT_MODE variable or via or RenderBin::setDefaultRenderBinSortMode()
method.
2005-05-19 15:17:53 +00:00
Robert Osfield
b71472e592 From Alberto Farre, added support for caching of ProxyNode children. 2005-05-19 09:22:45 +00:00
Don BURNS
702944b67a Fixed fullscreen toggle in ViewerEventHandler that assumed the first
RenderSurface was a window (not a pbuffer).
2005-05-18 21:45:30 +00:00
Robert Osfield
9e91e1e01b Updated wrappers. 2005-05-18 21:17:31 +00:00
Robert Osfield
955cc1ec2a Added s/getClearMask() support to osg::ClearNode, osgUtil::SceneView and the
.osg plugin.
2005-05-18 19:55:14 +00:00
Robert Osfield
a83f7a245d From Joakim Simonsson, DOFTransform multiplication order support added to .ive format.
With tweak from Robert Osfield to wrap new read and write with a new version number
     to allow old files contain DOFTransforms to continue to work.
2005-05-18 19:04:35 +00:00
Robert Osfield
2ad67b1727 From Joakim Simonsson:
"DOFAnimation's default state could now be controlled by the RW option.

    The option string is "dofAnimation"

    If the option string is omitted the default animation state is off."
2005-05-18 18:43:03 +00:00
Robert Osfield
51458ceea7 Fixed copy and paste mistakes in setEventCallback methods 2005-05-18 18:31:03 +00:00
Robert Osfield
4645217733 Added RADEON as render type for disabling mipmapped NPO2T 2005-05-17 20:12:13 +00:00
Robert Osfield
5947b97cde Improved the handling of data attached to proxy nodes 2005-05-17 14:25:11 +00:00
Robert Osfield
83d3f7639f Changed the default behavior to not writing out proxynode children. 2005-05-17 13:50:07 +00:00
Robert Osfield
f9bc0454f8 Improved the handling of writing out of proxy node files. 2005-05-17 13:47:13 +00:00
Robert Osfield
9c27121f77 From Daniel Sjölie, for the purpose of maintainability, made the load proxy nodes code the standard, remove the older
code that remained as part of #else #endif blocks, and remove the erroneous
implementation of caching of proxynodes.
2005-05-17 13:34:04 +00:00
Robert Osfield
895ed7916c Updated wrappers. 2005-05-17 11:11:58 +00:00
Robert Osfield
2e4b266c39 Added differentiation between Non power of two textures when mip mapped vs
when not mipped mapped to get round the issue of incomplete support under
ATI cards.
2005-05-17 11:00:13 +00:00
Robert Osfield
cc7bb579b0 From Thom DeCarlo, build fixes for Cygwin. 2005-05-17 09:06:12 +00:00
Robert Osfield
1dd553ed0e Bumped version numbers to 0.9.9 in rediness for 0.9.9 release. 2005-05-16 17:17:53 +00:00
Robert Osfield
428608e781 Warning fixes for IRIX 2005-05-16 15:51:57 +00:00
Robert Osfield
af0abf58ef Updated wrappers 2005-05-16 15:50:35 +00:00
Robert Osfield
fa0f53e2d5 Workaround for Mipspro compiler bug. 2005-05-16 14:09:39 +00:00
Robert Osfield
8a6aaba351 Updated wrappers. 2005-05-16 11:22:25 +00:00
Robert Osfield
10232cf81a Fixed method signatures. 2005-05-16 11:18:11 +00:00
Robert Osfield
74bce0e410 Updated wrappers 2005-05-16 09:41:10 +00:00
Robert Osfield
4f71be21d4 Yet another using namespace osg to try and work out the spat betwen MipsPro and VS.6.0. 2005-05-13 21:39:34 +00:00
Robert Osfield
2f91acdf98 Updated wrappers. 2005-05-13 14:36:42 +00:00
Robert Osfield
3b4636311b Moved BaseOptimizerVisitor out of Optimizer into osgUtil namespace to try and
get round MipsPro compile problems.
2005-05-13 13:29:45 +00:00
Robert Osfield
3a4b09940b Refinement of includes to help IRIX build 2005-05-13 12:06:58 +00:00
Robert Osfield
e82a63ca81 Cross platform build fixes. 2005-05-13 11:11:52 +00:00
Robert Osfield
ec2adb2477 Added #include "dxfBlock.h" 2005-05-13 09:52:17 +00:00
Robert Osfield
cb1f2f4761 Removed unused function. 2005-05-13 08:54:11 +00:00
Robert Osfield
2dc54fc61d fixed warning. 2005-05-12 20:46:12 +00:00
Robert Osfield
ec12a1091b Updated wrappers. 2005-05-12 20:06:39 +00:00
Robert Osfield
a8550e6536 Fixed pairing of write and read of Matrixd 2005-05-12 20:03:55 +00:00
Robert Osfield
a209542c60 Added missing Uniform(Matrixd) constructor implementation 2005-05-12 19:05:33 +00:00
Robert Osfield
d44977490c From Alberto Farre,
"ConvertFromFLT::addMultiTexture makes ENDIAN conversion for SMultiTexture
 struct attributes.
 When an flt object is multi-instantiated y should be done just first time,
 because SMultiTexture struct is always the same, currently is being done for
 each instance.

 Attached file fix the problem but perhaps a more clean fix would be making
 ENDIAN conversion at writing attributes time instead of at reading time. "
2005-05-12 15:51:28 +00:00
Robert Osfield
54abc6f471 Added IO support for new intialBound and callbacks to .osg, and initialBound to .ive 2005-05-12 14:48:56 +00:00
Robert Osfield
bf4d63f6ea Added new Node/Drawable::s/getInitialBound and Node/Drawable::s/getComputeBoundCallback
methods and reimplement computeBound so that it passes back a bounding volume rather
than modifying the local one.
2005-05-12 14:03:22 +00:00
Robert Osfield
ad2bd31ac8 Added setTextureFileName method. 2005-05-12 08:58:28 +00:00
Robert Osfield
fe384e53c7 Added clear of lazy uniform updating structure on relink, also added debug
output of shader being compiled.
2005-05-12 08:54:11 +00:00
Robert Osfield
8b60ee74d4 Updated wrappers. 2005-05-11 21:36:04 +00:00
Robert Osfield
6abe4c8f8c Updated wrappers 2005-05-11 20:05:51 +00:00
Robert Osfield
bdc7e8b4a9 From Don Tidrow, "I added some code to assign the archive pointer in TXPnode
with the archive that ReaderWriterTXP actually loads.  I also added a
function in TXPArchive to help in manipulating the lightpoints."
2005-05-11 19:34:03 +00:00
Robert Osfield
679c44f4ae Changed the info log so that it output to INFO on success, to WARN when an
error has occured.
2005-05-11 19:32:57 +00:00
Robert Osfield
afb92b2372 Added .osg support for new ParticleEffect::s/getDefaultParticleTemplate. 2005-05-11 16:05:27 +00:00
Robert Osfield
52666a6dee Added support for setting the texture filename and more fine control over
the particle template used in ParticleEffects
2005-05-11 15:26:16 +00:00
Robert Osfield
4c613896ff Fixed compile warning. 2005-05-11 13:40:07 +00:00
Robert Osfield
aa6ea8c047 Completed GLSL support in .ive 2005-05-11 13:37:38 +00:00
Robert Osfield
8d31e75364 Further work on GLSL support in .ive 2005-05-11 11:42:09 +00:00
Robert Osfield
fb34b22e34 Cleaned up API of BindAttributeLocation, added deletion of shader objects. 2005-05-11 11:41:44 +00:00
Robert Osfield
d9c50ee7c4 Put in place the class to implement GLSL support in .ive 2005-05-10 20:20:20 +00:00
Robert Osfield
d681d47c72 Moved the infolog to the error handling block and upping its notification
level to WARN to provide better feedback on failure with needing to use
DEBUG notification level.
2005-05-10 18:21:31 +00:00
Robert Osfield
5e0a5b39e0 Added tab to space converted to .obj plugin 2005-05-10 16:13:37 +00:00
Robert Osfield
1afd5e48a7 Added support for PROTECTED and OVERRIDE to uniforms. 2005-05-10 13:56:05 +00:00
Robert Osfield
aa61f87abe From Farshid Lashkari, bumped IVE version number to 9, and added support in Texture for
_borderWidth
    _useHardwareMipMapGeneration
    _unrefImageDataAfterApply
    _clientStorageHint
    _resizeNonPowerOfTwoHint
2005-05-10 10:01:13 +00:00
Robert Osfield
4811adda0a From Farshid Lashkari, and non power of two resize hint support to .osg ascii 2005-05-10 08:07:37 +00:00
Robert Osfield
44c363dd3f Added code to prevent ProxyNode's from been "flattened" by
osgUtil::Optimizer::FlattenStaticTransforms.
2005-05-09 15:29:18 +00:00
Robert Osfield
538ced579e Removed deprecated API in preparation for 0.9.9 release. 2005-05-09 13:09:07 +00:00
Robert Osfield
5e23536683 Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.

Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors.  I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 10:17:56 +00:00
Robert Osfield
a6e8378a72 Removed debug info 2005-05-08 19:21:43 +00:00
Robert Osfield
cf6e081b93 Updated osgWrappers. 2005-05-08 18:37:13 +00:00
Robert Osfield
7d6c90aaa4 Added missing copy of _stereo 2005-05-08 15:24:26 +00:00
Robert Osfield
d1a1b1d95c Added more comprehensive releaseGLObjects(State*=0) throughout Nodes,
Drawables,StateSet, and osgDB::Registry.

Added cleanup_frame() from to osgProducer::OsgCamerGroup to help with proper
clean of OpenGL objects before exit, and modified osgviewer, osghangglider,
osgwindows examples to do the extra frame call to cleanup_frame() before exit.
2005-05-07 20:47:09 +00:00
Robert Osfield
08d5f9f85a From Tim Daoust/Robert Osfield, added Font::releaseGLobjects(State*state=0) to
facilate clean up of scene when a graphics context is deleted/reused.
2005-05-07 09:17:55 +00:00
Robert Osfield
52e036f425 Added handling of sharing of graphics context data which is now supported
by Producer.  You can get the osgProducer::Viewer to share graphics contexts
by using the env var OSG_SHARE_GRAPHICS_CONTEXTS set to ON or OFF i.e.

   setenv OSG_SHARE_GRAPHICS_CONTEXTS ON
2005-05-06 19:44:24 +00:00
Robert Osfield
2ea6de3d0b Made OSX default to using single threaded keyboard mouse. 2005-05-06 14:28:43 +00:00
Robert Osfield
cdab058b32 Added osg_DeltaFrameTime uniform to default set. 2005-05-06 10:32:31 +00:00
Robert Osfield
7480d51830 From Mike Weiblen, further work on GLSL support 2005-05-06 09:58:49 +00:00
Robert Osfield
fc585cd33d From Farshid Lashkari, support for non power of two extension. 2005-05-06 09:04:41 +00:00
Robert Osfield
fd9f5c0f43 Fix for OSX build across both Tiger and 10.3.x 2005-05-05 21:21:14 +00:00
Robert Osfield
9534cd8638 Removed rgb alias for Quicktime mapping since the Quicktime is not reliable
at loading all rgb files that the standard OSG rgb reader can read.
2005-05-05 20:05:11 +00:00
Robert Osfield
a44e33795d Removed the defaulting to setting the camera threading model to MultiThreaded,
instead leave it to Producer's defaults.
2005-05-05 14:03:54 +00:00
Robert Osfield
2798d58a41 Added support for osg_FrameNumber, osg_FrameTime, osg_ViewMatrix, osg_InverseViewMatrix
into SceneView, controlled via a setActiveUniforms(.) method.
2005-05-05 12:30:54 +00:00
Robert Osfield
c4e2e85aa1 From Farshid Lashkari, added Texture::Extension support for non power of two extension. 2005-05-05 09:18:03 +00:00
Robert Osfield
f8c855a576 Fix for Tiger build 2005-05-04 11:38:34 +00:00
Robert Osfield
a1f23bbccd Fixed bug where the Optimizer::StateVisitor was trying to optimize
non existant StateSet's.
2005-05-04 09:11:32 +00:00
Robert Osfield
1571209a82 Updated wrappers 2005-05-03 22:02:37 +00:00
Robert Osfield
56882a7413 From Alberto Farre, "Missed a FilepathList pop_back line from my last submission.
I have also commented out the option string set with FLT_VER because it
overwrites other option string and I found it redundant and not needed."
2005-05-03 21:53:25 +00:00
Robert Osfield
2a3831ff41 Removed the default compile of single threaded KeyboardMouse 2005-05-03 21:49:21 +00:00
Robert Osfield
97daa561f4 Added support for lazy state updating of uniforms. 2005-05-03 21:46:47 +00:00
Robert Osfield
2bb2d9bb37 From Bob Kuehne, fixes for OSX 10.4 build. 2005-05-03 14:31:01 +00:00
Robert Osfield
003329fd10 Updated wrappers 2005-05-03 10:09:51 +00:00
Robert Osfield
a0ccaf5f95 Removed Impostor.cpp 2005-05-03 06:23:02 +00:00
Robert Osfield
ce902afa7c Fixed TIFF readers handling of interleaved data 2005-05-02 20:00:42 +00:00
Robert Osfield
8cbba9dc00 Improvements to the repojection code so that it can generate RGBA reprojected
data.
2005-05-02 19:42:13 +00:00
Robert Osfield
015c9a9765 Added support for generating RGBA, RGBA-16 and RGBA-compressed texture databases 2005-05-02 14:16:25 +00:00
Robert Osfield
991feca6cc Added support for reading from RGBA source textures 2005-05-02 13:00:17 +00:00
Robert Osfield
b85d4d4e7e Added support for optimization of Uniforms 2005-05-02 10:18:37 +00:00
Robert Osfield
938d13ecc7 Improved the handling of update/event callbacks on Drawable and Geodes 2005-05-02 09:57:58 +00:00
Robert Osfield
4e67b2c989 Moved Impostor from osg to osgSim .osg plugin 2005-05-01 21:33:12 +00:00
Robert Osfield
e10b9a74d4 Added include<osg/AlphaFunc> for OSX build 2005-05-01 20:56:44 +00:00
Robert Osfield
03232ec667 Moved osg::Impostor to osgSim::Impostor, as Impostor isn't a core feature. 2005-05-01 19:48:49 +00:00
Robert Osfield
7de1265059 From Don Tidrow, spelling fixes 2005-05-01 10:34:48 +00:00
Robert Osfield
adba6fa559 Added RemoveLoadedProxyNodes pass to Optimizer, set on by default at present. 2005-04-30 15:16:05 +00:00
Robert Osfield
81f60233a9 From Geoff Michel :
ac3d loader - better sharing of states between objects and Roger James' bug fix for missing normals.

  Tesselator.cpp - faster processing of polygon tesselation for single triangles (which dont need to be tesselated)

  osgtesselate.cpp - added wrap for texture so that appearance is as originally. Default texture behaviour has changed to clamp."
2005-04-30 13:54:21 +00:00
Robert Osfield
67baa30218 Combine LOD fixed properly this time :) 2005-04-30 07:25:15 +00:00
Robert Osfield
bf03f094c2 fixed combined LOD bug 2005-04-30 07:22:56 +00:00
Robert Osfield
a5fcddc5e5 From Mike Weiblen, Progra/Shader fixes 2005-04-30 07:02:02 +00:00
Robert Osfield
7d69b5e562 Updated wrappers 2005-04-29 20:57:04 +00:00
Robert Osfield
7117ff4bd3 Added support for controlling the frequency of checking for OpenGL errors
via:

        enum CheckForGLErrors
        {
            /** NEVER_CHECK_GL_ERRORS hints that OpenGL need not be checked for, this
                is the fastest option since checking for errors does incurr a small overhead.*/
            NEVER_CHECK_GL_ERRORS,
            /** ONCE_PER_FRAME means that OpenGl errors will be checked for once per
                frame, the overhead is still small, but at least OpenGL errors that are occurring
                will be caught, the reporting isn't fine grained enough for debugging purposes.*/
            ONCE_PER_FRAME,
            /** ONCE_PER_ATTRIBUTE means that OpenGL errors will be checked for after
                every attribute is applied, allow errors to be directly associated with
                particular operations which makes debugging much easier.*/
            ONCE_PER_ATTRIBUTE
        };

        /** Set whether and how often OpenGL errors should be checked for.*/
        void setCheckForGLErrors(CheckForGLErrors check) { _checkGLErrors = check; }

        /** Get whether and how often OpenGL errors should be checked for.*/
        CheckForGLErrors getCheckForGLErrors() const { return _checkGLErrors; }
2005-04-29 20:56:20 +00:00
Robert Osfield
68032dafc8 Commented out notify messages to prevent crash under OSX at start up. 2005-04-29 13:30:59 +00:00
Robert Osfield
f2d696f871 Moved osgIntrospection across to standard OSG coding style. 2005-04-29 11:19:58 +00:00
Robert Osfield
af13199e05 Added Copyright 2005-04-29 10:06:50 +00:00
Robert Osfield
6b5238c294 Moved osgParticle across to standard OSG coding style. 2005-04-29 09:47:57 +00:00
Robert Osfield
98126f1706 Moved to standard OSG coding style. 2005-04-29 06:32:13 +00:00
Robert Osfield
178a0b5c7e Reduced the verboseness of the notifaction messages 2005-04-28 19:50:07 +00:00
Robert Osfield
bf13c8ca14 Changed the default texture size to 512x512 to reduce the number of textures
required when rendering text.
2005-04-28 19:24:09 +00:00
Robert Osfield
84aef32552 Removed old LUMINANCE_ALPHA code pathways since they are no longer used. 2005-04-28 19:08:44 +00:00
Robert Osfield
10607dd690 Added proper handling of freeing of font implememtation either when unloading
the freetype plugin or deleting osgText::Font first.
2005-04-28 18:55:08 +00:00
Robert Osfield
7f3d46e110 Added check to see if autoTransformCache had been initialized before
using it in the computeBound.
2005-04-28 05:58:20 +00:00
Robert Osfield
30d20fcf55 From Farshid Lashkari, removed redundent fusion distance calculations from computeRightEyeProjectionImplementation and
computeLeftEyeProjectionImplementation methods.
2005-04-28 05:21:27 +00:00
Robert Osfield
968f54b5db From Ruben, fix for PIV executation by disabling MMXEXT selection. 2005-04-26 20:35:53 +00:00
Robert Osfield
a47a6a4886 Added $(GL_LIBS) to link line to get things linking ok under OSX. 2005-04-26 18:55:51 +00:00
Robert Osfield
63c81a3539 Updated wrappers. 2005-04-26 14:29:25 +00:00
Robert Osfield
a1bda0dab8 Added support for per context extension string.
Note, this required adding a unsigned int context ID to the osg::isGLUExtensionSupported(,)
and osg::isGLExtensionSupported(,) functions.  This may require reimplementation
of end user code to accomodate the new calling convention.
2005-04-26 13:15:27 +00:00
Robert Osfield
59ebf86dd0 Added #include <algorithm> for VS.NET build 2005-04-26 11:20:19 +00:00
Robert Osfield
3c90a5f694 Added support notification of Drawable parents of StateSet that event/update callbacks have been called. 2005-04-26 09:58:19 +00:00
Robert Osfield
38bf740ef4 From Vivek Rajan, "osg::Text was getting stretched when the CharacterSizeMode was set to
SCREEN_COORDS and the SceneView's projection matrix was set to an
Ortho2D matrix (sceneView->setProjectionMatrixAsOrtho2D(-1,1,-1,1)).

Computing the pixel size separately vertically and horizontally, and
setting the scaling factors appropriately based on that fixed the
problem."
2005-04-26 07:49:18 +00:00
Robert Osfield
edf142222b Updated wrappers using Marco Jez's genwrapper utility. 2005-04-25 20:46:46 +00:00
Robert Osfield
fa996d0745 From Mike Weiblen, added support for --clear-color r,g,b,a and --clear-color r,g,b
to osgProducer::Viewer.
2005-04-25 20:34:23 +00:00
Robert Osfield
baa9af49c4 Reduced the verbosness of debugging messages 2005-04-25 14:28:16 +00:00
Robert Osfield
e24cfa0370 Futher work on supporting update and event callbacks in StateSet, Uniform and StateAttribute 2005-04-25 13:37:12 +00:00
Robert Osfield
78f88247f8 Added SINGLE_THREADED_KEYBOARDMOUSE pathway as a means of testing
exit issues.
2005-04-25 13:27:56 +00:00
Robert Osfield
bc83e63bb4 Futher work on adding event and update callbacks to StateSet, Uniform and StateAttributes 2005-04-25 11:05:02 +00:00
Robert Osfield
193c83cb9c Added ParentList's into StateSet, Uniform and StateAttribute in preparation for
providing update and event handling.
2005-04-24 21:04:54 +00:00
Robert Osfield
4262366f62 Added THREAD_ infront of PRIORITY_MIN settings to reflect changes to OpentThreads 2005-04-24 19:30:01 +00:00
Robert Osfield
0d9887462a Added MergeGeometryVisitor::setTargetMaximumNumberOfVertices(uint); 2005-04-23 16:09:20 +00:00
Robert Osfield
f91efb7f31 Added missing bodes of Uniform::operator = and setEvent/UpdateCallback in StateSet. 2005-04-23 10:41:30 +00:00
Robert Osfield
57c87d644a Added support for using TextureRectangle in --move support in readNodeFile 2005-04-23 10:31:52 +00:00
Robert Osfield
819d2c6c56 Preliminary steps to adding update and event callbacks to StateSet, StateAttribute
and Uniform.
2005-04-22 22:45:39 +00:00
Robert Osfield
b35ded6fb9 Improved handling of unsupported file formats. 2005-04-22 15:44:03 +00:00
Robert Osfield
2914f7c342 Improved handling of invalid imagery in BufferObject 2005-04-22 15:43:34 +00:00
Robert Osfield
bba76cfa31 From Tree, removed dependency on Producer 2005-04-22 14:40:06 +00:00
Robert Osfield
bf317d9cea Removed ViewPoint.h and .cpp from the ive plugin 2005-04-22 13:47:54 +00:00
Robert Osfield
483242c9db Cleaned up the xine plugin to better handle unsupported video files. 2005-04-22 13:32:46 +00:00
Robert Osfield
8b4f9dce60 From Mike Weiblen, added support for samplers and mat4 to .osg 2005-04-22 07:13:50 +00:00
Robert Osfield
7f2ab883f5 Added initialize of version number 2005-04-21 21:07:27 +00:00
Robert Osfield
7182713dcf From Garrat Potts, fixed face memory leak in FreTypeFont destructor. 2005-04-21 21:05:48 +00:00
Robert Osfield
496227d239 From Mike Weiblen, removed Uniform not quite ready notice,
and added .h files into osgshaders project file.
2005-04-20 18:50:50 +00:00
Robert Osfield
e2a85f6bc6 From Brede Johnansen, adding support for EXT, ARB and GL version 1.4 point parameters. 2005-04-20 12:32:43 +00:00