Robert Osfield
0f76021fd0
Added debugging code
2007-03-30 15:16:29 +00:00
Robert Osfield
d434ee0db8
Added support for reading values from an ImageLayer, and building of the
...
elevation data in GeometryTechnique.
2007-03-30 14:57:57 +00:00
Robert Osfield
192dbe919b
Added support 16bit intensity formats
2007-03-30 14:57:01 +00:00
Robert Osfield
a2ecb93c2b
Converted osg::HeightField across to using a osg::FloatArray internally to enable
...
it to be assigned as a vertex attribute array to an osg::Geometry.
Removed the osgTerrain::ArrayLayer as its no longer required thanks to the above change
which makes the osgTerrain::HeightFieldLayer more flexible.
Updated wrappers
2007-03-29 19:42:07 +00:00
Robert Osfield
0c44e9ac19
Added creation of basic geoemtry to test Locator and extents
2007-03-29 14:45:35 +00:00
Robert Osfield
e8ede168c9
Updated wrappers
2007-03-29 12:41:18 +00:00
Robert Osfield
0a43ff6571
From Eric Wing, added handling of CMAKE_THREAD_LIBS_INIT
2007-03-29 10:56:07 +00:00
Robert Osfield
e2e0897a1b
Added missing return value
2007-03-29 10:13:36 +00:00
Robert Osfield
cb811aa7cd
Added support for compute the extents on local NDC coordiantes of the
...
elevation and colour layers
2007-03-28 16:28:20 +00:00
Robert Osfield
b7967b7007
From Mike Wittman, "Here is a change to the .cpp file to fix it by disambiguating the cull invocation."
2007-03-28 15:05:49 +00:00
Robert Osfield
677358c049
Removed the d during debug build of wrappers on non MSVC platforms
2007-03-28 14:50:35 +00:00
Robert Osfield
7fc714ada1
Removed deprecated drawImplementation(State&) method from Drawable and Drawable::DrawCallback
2007-03-28 11:30:38 +00:00
Robert Osfield
7fb38ff42f
From Martin Amueller, Add libosgGA and libosgText for OSX build
2007-03-28 08:53:18 +00:00
Robert Osfield
b331b77269
From Martin Aumueller, "in order to remove a dependency on Coin3D (which is GPLed) and make it work
...
with SGI's OpenInventor, I had to change
OpenSceneGraph/src/osgPlugins/Inventor, as SoVRMLImageTexture is not avaible
in SGI's Inventor. "
From Robert Osfield, tweaked the above so that it uses Coin headers to switch on coin features:
#ifdef COIN_SOCALLBACKACTION_H
#define USE_COIN 1
#endif
2007-03-28 08:43:05 +00:00
Robert Osfield
5c780aada0
From Luigi Calori, "here is a patch to use Mike 3rdParty dependencies
...
It should not be introusive to any other palatform apart MSVC, but in order to link to debug-specific libs
I had to change plugins CMakeLists to differentiate debug/release linkage, I have used the same macro used in core libs
Now the macro used for plugin and examples linking test for existance of TARGET_LIBRARIES_VARS
that holds the names of the variables that have to be used for linking"
2007-03-27 21:44:02 +00:00
Robert Osfield
90f355bd4e
Updated wrappers
2007-03-27 19:39:00 +00:00
Robert Osfield
78ed8f9219
Add computeBound support to TerrainNode and Layer.
2007-03-27 19:27:36 +00:00
Robert Osfield
87461c2077
Removed the flt plugin from OpenSceneGraph/trunk, this project can now be found in the deprecated directory.
2007-03-27 16:05:13 +00:00
Robert Osfield
4688d5ae8e
Rearranged the traversal and initialization of TerrainTechnique
2007-03-27 16:01:01 +00:00
Robert Osfield
e76e4e82db
Added EllipsoidLocator.
2007-03-27 11:23:57 +00:00
Robert Osfield
37dd2851e9
Added #include <unistd.h> for non Win32/Mingw build
2007-03-27 08:43:59 +00:00
Robert Osfield
ee563ee5c3
Added -lgdi32 to CYGWIN path
2007-03-27 08:40:25 +00:00
Robert Osfield
8dc2a28945
Removed WindowData parameter from init().
2007-03-26 16:28:26 +00:00
Robert Osfield
1cdda0654f
Added Locator and layer setting to osgterrain example
2007-03-26 15:52:22 +00:00
Robert Osfield
b419fa93ef
From Luigi Calori, "when we link against something that comes out from a Find... we ususally have a variable <LINK_VAR_NAME>available like OPENTHREADS_LIBRARY,
...
so I' ve set up a macro that uses the variable name expanded for linking, and test if a variable ${LINK_VAR_NAME}_DEBUG
like OPENTHREADS_LIBRARY_DEBUG exists and in case uses it for linking in debug mode.
I' ve also set up FindOpenThreads to set up these variables.
I had to edit the core libraries CMakeLists to add the calls to the macros used.
I' ve tested under MSVC"
2007-03-26 13:02:38 +00:00
Robert Osfield
bfed1b784e
From Mike Wittman, "This change fixes a couple bugs in the osgIntrospection protected function support. I missed adding the protected/public specifier on a couple recursive invocations, so those functions are not currently returning protected functions for base classes when they should."
2007-03-23 17:37:49 +00:00
Robert Osfield
37f4740c45
From Mike Wittman, remove redundent const from in front of unsigned int.
...
From Robert Osfield, updated wrappers
2007-03-23 17:27:53 +00:00
Robert Osfield
92865923f3
Added missing StencilTwoSided header
2007-03-23 10:11:09 +00:00
Robert Osfield
6eee949142
From Eric Wing, added ${MATH_LIB} to osg CMakeLists.txt and definition of this to m under unix
2007-03-22 13:38:23 +00:00
Robert Osfield
ebd04bbbbf
Updated the header list
2007-03-22 13:37:47 +00:00
Robert Osfield
56a1808794
Added ImageLayer, ArrayLayer and HeightFieldLayer classes
2007-03-21 17:18:53 +00:00
Robert Osfield
541c3f13e9
Added GeometryTechinque to osgTerrain. Added usage of GeometryTechnique into osgterrain example
...
Added --width and --height command line options to osgdistortion to allow users
to control the window size.
2007-03-21 16:34:04 +00:00
Robert Osfield
2b52de5e9c
Removed erroneous entry of GNUmakefile
2007-03-21 09:42:14 +00:00
Robert Osfield
bab9938a5c
Added osg:: to computeLocalToWorld to fix build under VS7.
2007-03-20 17:07:37 +00:00
Robert Osfield
33817a7e5d
From Philip Lowman, added support for Inventor
2007-03-20 09:50:24 +00:00
Robert Osfield
7039ff4af4
From Andreas Goebel, build fix
2007-03-19 19:05:18 +00:00
Robert Osfield
282f4ce0b9
Moved the TARGET_NAME setting into the OsgMacroUtils.cmake.
2007-03-19 17:24:19 +00:00
Robert Osfield
9b30cf2960
Added CMake support for txf, osgViewer and osgShadow plugins
2007-03-19 14:10:12 +00:00
Robert Osfield
da64127539
Ran dos2unix on CMakeLists.txt files.
2007-03-19 13:26:34 +00:00
Robert Osfield
be3f61c49f
From Luigi Calori, move to using local CMakeLists.txt files and explicit file lists.
...
From Robert Osfield, small ammendments of the above to seperate example and application installs, and fix the osgPlugins install directory.
2007-03-19 12:30:26 +00:00
Robert Osfield
74f21c0b0d
Updated wrappers
2007-03-19 11:47:49 +00:00
Robert Osfield
6d49904170
From Andreas Goebel, add -lgdi to GNUmakefile
2007-03-19 11:35:36 +00:00
Robert Osfield
c66252ca3a
Further work on TerrainNode
2007-03-19 11:25:41 +00:00
Robert Osfield
32166ca631
Build fixes
2007-03-19 10:54:39 +00:00
Robert Osfield
ed9aa1c6bf
Removed now redundent method
2007-03-18 11:04:12 +00:00
Robert Osfield
72b348ea91
Updated wrappers
2007-03-16 14:27:30 +00:00
Robert Osfield
aa28f60357
Added WindowData structures to GraphicsWindowX11,Win32 and Carbon to help support
...
GraphicsWindow inheriting their window handles from an external toolkit
2007-03-16 13:22:05 +00:00
Robert Osfield
d4db767ec5
From Philip Lowman, added gdi32 entry fro Mingw build
2007-03-15 13:17:05 +00:00
Robert Osfield
7f2586d9db
Name fixes
2007-03-14 12:59:06 +00:00
Robert Osfield
c000f77502
Updated wrappers
2007-03-14 12:31:53 +00:00
Robert Osfield
2fae221f2d
Added class shells for osgTerrain::Locator and osgTerrain::Layer classes
2007-03-14 12:00:54 +00:00
Robert Osfield
c489b0af2c
Renamed HeightFieldNode and HeightFieldRenderer to TerrainNode and TerrainTechnique respectively
2007-03-14 11:24:04 +00:00
Robert Osfield
bd1d9e33d5
Changed typeid(CullVisitor) check to dynamic_cast
2007-03-14 10:02:45 +00:00
Robert Osfield
b079c9eb3a
From Mathieu Narache, build fixes for IRIX64
2007-03-13 12:25:30 +00:00
Robert Osfield
386f3a091e
Fixed gif plugin entry so that it uses GIFLIB_ rather than GIF to match it up
...
to the CMakeModels/FindGIFLIB.cmake entry
2007-03-13 11:58:52 +00:00
Robert Osfield
52371293b0
Checked in missing implementation of cleanSceneGraph.
2007-03-13 08:18:13 +00:00
Robert Osfield
54127cea20
Fixed install paths of wrappers and plugins
2007-03-12 12:46:36 +00:00
Robert Osfield
e9ad68c926
Removed GDAL references
2007-03-12 12:13:52 +00:00
Robert Osfield
6d4f81ba38
Cleaned up the ordering of the code component compilation
2007-03-12 11:49:10 +00:00
Robert Osfield
5fdeaeaaa2
Fixed osgTerrain CMakeLists.txt so it didn't include DataSet or GDAL references
2007-03-12 11:48:35 +00:00
Robert Osfield
e310198860
From Luigi Calori, fixes for building wrappers with lib prefix.
2007-03-12 08:32:56 +00:00
Robert Osfield
f5cf560fe1
Renamed the follow plugins to facilitate CMake build
...
lib3ds -> 3ds
ac3d -> ac
directx -> x
ESRIShape -> shp
2007-03-11 13:23:06 +00:00
Robert Osfield
cc64468b52
Moved introspection build into optional compile section
2007-03-11 13:21:48 +00:00
Robert Osfield
a291537a21
Changed the output directory for wrappers to osgPlugins and the name to osgwrapper_ to
...
make it consitent with the previous places used for wrappers.
Note, the wrappers still compile to libosgwarapper_, this will need fixing.
2007-03-11 13:15:15 +00:00
Robert Osfield
4173095f0b
From Bob Kuehne, fix for AGL build of osgViewer
2007-03-10 17:29:32 +00:00
Robert Osfield
4aeec214c7
Updated wrappers
2007-03-10 12:27:01 +00:00
Robert Osfield
fb1c25616b
Correct TransferFunction entry.
2007-03-10 11:56:34 +00:00
Robert Osfield
bff1b51361
Added preliminary work on osg::TransferFunction
2007-03-10 11:53:31 +00:00
Robert Osfield
16ba0a2fa1
Updated wrappers
2007-03-10 11:38:26 +00:00
Robert Osfield
c39f5f5188
From Luigi Calori, CMakeLists.txt support for wrappers
2007-03-10 11:38:13 +00:00
Robert Osfield
6c1b2d29d9
Commenting out Matrix_implementation.cpp entry to avoid it being installed.
2007-03-09 14:54:01 +00:00
Robert Osfield
426afa3e70
From Luigi Calori, fixed build of freetype and zlib.
2007-03-08 21:19:27 +00:00
Robert Osfield
db6f07f1d6
Ran dos2unx of CMakeLists.txt files
2007-03-08 15:31:36 +00:00
Robert Osfield
bf3180018e
From Luigi Calori, added support macro based build of plugins
2007-03-08 15:29:53 +00:00
Robert Osfield
ebb571473f
Changed _pixel_x and _pixel_y to be floats
2007-03-06 12:01:55 +00:00
Robert Osfield
5423add9e2
Added support for 4,7,12,16 bit luminance and intensity formats
2007-03-06 11:20:39 +00:00
Robert Osfield
62ac5301c9
Updated wrappers
2007-03-05 17:46:50 +00:00
Robert Osfield
71ec26ba62
From Luigi Calori, added marco support
2007-03-05 13:27:55 +00:00
Robert Osfield
b428aee852
Added missing files
2007-03-05 12:11:15 +00:00
Robert Osfield
ac1106372b
Added missing files
2007-03-05 12:09:42 +00:00
Robert Osfield
f50ed9667a
From Eric Wing and others, first cut of CMake build support
2007-03-04 13:05:33 +00:00
Robert Osfield
7c54b1b688
Changed the index value to 0 of the token vector, wheras original the 1 was used, the
...
later causing a crash when only one token was available. Also clean up #if #else #endif
block to help make the code more readable and maintainable. This bug and fix
was found by Anders Backman, but final implementation done by Robert Osfield.
2007-03-01 13:41:28 +00:00
Robert Osfield
c505e3d51e
From David Gurhrie, "Here is the updated txp loader code that we modified before to store
...
some of the material codes in the userdata field. It now takes an
option string to enable adding the extra data and doesn't add it by
default."
2007-03-01 12:10:52 +00:00
Robert Osfield
9b70538264
Updated wrappers
2007-03-01 11:58:36 +00:00
Robert Osfield
6c56383ba9
From Mike Wittman, added protected function support
2007-03-01 11:54:30 +00:00
Robert Osfield
8a04605e01
Ran cleanup to fix tabs
2007-02-28 12:15:01 +00:00
Robert Osfield
29c189c9ff
Added support for direction lights to ShadowTexture
2007-02-28 11:18:43 +00:00
Robert Osfield
b65045342e
From Mihai Radu, Added support for directional lights to ShadowMap
2007-02-28 11:12:51 +00:00
Robert Osfield
b00cbe5a17
Moved include/osgTerrain/DataSet/.cpp, gdal plugin and osgdem out into the VirtualPlaneBuilder project.
...
Updated examples to remove DataSet/GDAL dependency.
Updated wrappers
2007-02-27 21:12:48 +00:00
Robert Osfield
eb4ad4229f
Moved osgProducer and osgproducerviewer out into their own repository.
...
Clean up the source for remaining references to osgProducer/Producer.
2007-02-27 13:16:18 +00:00
Robert Osfield
b55f5c2bd8
Fixed auto rotate to screen so that it handles scales in to the parental path
2007-02-26 14:36:43 +00:00
Robert Osfield
7f8f4e331a
Completed changes to osgManipulator to make it more flexible w.r.t viewer usage, and
...
ported osgmanipulator example across of osgViewer
2007-02-26 13:01:17 +00:00
Robert Osfield
42689e83ef
Removed ReentrantMutex
2007-02-26 11:23:55 +00:00
Robert Osfield
f43cd7332c
Further work on add serialization support for osgViewer configurations
2007-02-25 20:05:23 +00:00
Robert Osfield
7174192444
Added new osgViewer plugin to help with serializing in/out of viewer configurtions
2007-02-25 19:59:27 +00:00
Robert Osfield
62e247fbd1
Added makefile
2007-02-24 09:04:27 +00:00
Robert Osfield
ad3cac84e9
Moved Block, ReentrantMutex and ReadWriteMutex into OpenThreads.
2007-02-23 16:31:34 +00:00
Robert Osfield
968a8d1118
Updated wrappers
2007-02-23 12:14:52 +00:00
Robert Osfield
96f567eff3
Added bool View::Slave::_useMastersSceneData to help manage HUD's and RTT
...
cameras that are embedded in the Viewer's View
2007-02-23 11:53:45 +00:00
Robert Osfield
2d05286dc2
Clean up the handling of views without camera manipulators, and cameras that
...
don't allow camera focus
2007-02-23 11:51:52 +00:00
Robert Osfield
03c198da4d
Removed the compile objects in init in the SceneView::setDefaults() setup.
2007-02-22 10:56:36 +00:00
Robert Osfield
b9eb2fcdee
Fixed calculation of inverted coordindates
2007-02-22 10:31:09 +00:00
Robert Osfield
b14fc636e7
Added STATIC_OBJECT_DETECTION optimizer pass to OpenFlight plugin
2007-02-22 09:16:54 +00:00
Robert Osfield
8dc84d0a8f
From Brede Johansen, Thanks for the model it helped to understand the problem. In Creator the "Last Frame Duration" is performed on the last frame of the last loop iteration, I tried to use it for the last frame of every loop iteration. As you already have explained we need a custom Sequence node. In the osgSim nodekit we already have a couple of specialized nodes for the OpenFlight format. We need an osgSim::GroupAnimation but I don't have the time right now to take this challenge. Until then I have modified my last attempt to work with the current osg::Sequence node by ignoring the "Last Frame Duration".
2007-02-21 21:20:33 +00:00
Robert Osfield
455b046433
Removed debugging info
2007-02-21 20:47:32 +00:00
Robert Osfield
becd84c2f3
Added the default setting of the SceneView's camera onto the RenderStage to
...
allow SceneView to automatically support FBO, PBuffers, image and texture copies and
Camera post draw callbacks
2007-02-21 20:38:14 +00:00
Robert Osfield
987fe5d93b
Added ability to discount Camera's that arn't appropriate for event focus
2007-02-21 19:41:53 +00:00
Robert Osfield
ee9440d155
Added Camera::s/getAllowsEventFocus() method to allow osgViewer to have non interfactive cameras such as RTT ones
2007-02-21 19:06:43 +00:00
Robert Osfield
37e3114534
Wojciech Lewandowski: "TexGenNode::TexGenNode( TexGen * texGen ) constructor does not initialize ReferenceFrame. I am not sure maybe this was the intent but first constructor does it so I don't see a reson why third one shouldn't."
2007-02-21 15:15:55 +00:00
Robert Osfield
35a466f400
Removed debug messages
2007-02-21 14:17:15 +00:00
Robert Osfield
228fd04a19
Removed the exclusion of CullSettings from the genwrapper.conf, and then changed the CullStack RefMatrix& methods to RefMatrix*
...
as the RefMatrix& versions caused the wrappers to fail.
2007-02-21 13:48:01 +00:00
Robert Osfield
664522fb02
Removed GL_TEXTURE_RECTANGLE_NV entries
2007-02-21 11:46:49 +00:00
Robert Osfield
ffda14c669
Fixed inheritance check for copying clear colour to slave cameras
2007-02-20 20:56:03 +00:00
Robert Osfield
416e6486f7
Added inhertCullSettings before SceneView::cull() calls
2007-02-20 16:46:53 +00:00
Robert Osfield
bdfc9de345
Updated wrappers
2007-02-19 15:42:32 +00:00
Robert Osfield
37526e3bea
Implemented basic ShadowMap technique
2007-02-19 14:20:18 +00:00
Robert Osfield
d5c68cfa02
Moved CameraCullCallback into ShadowTechnique scope to make it more resusable between various Techniques
2007-02-19 12:13:30 +00:00
Robert Osfield
1964690baa
Wired up the texgen to complete the first iteration of ShadowTexture effect
2007-02-18 15:24:32 +00:00
Robert Osfield
d8e6436dc1
From Andre Garneau:
...
* Fix for the aspect ratio not being properly set when screens have
different aspect ratios.
* Minor fix for makeCurrentImplementation being called directly instead of
makeCurrent() causing the owning thread pointer not being tracked
* Fix for osglauncher so that it sets its update text regions to DYNAMIC to
prevent multi-threading issues.
2007-02-18 14:21:16 +00:00
Robert Osfield
9d1e6e107c
Added basic set up of the RTT camera.
2007-02-17 17:16:13 +00:00
Robert Osfield
291d687cc9
From Paul Martz, "Add GL_TEXTURE_RECTANGLE to list of acceptable texture modes"
2007-02-17 14:37:55 +00:00
Robert Osfield
afab03a0fa
Fixed genwrapper so that it handles .svn directories, updated wrappers
2007-02-16 17:45:53 +00:00
Robert Osfield
049f907aad
Updated wrappers
2007-02-16 17:35:52 +00:00
Robert Osfield
a3594bc653
Added new osg::ComputeBoundsVisitor
2007-02-16 17:34:34 +00:00
Robert Osfield
808162d344
Added pushViewport/popViewport to CullVisitor::apply(Camera&)
2007-02-16 16:37:16 +00:00
Robert Osfield
d23b48fe3a
Updated wrappers
2007-02-16 15:29:47 +00:00
Robert Osfield
990417c9d1
Fixed typo
2007-02-16 15:14:16 +00:00
Robert Osfield
526ba8c506
From Stephan Huber, "I added a bool to GraphicsContext::Traits to indicate wether to use the
...
multithreaded-opengl-engine on os x or not. I set its default to false,
perhaps other os x users can test this setting with their data/apps, to
see if we can enable it by default.
I changed also the borderless-window-type, so expos?works correctly."
2007-02-16 13:33:29 +00:00
Robert Osfield
89fdc9fa37
Removed debugging readImageFile, and done further work on RTT setup.
2007-02-16 13:17:04 +00:00
Robert Osfield
fd3a0c25ba
Fleshed out a bit more of the ShadowTexture implementation
2007-02-16 10:20:10 +00:00
Robert Osfield
8d8f15cf72
Fixed typo that was breaking the build
2007-02-16 05:46:50 +00:00
Robert Osfield
dbb7c3c74c
Added support for using the new osgShadow plugin as a psuedo loader such that:
...
osgviewer cow.osg.shadow
Or to ShadowVolume rechnique specifically:
osgviewer cow.osg.sv.shadow
2007-02-15 22:28:32 +00:00
Robert Osfield
1da57c124f
Added .osg support for osgShadow NodeKit
2007-02-15 17:31:30 +00:00
Robert Osfield
166d624c7f
Added support for using the scenes light source setting to set up the
...
ShadowVolume's effect light parameters
2007-02-15 17:25:14 +00:00
Robert Osfield
644c92218d
Addd an #ifdef _WIN32 to force SingleThreaded usage under Windows when no
...
threading model is specified.
2007-02-15 15:06:18 +00:00
Robert Osfield
272ab99767
Reorganised the text comments so that they are shorter length, and hopefully will
...
avoid VS2003's silly text string limits when compiling osgIntrospection wrappers
2007-02-15 14:53:54 +00:00
Robert Osfield
3eb833c8b8
Twaaked comments
2007-02-15 14:47:06 +00:00
Robert Osfield
ed01ae9387
From André Garneau, Win32 build fixes
2007-02-15 14:04:22 +00:00
Robert Osfield
3fe4be6e70
Added context sharing support.
2007-02-15 12:24:04 +00:00
Robert Osfield
4f2474ece8
Fixed handling of warp pointer for when its called at startup and the
...
event queue isn't yet initialized the window range.
2007-02-15 12:11:16 +00:00
Robert Osfield
36b8ccacdd
Fixed warnings
2007-02-15 09:31:00 +00:00
Robert Osfield
b0ab6b49bf
Updated wrappers
2007-02-15 08:29:27 +00:00
Robert Osfield
91ab187ee1
Added checks into Viewer set up of Camera stats so that stats are reused if already present.
...
Added use of ref_ptr<osg::Stats> into StatsHandler's callbacks
2007-02-15 01:45:44 +00:00
Robert Osfield
6edca062b8
Improved the update of the shadow volume.
2007-02-15 01:23:00 +00:00
Robert Osfield
1eea407ee0
Added support for osg::State::DynamicObjectCount into the RTT codes
2007-02-14 20:44:17 +00:00
Robert Osfield
87ff8e2b55
Added support for sharing context to GraphicsWindowX11
2007-02-14 20:14:45 +00:00
Robert Osfield
f82c34ff11
Added getState()->setGraphicsContext(this); to the various GrpahicsWindow implementations
2007-02-14 17:28:33 +00:00
Robert Osfield
810e7291fc
Added use of Mutex into osg::Stats to better handle multi-threaded usage
2007-02-14 16:24:49 +00:00
Robert Osfield
02ff109746
Changed the initialized osg Drager:::PointerInfo::hitIter to prevent compile problems under Windows
2007-02-14 16:16:38 +00:00
Robert Osfield
d068ffb63a
From Michael Platings, "I was getting a 0 byte memory leak reported when loading 3ds files, so
...
I've changed line 196 from:
viewport->layout.viewL=(Lib3dsView*)calloc(sizeof(Lib3dsView),views);
to:
viewport->layout.viewL= views ?
(Lib3dsView*)calloc(sizeof(Lib3dsView),views) : 0;"
2007-02-14 15:25:04 +00:00
Robert Osfield
d81d579f07
Changed the report of lack of WGL_SWAP_METHOD_ARB so that it is INFO rather than WARN.
2007-02-14 14:58:46 +00:00
Robert Osfield
ff126c3d1d
Added OSG_RUN_FRAME_COUNT env var which enables a limited run of specified
...
frame numbers when Viewer::run is called.
2007-02-14 14:36:38 +00:00
Robert Osfield
07411f3246
Introduced new osg::Object::DataVariance type of UNSPECIFIED, and changed the deafult
...
values of DataVariance to UNSPECIFIED to all types.
2007-02-14 13:18:58 +00:00
Robert Osfield
115cf528a1
Removed debugging run method.
2007-02-14 12:00:33 +00:00
Robert Osfield
89c99a88fa
Added computeDataVariance method into osg::Object and implementations in Drawable and StateSet,
...
and calling of osgUtil::StaticObjectDetectionVisitor in osgViewer::Viewer
2007-02-14 11:24:42 +00:00
Robert Osfield
e8d6cec990
Fixed warning
2007-02-13 22:22:35 +00:00
Robert Osfield
f85eda9c6a
Fixed warnings.
2007-02-13 22:16:18 +00:00
Robert Osfield
1138c312b7
Changed the DeleteHandler so by default it doesn't cache objects
2007-02-13 17:39:42 +00:00
Robert Osfield
fe67a91e83
Added OSG_THREADING environmental variable to osgViewer::Viewer::suggestBestThreadingModel
2007-02-13 16:03:35 +00:00
Robert Osfield
9c434274be
Added support for ColorMask to .ive plugin
2007-02-13 14:42:00 +00:00
Robert Osfield
927dfc0a52
From Brede Johansen,
...
"Geometry.cpp
Make sure number of normals match number of vertices when lit or
vertex-normal pairs are separated when geometries are merged by the
optimizer.
Ancillary.cpp
Improved support for multitexture effect field and use texture
environment from .attr file.
PaletteRecords.cpp
Use search path when looking for shader files.
PrimaryRecords.cpp
Added preset uniforms "TextureUnit0", "TextureUnit1", "TextureUnit2"
and "TextureUnit3" for GLSL shaders."
2007-02-13 14:19:39 +00:00
Robert Osfield
b695160483
Added support for osg::Stencil into .ive
2007-02-13 13:47:37 +00:00
Robert Osfield
e4ffa968a2
From Ulrich Hertlein, added support for osg::BlendColor to .ive format.
2007-02-13 12:17:33 +00:00
Robert Osfield
5fddbfe85c
Added support for osg::BlendColor to .osg plugin
2007-02-13 12:11:32 +00:00
Robert Osfield
264d69e0c9
From Mike Wittman, support for reference parameters
2007-02-13 09:33:35 +00:00
Robert Osfield
3a48c95fc5
Updated wrappers
2007-02-12 18:02:15 +00:00
Robert Osfield
a725e0af7d
From Mike Wittman, "These changes add support for reflection of reference and const reference type representations via osgIntrospection::Type. This covers just the static type information; the dynamic behavior via Type::createInstance/Type::InvokeMethod should not be affected."
2007-02-12 17:14:46 +00:00
Robert Osfield
4ed84daf2f
Updated wrappers
2007-02-12 15:59:53 +00:00
Robert Osfield
d5f2a35a20
Added automatic scaling and translation of help to make sure it always
...
fits on screen
2007-02-12 13:51:24 +00:00
Robert Osfield
fe177e42d5
Added osgViewer::HelpHandler
2007-02-12 13:39:18 +00:00
Robert Osfield
4e97901622
Updated wrappers
2007-02-11 22:01:57 +00:00
Robert Osfield
320599b3d5
Incresed the resolution of the trackball dragger geometry
2007-02-11 21:24:38 +00:00
Robert Osfield
3006bb14f4
Changed osgManipulator::Dragger::handle(..) method to use a nested PointerInfo
...
class to encapsulate the pixel coords, SceneView and picking operations in prep for
making the code more general purpose, and less reliant on classes like osgUtil::SceneView and osgUtil::IntersectVisitor.
2007-02-11 21:12:34 +00:00
Robert Osfield
29e2abca64
Updated wrappers
2007-02-11 12:23:19 +00:00
Robert Osfield
1484ab515e
Changed the osg::Shape related projectors so that they used pointers rather
...
than references.
2007-02-11 12:22:58 +00:00
Robert Osfield
19db0c1674
From Vivek Rajan, new osgManipulator library, with a few minor tweaks and rename for osgDragger to osgManipulator for build by Robert Osfield.
...
Vivek's email to osg-submissions:
"I'm happy to release the osgdragger nodekit to the OSG community. I
implemented the nodekit for my company, Fugro-Jason Inc., and they
have kindly agreed to open source it.
The nodekit contains a few draggers but it should be easy to build new
draggers on top of it. The design of the nodekit is based on a
SIGGRAPH 2002 course - "Design and Implementation of Direct
Manipulation in 3D". You can find the course notes at
http://www.pauliface.com/Sigg02/index.html . Reading pages 20 - 29 of
the course notes should give you a fair understanding of how the
nodekit works.
The source code also contains an example of how to use the draggers."
2007-02-11 10:33:59 +00:00
Robert Osfield
f1a82f35b2
From Vivek Rajan, MatrixDecomposition implementaion, adapted by Robert Osfield
...
to be part of osg::Matrixf and osg::Matrixd classes.
2007-02-10 18:01:37 +00:00
Robert Osfield
760cfeaadb
Cleaned up osgshadow example so that it now relies upon osgShadow for its
...
shadow implementation
2007-02-09 21:31:29 +00:00
Robert Osfield
d6f3befdcf
From Carlo Camporesi, "In attach there is a little bug fix to net plugin. The modify allow the plugin to accept url with port number in this way:
...
http://"address ":"portnumber"/
"
2007-02-09 16:31:27 +00:00
Robert Osfield
7a6d68e9d3
Updated wrappers
2007-02-09 16:27:43 +00:00
Robert Osfield
9aae37e357
Moved the basic ShadowVolume code into osgShadow
2007-02-09 16:03:29 +00:00
Robert Osfield
7b8483e1be
From Paul Martz, "Make DelaunayTriangulator less verbose - It was outputting a non-warning with notify level set to WARN; changed it to INFO to make it less verbose."
2007-02-09 14:21:03 +00:00
Robert Osfield
2a9d2bb25a
Changed GraphicsWindowX11 so that it creates two Display* connextions to the Xserver,
...
one for the graphics thread, one for the main thread that querries events
2007-02-09 13:51:28 +00:00
Robert Osfield
162d08f541
Added #if #else #endif blocks to Viewer::realize() and run() for the purposes of testing
2007-02-09 13:36:44 +00:00
Robert Osfield
a3832d9b78
Removed debug message
2007-02-09 12:08:46 +00:00
Robert Osfield
4f79634bcd
From André Garneau, "Attached is a fix for the hang occuring on Win32 when the thread model is changed.
...
The issue was caused by the mutex in the ViewerDoubleBufferRenderingOperation being released even though they were not owned. This was causing the underlying critical section object lock count values becoming negative; the next time the lock was acquired it would block because of that."
2007-02-08 22:36:16 +00:00
Robert Osfield
2f1bad5b2b
From Brian Keener, fixes for Cygwin filename handling
2007-02-08 22:31:02 +00:00
Robert Osfield
d03e9aee0b
Updated wrappers
2007-02-08 20:27:02 +00:00
Robert Osfield
c2665963bb
Further work on osgShadow::ShadowTechnique API
2007-02-08 19:34:38 +00:00
Robert Osfield
95befaf1ed
Flesh out more of basic ShadowTechnique and ShadowedScene API.
2007-02-08 17:23:40 +00:00
Robert Osfield
47622e6134
Fixed the FlattenStaticTransform visitor so that it excludes subgraphs that
...
contain PagedLOD nodes
2007-02-08 15:47:05 +00:00
Robert Osfield
0d48e62811
Cleaned up readString
2007-02-08 15:01:27 +00:00
Robert Osfield
4f1a1c8b16
Fixed return in readString.
2007-02-08 14:59:20 +00:00
Robert Osfield
19608966d0
Added the threading model to stats
2007-02-08 12:47:35 +00:00
Robert Osfield
0c59589038
Added check in setThreadingModel so that it only sets up threading if the viewer is realized
2007-02-08 12:21:37 +00:00
Robert Osfield
9eb4beea52
Fixed setThreadModel method so that is doesn't try to set up threading unless
...
the viewer is realized
2007-02-08 12:20:40 +00:00
Robert Osfield
b3b420de5d
Updated the handling of closing of windows
2007-02-08 12:14:26 +00:00
Robert Osfield
34847e4135
Added better clean up of paramters on X display in GraphicsWindowX11:closeImplementation
2007-02-08 11:30:57 +00:00
Robert Osfield
10593edfd0
From Stefan Eilemann, addd more extensive XErrorHandler output
2007-02-08 11:26:04 +00:00
Robert Osfield
6d323f235a
Added setting of the DatabasePager's affinity.
2007-02-08 11:24:29 +00:00
Robert Osfield
0f4cd568f6
From Donn Mielcarek, "We generated some bad ive files in our database. In
...
some of the files, the function readInt() would return
a 0 size. While linux will happily continue on,
creating 0 sized arrays, Windows immediately
blows up, with sparks sometimes flying out the
side of the machine!
I added a simple check for zero size in
each of the functions that allocates arrays
based on the size variable, and I thought
I'd pass it along. Now the program will
not die if it encounters an ive file with bad
data."
2007-02-08 10:46:58 +00:00
Robert Osfield
614331ce63
Updated wrappers
2007-02-07 21:56:36 +00:00
Robert Osfield
958b8d74dd
Changed the setting of need to traverse during the update traverse so it is only enabled when animation is switched on.
2007-02-07 21:48:53 +00:00
Robert Osfield
c52207b637
Added new Transform::ReferenceType enum ABSOLUTE_RF_INHERIT_VIEWPOINT to support
...
internal RTT cameras that wish to use the main cameras view/eye point for LOD and other
distance based tests.
2007-02-07 16:32:14 +00:00
Robert Osfield
945faf0133
Fixed bug in AutoTransform::accept() that was related to the accept() method
...
checking the nodemask as it should.
2007-02-07 14:53:58 +00:00
Robert Osfield
2826dafa80
From Stephan Huber, "thomas kirk schrieb:
...
> I put this at the end of realizeImplementation; someone with better knowledge
> of Carbon programming may see a more appropriate place for the call.
I moved your code into the ctor of the OSXCarbonWindowingSystemInterface
so it get called only once. Can you test it again, if it works on your side?
I also disabled multithreaded-rendering because it slowed down the
rendering on my machine by a factor of 3. Perhaps we can make it
optional to test it on other machines.
I had some problems implementing pbuffer-support for os x and stopped it
for now until I have more time to investigate the issues.
"
2007-02-06 20:03:13 +00:00
Robert Osfield
e0163c6ae5
From André Garneau, "Attached is an improved Win32 keyboard handler that should now map key events similarly to the X11 implementation:
...
* Key event handler now reports left or right SHIFT, CTRL and ALT key variants on key press and release events."
2007-02-06 17:34:28 +00:00
Robert Osfield
c5776b1bf3
From Stefan Eileman, fixes for OSX gmake build to allow AGL or X11 implementation of osgViewer
2007-02-06 17:01:20 +00:00
Robert Osfield
f81251bc77
Updated wrappers
2007-02-06 17:00:20 +00:00
Robert Osfield
2236c0576e
Re-enabled processor affinity
2007-02-06 16:23:19 +00:00
Robert Osfield
3de205ec45
Added new Viewer threading model options
2007-02-06 14:38:08 +00:00
Robert Osfield
eeaad74021
Updated wrappers
2007-02-06 14:20:21 +00:00
Robert Osfield
4f441771f0
Fixed Suse9.3 build problem due to different handling Quat copy constuctor
2007-02-06 13:44:20 +00:00
Robert Osfield
bad2a4cc7c
Further work on support for ThreadPerCamera, and improved the efficiency of SingleThraeded
2007-02-06 11:03:13 +00:00
Robert Osfield
cfe737c552
Tweak API and updated wrappers to get wrappers to build
2007-02-05 14:56:41 +00:00
Robert Osfield
ebd68ba063
Added Camera's s/getCameraThread() and updated wrappers
2007-02-05 13:44:16 +00:00
Robert Osfield
ea67cc7a50
Updated wrappers
2007-02-05 12:13:52 +00:00
Robert Osfield
246b28e752
From Gordon Tomlinson, "I have attached the 3 files we had to change to fix a proble we were seeing with using Symbol Fonts
...
// GT: fix for symbol fonts (i.e. the Webdings font) as the wrong character are being
// returned, for symbol fonts in windows (FT_ENCONDING_MS_SYMBOL in freetype) the correct
// values are from 0xF000 to 0xF0FF not from 0x000 to 0x00FF (0 to 255) as you would expect.
// becuase Microsoft uses a private field for its symbol fonts ........
"
2007-02-05 11:48:02 +00:00
Robert Osfield
3c5c4ae242
From Brede Johansen, "I have made some changes to support light sources in the new
...
OpenFlight loader."
2007-02-05 11:14:23 +00:00
Robert Osfield
4914d3974a
From Paul Martz, "Here's my changes to Registry to allow extension alias mapping via a config file. I also attached a sample file that tests the parsing, but this is just FYI and not for inclusion in CVS.
...
To set up extension aliases using a config file, an app calls:
osgDB::Registry::instance()->readPluginAliasConfigurationFile(), passing in the file name as the parameter. (Of course this should be done before loading any files whose names depend on the mapping.) osgDB will search for the file using OSG_FILE_PATH.
The file should contain a line for each mapping, with the "map" extension first, followed by a space or tab, then the plugin identifier. For example, a file containing this line:
flt OpenFlight
would map the ".flt" extension to the OpenFlight plugin."
2007-02-05 10:44:10 +00:00
Robert Osfield
69da91620f
Convert GraphicsThread/GraphicsOperation to more generic OperationsThread/Operation.
...
This paves the way to running cull traversals in seperate threads.
Updated wrappers
2007-02-02 22:30:36 +00:00
Robert Osfield
bee545b82d
From Eric Sokolowski, added support for the new Text line spacing parameter to the .osg and .ive formats.
2007-02-02 16:51:59 +00:00
Robert Osfield
6d9641a78b
Added a concrete osg::DeleteHandler implementation which provides support for
...
retain objects for several frames before deleting them. Also added RenderStageCache
into CullVistor.cpp that is used for handling RTT osg::Camera's that are being
used in double buffered SceneView usage.
2007-02-02 12:41:13 +00:00
Robert Osfield
158921574c
Improved the toggling on/off of thrading modes
2007-02-01 11:07:53 +00:00
Robert Osfield
a7c448a585
Moved the init traversal from cull() to the draw() to prevent graphics context
...
calls being made during the cull traversal - something that breaks the
ThreadPerCamera model in osgViewer
2007-02-01 11:07:26 +00:00
Robert Osfield
8dfc5155f4
Further work on new threading model.
2007-01-31 22:24:20 +00:00
Robert Osfield
019cdd9116
Removed old #if #else #end block
2007-01-31 11:12:58 +00:00
Robert Osfield
493f799a6e
Refactored the ViewerRenderingOperation so that the timer querry code is in a separate ViewerQuerySupport class
2007-01-30 17:38:02 +00:00
Robert Osfield
03dbbd5048
Added automatic aspect ratio adjustmeent to View::setUpViewAcrossAllScreens() and setUpViewOnSingleScreen.
2007-01-30 15:37:30 +00:00
Robert Osfield
f8213d1c53
Updated wrappers
2007-01-30 14:47:13 +00:00
Robert Osfield
77b9a7ae19
From Eric Sokolwsky, "osgText is a useful node kit, but when longer paragraphs are displayed
...
on the screen, it looks more aesthetically pleasing to have a larger
gap between lines than is given by default. I added a new parameter,
lineSpacing, in the Text class to allow the line spacing to be adjustable
by the application. The default value is 0 meaning there is no extra
spacing given. The value should be given as a percentage of the character
height. A good value for longer paragraphs is 0.25 (25%) or more."
2007-01-30 14:32:12 +00:00
Robert Osfield
b8d98a2cfe
Added support for compute average stats attributes in inverse space to improve
...
the quality of frame rate reporting.
2007-01-30 13:48:04 +00:00
Robert Osfield
6acd0e89a1
Disabled the alternating directions of drawing of state sorted render leaves as it
...
was interferring with anaglyphic stereo used in the osgstereimage example.
2007-01-30 12:09:30 +00:00
Robert Osfield
116e7f49a4
Updated wrappers
2007-01-30 11:47:44 +00:00
Robert Osfield
ecedc8d86a
Added Stats::collectStats(string,bool) controls, getAveragedAttribute methods into osg::Stats class, and
...
related support into osgViewer::Viewer and osgViewer::StatsHandler.
Added lazy updating of text in StatsHandler HUD to minimize the impact of
slow text updating on observed frame rates.
2007-01-30 11:40:23 +00:00
Robert Osfield
7b9b13b6c0
Added support for per frame alternating the direction that SORT_BY_STATE bins are
...
rendered. The alternation makes it more likely that OpenGL objects will still
be in video ram.
2007-01-30 09:55:34 +00:00
Robert Osfield
b887226775
Made _useMainThreadForRenderingalTraversal(false)
2007-01-29 22:59:04 +00:00
Robert Osfield
fd0ea388c2
Began work on providing support for threading camera cull traversals in parallel with
...
the previous frames draw traversal. Changes range from osg::State, through osgUtil::RenderBin, through to osgViewer
2007-01-29 22:44:29 +00:00
Robert Osfield
6835996c21
Added very simple relaxing of traits by dividing required red, green, blue, alpha and depth by 2.
2007-01-28 17:32:41 +00:00
Robert Osfield
af6de09ab4
Added set/getRealizeOperation() to Viewer and CompositeViewer
2007-01-28 17:11:21 +00:00
Robert Osfield
25e4fd32ac
Updated wrappers
2007-01-28 09:53:02 +00:00
Robert Osfield
689578c13a
Added osg::PolygonMode to local StateSet to protect it from being affected by
...
stateset manipulator.
2007-01-27 17:57:58 +00:00
Robert Osfield
b8994d4707
Updated wrappers
2007-01-27 17:52:11 +00:00
Robert Osfield
5bf2dfe3b1
Added _sorted flag into RenderBin to prevent a bin being sorted twice in one frame
2007-01-27 12:54:33 +00:00
Robert Osfield
36330f7e40
Changed osgUtil::RenderBin and osg::State to allow nesting of StateSet's associated with RenderBin's.
2007-01-27 11:13:01 +00:00
Robert Osfield
7232a831da
Added osg::FrameStamp::set/getSimulationTime().
...
Added setting of osg_SimulationTime and osg_DeltaSimulationTime to the uniforms set by SceneView
Added frame(double simulationTime) and advance(double simulationTime) parameters to
osgViewer::SimpleViewer, Vewer and CompositeViewer.
Updated various examples and Nodes to use SimulationTime where appropriate.
2007-01-25 12:02:51 +00:00
Robert Osfield
13dd5acb63
From Gordon Tomlinson, fixes to BoundingSphere::expandBy(BoundingSphere&)
2007-01-25 10:02:20 +00:00
Robert Osfield
577313ae7d
Updated wrappers
2007-01-24 12:59:11 +00:00
Robert Osfield
fd6f5c87b8
Added support for GUIEventAdapter::setHandled
2007-01-24 12:28:18 +00:00
Robert Osfield
a01cade782
Added setHandled/getHandled to osgGA::GUIEventAdapter
2007-01-24 12:21:29 +00:00