Commit Graph

81 Commits

Author SHA1 Message Date
Robert Osfield
8350eda616 Added std:: infront of cout instances. 2003-04-11 06:50:15 +00:00
Robert Osfield
aaa761e333 Added tests for presense of extensions to osgcubemap, osgvertexproram and
osgmultitexture examples.

Added osg::VertexProgram::Extensions class to better handle multiple graphics
context vertex program extensions.
2003-04-10 19:32:32 +00:00
Robert Osfield
52d2d8eaff Moved the osgcameragroup example across to being just based on
osgProducer::OsgCameraGroup with no usage of osgGA manipulators.

Removed redundent files from osgProducer.
2003-04-10 15:23:49 +00:00
Robert Osfield
8b03d59be3 Added support for modifying the osg::Texture*:Extensions stuctures.
Added an example modifying osg::Texture::Extensions to osgtext.  Optionally
compiled out by default.
2003-04-10 13:41:45 +00:00
Robert Osfield
0dd724e8b7 Changed the '-c' commandline option to '-m' to avoid overlapp with -c
used for config files.
2003-04-10 10:21:20 +00:00
Robert Osfield
2e87dcd804 Added desciptions to all the demos. 2003-04-09 11:44:32 +00:00
Robert Osfield
2061b1bdd3 Fixed warning. 2003-04-09 10:11:56 +00:00
Robert Osfield
b02917e7a2 Fixed type of osg::ApplicationUsage::set/getApplictionName(), updated
demos accordingly.

Made OsgCameraGroup set the _applicationUsage to the
osg::ApplicationUsage::instance() when no ArgumentParser is supplied.

Added export to osgProducer::ViewerEventAdapter.
2003-04-09 08:20:08 +00:00
Robert Osfield
06e773cefb Fixed warning. 2003-04-08 20:05:00 +00:00
Robert Osfield
e928bca4c9 Changed the Viewer::realize() calls across to not using the threading paramter
leaving it up to the Viewer to specify the mode (which by default is MultiThreaded).
Added a check for the presence of osgParticle systems so that threading is
disabled in this case.
2003-04-08 15:18:45 +00:00
Robert Osfield
5f8411ac5c Changed the KeySwichCameraManipulator::setNode() so it set all camera's
attached to it.
2003-04-08 13:10:47 +00:00
Robert Osfield
0d45181aff Removed the output of command line usage when no arguments are passed since
this example doens't need paramters.
2003-04-08 09:48:02 +00:00
Robert Osfield
564077643f Set the fusion distance ratio to 1/300.0f to compensate for the coords
of the hang gliding database being so small, this allow the scene to be
viewed in stereo and still look a convincing size.
2003-04-07 14:57:18 +00:00
Robert Osfield
0df1b28672 Added osgwindows example which sets up and Producer::CameraConfig up
and uses that to create multiple windows.
2003-04-07 10:20:34 +00:00
Robert Osfield
49a28660dc Added the usage report to the examples for when no arguments are passed
to the examples.
2003-04-06 21:32:44 +00:00
Robert Osfield
908164d58a Fixed for new implemention osg OsgCameraGroup::setView(). 2003-04-06 18:18:52 +00:00
Robert Osfield
e60ddd4916 Fixed setView to work with new OsgCameraGroup::setView 2003-04-06 13:29:02 +00:00
Robert Osfield
c7a7bd03cb Added support for recording animation paths in the osgProducer::Viewer. 2003-04-05 22:24:48 +00:00
Robert Osfield
79fd5786d8 Fixed manipulator to work correctly with new osgGA::GUIEventAdapter
code.
2003-04-05 20:02:42 +00:00
Robert Osfield
5dbe1f0d0b Added Images/ infront of dog_left and dog_right images. 2003-04-05 19:54:51 +00:00
Robert Osfield
75b591e70b Added a couple ability of offset the images relative to each other
horizontally and vertically to allow better comenstation for mismatched
imagery.
2003-04-05 19:40:18 +00:00
Robert Osfield
cac6642de5 Improvements to the handling of warp pointer call on start up. 2003-04-05 07:19:40 +00:00
Robert Osfield
169bf25f77 Implemented support for float x and y mouse positions, and normalization of
mouse coords in osgGA::GUIEventAdapter, and ported osgGA camera manaipulators
to use the new normalized values.

Moved osgProducer across to tracking the window dimensions and ensure that the
internals values in osgProducer::EventAdapter are kept consistent.  Moved
the warp pointer in Viewer across to using KeyboardMouse::positionPointer().
2003-04-04 19:10:37 +00:00
Robert Osfield
e0d7709d50 Added code to set the colour of each geometry to white to prevent
colours from the text being inherited.
2003-04-04 08:39:58 +00:00
Don BURNS
03a0b4f5de Changes to fix compiles on Mac OS X 2003-04-03 08:14:49 +00:00
Robert Osfield
fea6ad3101 Changed colour of anisotropic text in osgtexture2D example.
Removed the save test.osg call in osgkeyboard.
2003-04-02 11:57:23 +00:00
Robert Osfield
7aab621405 Added support for min pixel size, max pixel size and max visable distance to
osgSim::LightPointNode, the max pixel size from was originally in osg::LightPoint.

Added additional get/set methods to osg::LightPointNode.

Increased the compute pixel size by a ratio 1.41 (sqrtf(2)) to correlate the
computed size with the actual size seen on screen.
2003-04-02 10:50:15 +00:00
Robert Osfield
5a974ab091 Fixes to osg::Texture's handling of anisotropy updating and
hardware generate mip mapping.

Added switching off generate mip map from osgText::Font.cpp.

Changed savedmodel.osg to saved_model.osg in ViewerEventHandler.
2003-04-01 20:32:57 +00:00
Robert Osfield
d820449931 Used notify for reporting the keypressing to the commandline. 2003-04-01 18:35:31 +00:00
Robert Osfield
b63a49ca3f New osgtexture2D example code. 2003-04-01 16:00:33 +00:00
Robert Osfield
e8f7290ead Updated NEWS.
Removed writing of test.osg from osgstereoimage.
2003-04-01 12:00:13 +00:00
Robert Osfield
2af64da81c Removed closeLibrary reference for osgtext as this was causing problems with the
osgtext help.
2003-03-30 11:10:56 +00:00
Don BURNS
5b1969563b Fixed installation of demo source from src/Demos to examples 2003-03-27 18:42:31 +00:00
Robert Osfield
ee7975c76a Added -losgGA to keep things compiling across platforms. 2003-03-27 17:16:53 +00:00
Robert Osfield
a3d676c10b Added -osgText to GNUMakefiles. 2003-03-27 13:51:40 +00:00
Robert Osfield
8779fe20a7 Added help support for display help on screen to osgProducer::Viewer. 2003-03-26 12:50:30 +00:00
Robert Osfield
5e56e0eba8 Added osgkeyboard to the ./runexamples.bat.
Made osgstereoimage exit when non files have been loaded.

Added non const getText() method.
2003-03-25 13:57:16 +00:00
Robert Osfield
6b5d17a6d4 Added text input field to the osgkeyboard demo. 2003-03-25 12:44:50 +00:00
Robert Osfield
65e0ebf29d Added futher keys to complete the keyboard. 2003-03-25 11:28:52 +00:00
Robert Osfield
35e0ba12bc Added a viewer.sync to the end of all the demos.
Removed the Win32 remapping of keycodes from the osgProducer::EventAdapter.
2003-03-25 10:05:09 +00:00
Robert Osfield
a03675495a Added new osgkeyboad example. 2003-03-24 21:17:51 +00:00
Robert Osfield
500c8fee92 Revamp of the osgstereoimage demo to provide a presentation tool for up comming
"In Your Face" shows held at the Glasgow Science Center.
2003-03-22 20:35:11 +00:00
Robert Osfield
aa78092885 Added using namespace osg and removed osg:: from CopyOp's as this was
causing problems with VisualStudio's scoping bug.
2003-03-21 22:32:01 +00:00
Robert Osfield
4a3e04e1c2 Add osg:: infront of CopyOp instances. 2003-03-20 20:38:38 +00:00
Robert Osfield
fe49a97baa Updates to osgProducer and osgstereoimage for stereo support.
Changed the default distance from the scene of the home position of the
trackball and flight manipulators.
2003-03-20 17:00:32 +00:00
Robert Osfield
0476348a0c Added support for setting up VisualChoose with destination alpha, stencil and
quad buffers attributes from DisplaySettings values.
2003-03-20 14:07:03 +00:00
Robert Osfield
38a2408847 Changed the shadow texture implemention to use CLAMP_TO_BORDER for the
WRAP_S and _T modes.  Also set the border colour to 1,1,1,1 to ensure
problem blending.
2003-03-20 08:58:51 +00:00
Robert Osfield
6fc7f82a31 Added sync at the end of the main loop to prevent seg fault on exit. 2003-03-19 15:57:31 +00:00
Robert Osfield
74f8f18ad6 Added a realize callback to the OsgCameraGroup.
Move osgtexture3D across to using the new realize callback for creating its textures.
2003-03-19 12:06:29 +00:00
Robert Osfield
a7bb0126f5 Fixed crash in osgoccluder which was calling setUpViewer and the
osgProducer/Viewer was assuming that the update was always set.
2003-03-19 10:28:19 +00:00