Robert Osfield
d07f3d5662
Added optional usage of DCMTK in the dicom plugin
2008-09-15 19:59:12 +00:00
Robert Osfield
b55ed0c56b
Added reading of whole directories of images
2008-09-13 13:38:06 +00:00
Robert Osfield
b000198cc4
Removed use of ints and reading from gl_FragColor in shader
2008-09-12 15:41:30 +00:00
Robert Osfield
ff299eb104
Introduced osgTerrain::WhiteListTileLoadedCallback for the management of options terrain layers
2008-09-11 13:21:58 +00:00
Robert Osfield
a214a677f8
First cut of WhiteListTileLoadedCallback
2008-09-11 10:40:48 +00:00
Robert Osfield
4f6b405edf
Added support for reading source image file names from the command line.
2008-09-11 09:05:16 +00:00
Robert Osfield
b4b5b5ea41
Introduced TerrainTile::TileLoadedCallback
2008-09-10 18:11:54 +00:00
Robert Osfield
b0cf7823a7
Added playing of the imagesequence on creation of the imagesequence
2008-09-10 11:27:00 +00:00
Robert Osfield
5484981693
Removed std:: from in front of strcmp and added a string.h
2008-09-01 10:19:06 +00:00
Robert Osfield
9499cfa420
Improved the GLSL implementation.
2008-08-26 17:40:04 +00:00
Robert Osfield
6c047f7abe
Added testing of max texture size using a realize operation
2008-08-25 11:37:53 +00:00
Robert Osfield
94c6c9d32a
Added support for event handler for non shader path, enable alpha func
2008-08-25 10:38:39 +00:00
Robert Osfield
8d8852bc23
Added command line arguments to Viewer constructor, and added meaningful error message when no 3d image is provided
2008-08-25 09:53:24 +00:00
Robert Osfield
f5105510f3
Added support for reading the image transform from UserData in the form of a Matrix.
2008-08-22 16:35:49 +00:00
Robert Osfield
3cec676d98
Added --mip command line option which enables Maximum Intensity Projection filtering
2008-08-18 15:08:04 +00:00
Robert Osfield
38f6cddc2c
Changed osg::ImageSequence::set/getDuration to set/getLength() to be in keeping with the
...
osg::ImageStream's getLength().
2008-08-15 16:21:44 +00:00
Robert Osfield
b6292f4537
Fixed the name of _playToggle
2008-08-15 13:07:04 +00:00
Robert Osfield
927942a0f8
Further work on osg::ImageSequence, improving pause functionality, and introducing new seek(double time) method
2008-08-15 12:45:20 +00:00
Robert Osfield
56001f3d82
Added event handler to toggling looping and play/pause
2008-08-14 16:28:45 +00:00
Robert Osfield
5cac386fa6
Renamed enums in osgWidget from ALLCAPITALS to normal OSG conventional of AllCapital
2008-07-25 20:50:42 +00:00
Robert Osfield
c9dc578186
Added support for pruning old images, recording the Duration in the .osg file, and -o filename output support in osgimagesequence.
2008-07-22 16:44:49 +00:00
Robert Osfield
66c2add024
Improved position when multiple videos are provided
2008-07-22 15:58:40 +00:00
Robert Osfield
669d6be0b2
Fixed handling of TextureCubeMap's with mipmapped/ImageSequence/PBO's.
2008-07-22 14:47:59 +00:00
Robert Osfield
041a06b89d
Further work on osg::ImageSequence/osgDB::ImagePager
2008-07-21 21:00:57 +00:00
Robert Osfield
acd7e65687
Added basic image sequencing
2008-07-21 17:28:22 +00:00
Robert Osfield
dc19bcc7e0
Added --login <url> <username> <password> http authentication.
2008-07-21 15:05:08 +00:00
Robert Osfield
ac61676368
Initial cut of osgimagesequence example
2008-07-21 10:57:06 +00:00
Robert Osfield
b068777c22
Refactored the MultiTextureControl node callback so that the update is now
...
done as an update callback, with the elevation aquired via a cull callback
2008-07-16 15:58:15 +00:00
Robert Osfield
a20e5791d9
From Jeremy Moles, Updated file references to reflect new data in OpenSceneGraph-Data
2008-07-15 22:30:51 +00:00
Robert Osfield
8fe0820bb8
Converted tabs to four spaces
2008-07-15 22:03:59 +00:00
Robert Osfield
b343cbfc5f
Removed now redundent example
2008-07-15 19:23:48 +00:00
Robert Osfield
f1138fa684
From Jean-Sebastian Guay, "Here are the CMakeLists.txt files for the osgWidget examples, changed to use SETUP_EXAMPLE like the other examples."
2008-07-15 18:53:16 +00:00
Robert Osfield
43cedf9eb4
Fixed typo
2008-07-15 18:12:17 +00:00
Robert Osfield
c2b77aa08e
From Jeremy Moles, import of the osgWidget NodeKit, sourced from the original http://osgwidget.googlecode.com/svn/trunk
...
Notes from Robert Osfield, I've merged osgWidget trunk, and added/changed CMakeLists.txt file to make it suitable for inclusion in the core OSG, and moved imagery/scripts/shaders out into OpenSceneGraph-Data
2008-07-15 17:21:25 +00:00
Robert Osfield
ccb50019e4
Cleaned up osgkdtree example
2008-07-12 11:19:25 +00:00
Robert Osfield
2b5708888e
From Adrain Egli, "i added a default scene with 7 different draggers attached. it's more easy to test the draggers."
2008-07-11 19:52:25 +00:00
Robert Osfield
15e5bdbcae
Added range of camera manipulators and a center of screen test intersection that
...
is insticated by pressing 'c' key
2008-07-09 19:28:00 +00:00
Robert Osfield
3965fe357b
Moved KdTree build code into osg::KdTree
2008-07-06 12:14:19 +00:00
Robert Osfield
44d144997e
Added prelimnary KdTree data structure and automatic kdtree build support
...
into osgDB::Registry/osgTerrain so that newly created subgraphs can have
KdTree built on all osg::Geometry automatically on load/creation.
2008-07-04 15:57:48 +00:00
Robert Osfield
e2ae39c8f6
Introduced bounding boxes to KDLeaf and KDNode structs
2008-07-03 17:18:14 +00:00
Robert Osfield
178d6ff423
Added new data structure + build algorithm that places triangles into leaves
...
without being shared, but with varying the boundaries of leaves so that they
may overlap.
2008-07-03 15:49:28 +00:00
Robert Osfield
7db303b16b
Added header guards
2008-07-03 11:23:44 +00:00
Robert Osfield
f0defbd824
Refactored example so that the example will be able to run different kdtree data strucutres/algorithms.
2008-07-03 11:22:23 +00:00
Robert Osfield
1729ec0819
Implement an experiemental triangle kdtree building support
2008-07-03 10:24:20 +00:00
Robert Osfield
82ed445a31
Added Vec3Array arrange pointer to avoid dynamic cast
2008-07-01 13:56:02 +00:00
Robert Osfield
12044a43d9
From Eric Sokolowski, Cmake support for osgviewerCocoa
2008-06-26 13:08:24 +00:00
Robert Osfield
275811d02a
From Eric Sokolowsky, "I have made a number of changes intended to get a few things working better on OSX. However, since I'm still pretty new at Mac development and cmake I'm not entirely certain that the changes I have made are benign on other platforms. I have tested these changes on Leopard with CMake 2.6 generating Xcode 3.0 projects, compiling on ppc and i386 for 10.5 and 10.4, and on Linux (CentOS) and everything still seems to work ok. Here are the changes I made (against OSG svn as of this afternoon):
...
- Added osgviewerCocoa example to APPLE builds
- Fixed corrupt Xcode project generation with CMake 2.6 dealing with ADD_DEFINITIONS and CMake Policy CMP0005 on Leopard
- Resolved CMP0006 warning for examples and programs by setting BUNDLE DESTINATION to same as RUNTIME DESTINATION with CMake 2.6
- Fixed freetype plugin on Leopard to avoid OpenGL linking problem
- Figured out how to use a custom Info.plist included in the project (see osgviewerCocoa application CMakeLists.txt)"
2008-06-23 09:57:45 +00:00
Robert Osfield
113a77b219
Converted tabs to four spaces
2008-06-21 11:34:01 +00:00
Robert Osfield
37d81679b7
From Paul Melis, "Here is a reworked version of the osgviewerWX example. It changes the GraphicsWindowWX to only inherit from osgViewer::GraphicsWindow and adds a standalone widget, called OSGCanvas, that derives from wxGLCanvas. This solves a problem with the GraphicsWindowWX instance being destructed twice (see "Crash in osgviewerWX" of June 12th on osg-users). At program exit, the main frame deletes all of its children widgets and therefore calls GraphicsWindowWX's destructor, bypassing OSG's reference counting. The GraphicsWindowWX instance is then later destructed a second time when the reference held by osg::Camera goes to zero. This bug isn't exposed by the example directly, but if people are going to use the example as a basis (like the poster in the mentioned thread) they very likely will run into this problem.
...
"
2008-06-19 13:49:36 +00:00
Robert Osfield
7ae28bea0d
Added --fbo-samples value and --color-samples value command line paramters for enabling fbo multisampling
2008-06-18 14:21:22 +00:00
Robert Osfield
20e6ec7b23
From Jean-Sebastien Guay, "The new osgscreencapture example was being installed to bin instead of to share/OpenSceneGraph/bin, this is because the CMakeLists.txt used SETUP_APPLICATION instead of SETUP_EXAMPLE. Corrected CMakeLists.txt attached.
...
"
2008-06-06 16:45:07 +00:00
Robert Osfield
b6a0f3d8d0
Cleaned up implementation to only use simple structure
2008-06-06 14:10:20 +00:00
Robert Osfield
ed45e32355
Introduce a lower overhead data structure for leaves.
2008-06-06 13:21:27 +00:00
Robert Osfield
aa73e1d1d4
Added update traversal to run prior to doing kdtree build to make sure that
...
costs in build osgTerrain databases isn't incurred during the build traversal.
2008-06-06 10:51:23 +00:00
Robert Osfield
ac068178aa
Added timing code
2008-06-05 18:52:29 +00:00
Robert Osfield
a9b1ea660d
Basic implementation of kdtree generation based on vertices
2008-06-05 17:28:06 +00:00
Robert Osfield
9212d4dd95
Further work on fleshing out basic classes
2008-06-04 17:59:39 +00:00
Robert Osfield
338be0b926
Fleshed out some basic kd-tree data structures.
2008-06-03 17:29:27 +00:00
Robert Osfield
8d0c7890ce
First cut of osgkdtree example, this will be used as a base of the development of
...
native kdtree support to help speed up intersection testing.
2008-06-03 16:13:49 +00:00
Robert Osfield
5711964481
Added unit test to smoke out a thread issue with using ofstream("/dev/null") inside
...
osg::notify()
2008-06-03 11:28:16 +00:00
Robert Osfield
1047f970bb
From Adrian Egli, improvements to ParallelSplitShadowMap implementation
2008-05-28 14:11:22 +00:00
Robert Osfield
aee0e8dc37
Introduced a TerrainHandler that adjust the sameple ratio and vertical scale
...
of terrain interactively using the 'r','R' and 'v','V' keys respecitvely.
2008-05-27 15:28:39 +00:00
Robert Osfield
ae303e38e9
From Paul Melis, "Here is an update to the osgviewerWX example. Keyboard events were not always received because the GraphicsWindowWX wasn't receiving focus. It now receives focus when the mouse enters the window.
...
* I split the mouse handling from a monolithic method to separate ones, slightly cleaner than a whole bunch of if()'s, especially with another case of the mouse entering the canvas.
* I changed the EVT_KEY_DOWN handler to an EVT_CHAR handler, although that now makes the up and down handler assymetric. The new down-handler returns translated key codes, so when you press the S key (without anything else), it actually returns 's' and not 'S' as the EVT_KEY_DOWN did. This means that statistics can be called up in the viewer window, while the example previously only printed a "Stats output:" line to the console. I'm not truly happy that the up handler returns _untranslated_ key codes. But solving this completely would probably mean adding some table that translated from wxWidgets' untranslated key codes to OSG's internal ones. This might be interesting to add, as anyone using OSG + wxWidgets in any serious manner would also have to add this.
* I commented out the evt.Skip()'s in the keyboard handlers as these would only be necessary if there were some key events that are not handled. But currently all key events are simply forwarded.
* I changed the handling of a mouse drag to a more general mouse move"
2008-05-26 21:09:54 +00:00
Robert Osfield
7592e50cde
Introduce --pbuffer-only width height option, and added fps reporting to stats output
2008-05-26 16:25:31 +00:00
Robert Osfield
57ce3f820e
Added basic --pbuffer width height support
2008-05-26 15:41:54 +00:00
Robert Osfield
7aac7ef381
Added better stats reporting
2008-05-26 14:30:48 +00:00
Robert Osfield
bb1f6ff7c1
Added feedback of pixel format chosen for read back
2008-05-26 12:01:24 +00:00
Robert Osfield
8ed9b303f1
Added automatic selection of the pixel type according to the window type
2008-05-26 11:59:25 +00:00
Robert Osfield
d2afe3e956
Added option for doing triple buffering, and set the default read format
...
to GL_RGBA
2008-05-26 11:53:51 +00:00
Robert Osfield
dc7db11e63
Switch to using an inital draw callback when use --start-frame
2008-05-25 22:06:41 +00:00
Robert Osfield
5664c51cf0
Added option for setting whether the front or back buffer should be read using
...
--front and --back command line options.
2008-05-25 21:52:32 +00:00
Robert Osfield
28fd4b07c9
Added option for controlling whether the front buffer is read at the start of the
...
frame or the back buffer at the end of the frame.
2008-05-25 21:35:39 +00:00
Robert Osfield
cc07d064bf
Changed default format to GL_BGR
2008-05-24 08:13:55 +00:00
Robert Osfield
90308d22aa
Added single buffered and double buffered PBO support, and --no-pbo,
...
--single-pbo and --double-pbo command line parameters
2008-05-23 16:26:03 +00:00
Robert Osfield
f9f1aab67d
Added basic glReadPixels code
2008-05-22 17:50:22 +00:00
Robert Osfield
fd76054eac
Added camera final callback attachment code.
2008-05-22 15:43:01 +00:00
Robert Osfield
0a3737eb2c
Fixed name of source file
2008-05-22 13:11:23 +00:00
Robert Osfield
29d067639c
Added new osgscreencapture example folder, implementation to follow
2008-05-22 13:10:40 +00:00
Robert Osfield
01f58ffbb2
From Jeremy Moles, fixed window resize problem
2008-05-09 10:27:59 +00:00
Robert Osfield
4345382316
From Jeremy Moles, osgviewerGTK example
2008-05-08 16:39:10 +00:00
Robert Osfield
4f881b9a09
From Jeremy Moles,"Here's a small example I us to test text rendering in osgWidget; I
...
figured it might be helpful to folks in OSG who need to do the same.
"
2008-05-07 13:46:24 +00:00
Robert Osfield
53630a2b14
From Wojchiech Lewandowski, add missing setDataVariance(DYNAMIC) and extra event handlers
2008-04-24 16:24:16 +00:00
Robert Osfield
234bfeb648
Removed hardware down sampling hack from GeoemtryTechnique and replaced with Terrain::g/setSampleRatio()
...
usage.
2008-04-22 11:39:47 +00:00
Robert Osfield
1b29fb8933
From John Shue, build fix for QT 3.x
2008-04-17 11:12:21 +00:00
Robert Osfield
db1bd13c4c
From Tim Moore, compile fix for gcc 4.3
2008-04-15 11:50:34 +00:00
Robert Osfield
f9c70f2f76
Added --unit entry for controlling which texture unit the overlay works on.
2008-04-11 14:14:28 +00:00
Robert Osfield
6fed4022a6
Added reference to osgstereomatch example to osgmultiplerendertargets.
...
Added usage example use OpenSceneGraph-Data/Images examples
2008-04-11 13:04:21 +00:00
Robert Osfield
98a2289a59
From Jose Delport, a MRT example implementing stereo matching.
2008-04-11 11:58:27 +00:00
Robert Osfield
11f9575b24
From Melchior Franz, "The GUIEventAdapter header file had KeySymbols for the super and
...
hyper keys defined already, but these modifiers were missing in
GUIEventAdapter::ModKeyMask, and the EventQueue ingored them as well.
The attached diff/archive adds the missing parts for Super/Hyper
modifier key support.
I'm aware that this might not be supported on all systems/keyboards
out of the box, but decided to submit it anyway because:
- developers are aware of differences between input devices
(Some mice have scroll wheels, others don't. Some have five or
more buttons, some have only one. Some keyboards don't have
numpads, some have AltGr, some don't etc.)
- even if someone relies on Hyper/Super in distributed software,
this is easy to fix and doesn't create lock-in conditions
- while the names Hyper/Super may only be common on X11, they are
just symbol names and not OS-specific
- even though some systems might not offer these additional modifiers
by default, it's likely that all of them have at least 8 modifier
levels internally, so it should only be a matter of OS configuration
to make them work
- having super/hyper available is useful to offer a user ways
to define local key definitions that are safe from collisions with
predefined "official" key assignments"
2008-04-11 11:10:12 +00:00
Robert Osfield
22edadcdf3
Added --mouse option to enable mouse tracking, and fixed bug in assumption
...
that nv is not null.
2008-04-11 10:10:40 +00:00
Robert Osfield
fb5c839b31
From Jose Delport, introduced osgmultiplerendertargets example
2008-04-02 13:48:41 +00:00
Robert Osfield
49accb1635
Reordered set up of scene and event handlers to prevent warning
2008-03-28 15:28:03 +00:00
Robert Osfield
6396a156a2
Renamed osgTerrain::TerrainSystem to osgTerrain::Terrain
2008-03-27 11:55:03 +00:00
Robert Osfield
35c5bd2c92
Renamed Terrain to TerrainTile
2008-03-27 10:55:39 +00:00
Robert Osfield
a9d283ca73
Introduce TerrainSystem node which decorates a complete terrain model made up of Terrain tiles.
2008-03-26 20:06:54 +00:00
Robert Osfield
434337b7c8
From Tomas Hnilica, "
...
Attached is modified source of AdapterWidget.cpp file from osgviewerQT
example. Original was token today from SVN - trunk. (2.3.6).
--mdi option needs to be set to run MDI version.
Few notes:
- tested on Windows box (Win XP)
- using QT4
- I was not able to execute the example with QOSGWidget - had same
error like described in [osg-users] "fate error using QOSGWidget in
develop release
2.3.0" thread from Shuxing Xiao, 2008-01-08.
- problems are described in source
--
And Later post:
The problem of keypress events was solved by QT community, attached is
repaired AdapterWidget.cpp file.
In the AdapterWidget class constructor following line was added:
setFocusPolicy(Qt::ClickFocus);
Scene disappearing by resizing to minimum still needs to be fixed..."
2008-03-25 15:21:14 +00:00
Robert Osfield
920554c4f7
From Wojciech Leandowski, "I removed few lines of code that were setting Threading mode and Screen mode. I believe they are now not neccessary because the same does osgViewer::Viewer argument parser. In fact argument list does not contain these args after they were parsed by osgViewer::Viewer constructor.
...
I also allowed myself to add ThreadingHandler to the example."
2008-03-25 11:50:28 +00:00
Robert Osfield
26526038ca
Added mutex to prevent multiple cull threads changing the MultiTextureControl at one time.
2008-03-24 18:03:19 +00:00
Robert Osfield
584882ad24
Added full range of cameras manipulators to osgmultitexturecontrol example
2008-03-24 10:53:14 +00:00
Robert Osfield
1d1dcf2cf3
To osg::AutoTransform added support for MinimumScale, MaximumScale and AutoScaleTransitionWidth parameters
...
and a new scheme for computing the scaling when using autoscale that introduces smooth
transitions to the scaling of the subgraph so that it looks more natural.
2008-03-18 15:37:38 +00:00