Commit Graph

4554 Commits

Author SHA1 Message Date
Robert Osfield
d58487c763 Changed red()/green()/blue()/alpha() to r()/g()/b()/a() for greater consistency
across Vec* classes and with OpenGL Shander Lanaguage.
2005-09-03 20:56:25 +00:00
Robert Osfield
6391691be6 Added release() to all GraphicsOperations in GraphicsThread. 2005-09-03 20:54:32 +00:00
Robert Osfield
2ea5d71d82 Added commandline arguments for controlling number of cameras through to the windowing library to use. 2005-09-02 20:06:11 +00:00
Robert Osfield
4167a3f980 Added clean up class to help improve the exit of GraphicsThread 2005-09-02 13:10:46 +00:00
Robert Osfield
21cabaf5f6 Renamed osgUtil::RenderStageLighting osgUtil::PositionalStateContainer 2005-09-02 10:35:38 +00:00
Robert Osfield
ce3bfff46a Removed redundent code. 2005-09-01 19:55:41 +00:00
Robert Osfield
caaeaee321 Fixed typo 2005-09-01 19:12:06 +00:00
Robert Osfield
2bafaea60a Added osgcamera projects 2005-09-01 06:19:03 +00:00
Robert Osfield
727e55a63a Removed circular reference of osg::CameraNode, fixing memory leak. Added
a auto exit after a maximum number of frames are completed.
2005-08-31 20:39:05 +00:00
Robert Osfield
a420782199 Added osgSim::OverlayNode setup in osgsimulation, and added preliminary test
code to the osgSim::OverlayNode to test osgsimulation/the architecture.
2005-08-31 15:04:27 +00:00
Robert Osfield
af7eba1a7f Set number of cameras to 3. 2005-08-31 13:43:29 +00:00
Robert Osfield
7fc95ddae7 Added graphics context pointer to osg::Texture in prep for support for Pbuffer
Render To Texture.
2005-08-31 12:56:15 +00:00
Robert Osfield
8686ed3136 Disable the glFinishBarrierOp usage as glFinish was spin locking the CPU :-| 2005-08-31 12:49:23 +00:00
Robert Osfield
c1ebc87c2c Seperated out the cull and draw traversals into their own operations,
and added a glFinishBarrierOp which can be placed between the cull and the
draw or after swap.
2005-08-31 10:55:58 +00:00
Robert Osfield
3b065bc163 Add comments explain how example works. 2005-08-31 09:21:34 +00:00
Robert Osfield
c02e91c1b4 Added support for GrapicsOpeations that are reused each frame, cleaned up
osgcamera example.
2005-08-30 22:28:30 +00:00
Robert Osfield
994192657a Compile fix. 2005-08-30 19:20:19 +00:00
Robert Osfield
07c7e37426 From Colin McDonald, fix for big endian systems 2005-08-30 19:19:49 +00:00
Robert Osfield
f9bcde3cf0 Added name and keep member variables to osg::GraphicsThread::Operation to allow
the names of the operations to be logged for stats purposes, or used when
do searches of the operation list.  The keep member variable tells the graphics
thread run loop wether to remove the entry from the list once its been called.
2005-08-30 19:03:02 +00:00
Robert Osfield
aba3b4fa67 Clean up and fixes to GraphicThread class, and osgcamera example. 2005-08-30 14:41:08 +00:00
Robert Osfield
3810d3b850 From Norman Vine, fixed small typo. 2005-08-30 09:33:42 +00:00
Robert Osfield
ceadd41ef1 Fixed reading and writng of data. 2005-08-29 20:38:46 +00:00
Robert Osfield
492956d73e Added scratch pad reset. 2005-08-29 20:16:15 +00:00
Robert Osfield
6e39f9f475 Implement a scratch pad for writing and read data to, to solve issue between
running a master and slave on a mix of 32bit and 64bit.
2005-08-29 19:57:02 +00:00
Robert Osfield
9f740f7397 Improved support for keyboard/mouse events in osgcluster. 2005-08-29 14:05:30 +00:00
Robert Osfield
2e84f10b21 Added extra debug info. 2005-08-29 12:25:16 +00:00
Robert Osfield
ffb06a8c49 Added extra access methods on osgProducer::KeyboardMouseCallback, and added
support for reading and writing keyboard/mouse events in osgcluster.
2005-08-29 12:05:17 +00:00
Robert Osfield
b316dc30e8 Disabled the pbuffer graphics thread. 2005-08-28 19:07:09 +00:00
Robert Osfield
48a9a395bb From Marco Jez, fixed typo of OverlayNode.cpp. 2005-08-28 15:49:58 +00:00
Robert Osfield
f3be713d66 Added OveralyNode into VS project file, and fleshed out more code in the OveralyNode implementation. 2005-08-26 20:01:21 +00:00
Robert Osfield
42752347aa Added beginings of new OverlayNode, for managing a render to texture which is
then used to overaly other parts of the scene such as terrain.
2005-08-26 14:00:02 +00:00
Robert Osfield
ee4d2128da Added --num-components <num> option. 2005-08-26 13:26:02 +00:00
Robert Osfield
16e777b69b From Farshid Lashkari, fixed warnings. 2005-08-26 08:48:54 +00:00
Robert Osfield
7e0781d0c8 From Farshid Lashkari, added istream support to JPEG plugin. 2005-08-25 19:23:58 +00:00
Don BURNS
5f27216e7e made removeExpiredSubgraphs virtual. 2005-08-25 18:18:27 +00:00
Robert Osfield
d154c2a4cd From Eric Sokolowsky, warning fixes for g++ 4.0 under Fedora Core 4. 2005-08-25 17:53:01 +00:00
Robert Osfield
fb96298355 From Farshid Lashkari, Support for reading TIF images from stream, and support
from reading and writing RGB image to/from stream.
2005-08-25 14:37:21 +00:00
Robert Osfield
be285c62c0 Added support for rapid movement of the emitter, with particle now seeding between
the position of the emitter in the previous frame and the new position in the new
frame, the number of particles added also scales up to compensate for this movement.
2005-08-25 14:12:08 +00:00
Robert Osfield
320d0f67e4 Removed old commented out code. 2005-08-24 19:21:12 +00:00
Robert Osfield
dedf81fa51 From Domenico Mangieri, added constructor. 2005-08-24 19:20:36 +00:00
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
b50ac89b9d From Domenico Mangieri:
"I've added a Plane constructor which accepts a normal and a point.
I also removed calculateUpperLowerBBCorners() from the Plane(const
Vec3& v1, const Vec3& v2, const Vec3& v3) since the constructor is
using the function set(const Vec3& v1, const Vec3& v2, const Vec3& v3)
which already computes the upper and lower bounding box."
2005-08-22 14:07:47 +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
2fa2041655 From Joseph Winston, "Corrected displayed comment about the text size
to match the actual text size."
2005-08-22 13:45:15 +00:00
Robert Osfield
9394e224f4 Tweaked flight manipulator pitch sensitivity. 2005-08-22 13:03:23 +00:00
Robert Osfield
29958a5612 Added OSG_EXPORT to GrephicsThread and fixed typo in osg.dsp. 2005-08-21 15:32:38 +00:00