Robert Osfield
09cef410ec
Added releaseContext to end of GraphicsThread::run()
2007-01-14 20:23:47 +00:00
Robert Osfield
35ec6cee40
From Riccardo Corsi, "this should be the final version of the qt-plugin ported to windows and cleaned up to avoid crashes on exit.
...
Stephan and I tested it on Mac and Win.
Just a couple of notes:
* the plugin is able to load both regular 2D images and movie stream. There is a #define QT_HANDLE_IMAGES_ALSO mechanism to indicate whether to use it for images or not. This is defined by default on Mac only, to avoid conflicts with the standard windows plugins. See comments on QTUtils.h
* de-initialization of quicktime before exit is now left to an observer, which calls exitQuicktime() when last media loaded with the plugin is released. This prevent a crash on exit without need of any extra call external to the plugin."
2007-01-12 22:07:33 +00:00
Robert Osfield
785fd5c0d9
From Stephan Huber, "New features:
...
+ Multi-display-support
+ automatic hiding of the menubar/dock if one of the windows intersects
the menubar/dock
Bugfixes:
+ event-handling was done by the first opened window, other windows did
not receive events -- fixed
+ mouse-coordinates were absolute, now they are relative to the window.
known bugs:
+ windows with decoration and in fullscreen-size are moved by the system
a little bit, so that the titlebar is accessible/visible. So if you want
real fullscreen-windows, don't decorate the window :)
I updated the XCode-project-file so all ported examples are linked
against osgViewer."
2007-01-12 21:33:19 +00:00
Robert Osfield
694b304c00
Added Viewer::setEndBarrierPosition method, change Viewer::setKeySetsDone(int) to setKeyEventSetDone(int),
...
added support for toggling threading model and end barrier position into osgviewer
2007-01-12 21:05:39 +00:00
Robert Osfield
5a515914bc
Moved the signalBeginFrame to the start of the rendering traversal.
2007-01-12 19:09:24 +00:00
Robert Osfield
509ac7fb1a
Add manually sync of the EventQueue's startTick with the osg::Timer::startTick
2007-01-12 14:45:10 +00:00
Robert Osfield
5c78d06dad
Added a default StateSet to osg::View's master Camera. Wired up osgViewer::Viewer so
...
that the master Camera's StateSet is passed to osgUtil::SceneView to use as its global StateSet.
2007-01-12 12:10:06 +00:00
Robert Osfield
b961179d83
Added setting of DisplaySettings
2007-01-11 17:00:09 +00:00
Robert Osfield
7249d5c122
Updated wrappers
2007-01-11 15:54:11 +00:00
Robert Osfield
ab2d9520a6
Fixed the setWindowSize so that it sets the input range to 0,0,width,height rather
...
than x,y,x+width,y+height as mouse coordinates move relative to the window, not the
screens origin.
2007-01-11 14:53:34 +00:00
Robert Osfield
374f8e30a4
Added DisplaySettings support into osgViewer::Viewer
2007-01-11 12:06:24 +00:00
Robert Osfield
5ee30edbea
Added support for setThreadSafeRefUnref into TexGenNode
2007-01-11 10:35:03 +00:00
Robert Osfield
dd958be8a4
Added setThreadSafeRefUnref, resizeGLObjectBuffers and releaseGLObjects to OverlayNode
2007-01-11 10:21:11 +00:00
Robert Osfield
c4279bd5f1
Ported following examples to osgViewer:
...
osgparticleeffects
osgphotoalbum
osgpick
osgpoints
osgpointsprite
osgprecipitation
osgprerender
osgprerendercubemap
osgreflect
osgscalarbar
osgscribe
osgsequence
osgplanets
2007-01-10 13:52:22 +00:00
Robert Osfield
c5082cb85c
Added support for vertex ratios into LineSegmentIntersector.
2007-01-10 10:40:12 +00:00
Robert Osfield
4954262eb0
Added View::computeIntersection implementation for a node withing a scene graph.
2007-01-10 10:09:05 +00:00
Robert Osfield
4d4b342e97
Added View::computeIntersections methods
2007-01-09 17:35:46 +00:00
Robert Osfield
7626169283
From Jan Ciger, Tolga Abaci, Bruno Herbelin : OpenVRML 0.14.3 based .wrl/VRML plugin
2007-01-09 14:35:59 +00:00
Robert Osfield
77e300100c
From Geoff Michel, "New delaunay triangulator attached. I hadn't realised that the erase() method was not erase (first, last) but erase (first, one after the last one you want deleted). This made a big difference; however some of the edges of the terrain were not included as edges in the terrain so I increased the size of the supertriangle, which works but reduces accuracy due to the larger range of coordinates in the supertriangle. (A larger supertriangle forces the triangles using supertriangle vertices to be long and thin, making the triangulation fit the convex hull of the terrain.)
...
The loss of accuracy should not affect 'normal' users with terrains that are roughly square (say up to 100:1 aspect ratio) and where the Z range is comparable to the X-Y range. Retested with Pauls data, amalric's strange polygon constraint and the standard test constraints.
I also added 2 tests for routines with a NULL argument passed to them (no-one would usually pass a NULL pointer to these routines unless - as I did in testing- you remove some of the constraints but still pass their pointer to the routine). And I removed 3 tests for triangles which are already removed when generating the geometry.
NB Paul - the previous delaunay triangulator fails under VS8 IF it has any constraints as it attempts to use some vertices that have already been deleted when applying the constraints to edges. Under VS6 and less rigorous compilers it works as the deleted vertices are still in the points stl::Vector; however any added vertices would replace one of the supertriangle vertices with non-disastrous but wrong results."
Note, merged with latest name changes in CVS.
2007-01-09 11:42:49 +00:00
Robert Osfield
d6d1a46db9
From Stephan Huber, GraphicsWindowCarbon implementation
2007-01-09 10:06:20 +00:00
Robert Osfield
b039728bf1
Fixed typo
2007-01-09 09:14:25 +00:00
Robert Osfield
96b2b93edc
Build fixes
2007-01-08 22:54:02 +00:00
Robert Osfield
9454bafc8c
Removed debug messages
2007-01-08 22:40:56 +00:00
Robert Osfield
3c79e82fc7
Fixed comment
2007-01-08 21:57:37 +00:00
Robert Osfield
462803fd57
From Paul Martz, speeling fixes for Tessellator/Tessellation.
2007-01-08 21:29:49 +00:00
Robert Osfield
7f5aaa8424
Improved resizeGLObjectBuffers support
2007-01-08 20:46:56 +00:00
Robert Osfield
709d2fa435
Improved the handling a releaseGLObjects() and add setThreadSafeRefUnref and resizeGLObjectsBuffers methods
2007-01-08 20:40:29 +00:00
Robert Osfield
77f0f74920
Added releaseContextImplementation method
2007-01-08 19:58:58 +00:00
Robert Osfield
536f9d65b1
Updated wrappers
2007-01-08 19:33:31 +00:00
Robert Osfield
16d1c00a3d
Changed the return types of makeCurrent to bool, and added a bool GraphicsContext::releaseContext method
...
along with implementations in osgViewer.
2007-01-08 19:29:59 +00:00
Robert Osfield
4a5eda6522
Added GraphicsContext::ResizedCallback and GraphicsContext::resizedImplementation.
...
Added message on non implementation of GraphicsContext::valid().
Added prelimary GraphicsContext clean up support.
2007-01-08 16:20:10 +00:00
Robert Osfield
b9f629f0cb
From Mathias Fröhlich, txf plugin for reading .txf textured texture files.
2007-01-08 12:04:04 +00:00
Robert Osfield
fdc6e675aa
Updated wrappers
2007-01-08 11:37:09 +00:00
Robert Osfield
02bda82b55
From Paul Martz and Robert Osfield, renamed include/osgUtil/Tesselator and associated classes/references to Tessellator etc.
2007-01-08 11:23:52 +00:00
Robert Osfield
773fbd1b16
Added setThreadSafeRefUnref to LightSource
2007-01-07 10:00:50 +00:00
Robert Osfield
0cd64c8c4f
Added View::setUpViewOnSingleScreen(uint) method to help set up view on
...
a single full screen window
2007-01-06 21:06:35 +00:00
Robert Osfield
fea694a0bf
Ported osgcluster to osgViewer.
2007-01-05 21:19:01 +00:00
Robert Osfield
ee5adcdae5
Fixed genwrapper to add include of osg/Camera.
2007-01-05 20:28:35 +00:00
Robert Osfield
2913cb9422
Updated wrappers
2007-01-05 17:21:35 +00:00
Robert Osfield
9a4209c61b
Simplified the nameing of updateTraversal etc methods
2007-01-05 16:48:04 +00:00
Robert Osfield
9fcace0e73
Added GraphicsContext support for clearing the graphis context. The clearing
...
is off by default (ClearMask is 0), but can be switched on when ClearMask is
non zero. GraphicsContext::clear() is called after each swap buffers
2007-01-05 15:24:06 +00:00
Robert Osfield
fc07efa656
Added int return type of Viewer::run().
2007-01-05 13:16:24 +00:00
Robert Osfield
23ac972d4e
Added a workaround for computing the time of an event.
2007-01-05 13:01:08 +00:00
Robert Osfield
3d1c971bca
Removed commented out checkEvents calls
2007-01-05 12:22:24 +00:00
Robert Osfield
552bda4cc5
Added Viewer::isRealized() and run() methods to make it easier to
...
set up and run a viewer, taking care of realized() calls if not already
done, and assigning trackball manipulator if not already assigned.
2007-01-05 10:59:23 +00:00
Robert Osfield
0985a06572
Moved the set of GraphicsContext RenderingOperations into Viewer.
2007-01-04 21:49:02 +00:00
Robert Osfield
fc061f7b15
In Viewer::realize() added default fallback of calling setUpViewAcrossAllScreens()
...
when no windows have previously been set up.
2007-01-04 21:35:11 +00:00
Robert Osfield
1fd2047cf5
Added Viewer::setKeySetsDone(int) to allow developers to specify which
...
key should set done and cause the main loop to exit.
2007-01-04 21:28:16 +00:00
Robert Osfield
cb65524851
Changed debug messages to INFO
2007-01-04 21:18:03 +00:00
Robert Osfield
9a31b7652e
Added mutex to lock of ReentrantMutex
2007-01-04 20:50:35 +00:00