Robert Osfield
93d83010f8
Added EGL support into build system for GLES1 + GLES2.
...
Added EGL support into GraphicsWindowX11.
2009-10-30 15:17:38 +00:00
Robert Osfield
d17d7159a1
Ported osgUtil, osgDB, osgGA, NodeKits and plugins to compile against OpenGL ES 1.1 and OpenGL ES 2.0.
2009-10-28 20:31:57 +00:00
Robert Osfield
e720a7a956
Fixed build on OpenGLES-1.1 and OpenGLES-2.0 targets
2009-10-27 18:07:12 +00:00
Robert Osfield
37ee16403a
Introduced usage of OSG_GLES*_AVAILABLE macros to headers and .cpp's to enable building against OpenGL ES 1.x and 2.x headers
2009-10-25 11:52:01 +00:00
Robert Osfield
a7cb28b166
Added includes for OpenGL ES1 and ES2.
2009-10-23 16:51:45 +00:00
Robert Osfield
327b67a305
Added CMake support for specifying what OpenGL target and features that the OpenSceneGraph build should use.
...
Added use of the new Cmake generated #define's for optionally compiling parts of the OpenSceneGraph's OpenGL support for the various OpenGL targets
2009-10-23 13:19:57 +00:00
Robert Osfield
bab4c272d5
Added support for Vec4ubArray colour arrays
2009-10-23 12:22:18 +00:00
Robert Osfield
d88531c099
Added #define for GL_TEXTURE0 as MS gl.h header is still stuck in the nineties....
2009-10-22 14:40:35 +00:00
Robert Osfield
9b6e25cf62
Fixed typo and updated wrappers
2009-10-22 12:56:41 +00:00
Robert Osfield
0289e5e5a2
From Stephan Huber, compile fix to OSX.
2009-10-22 12:41:48 +00:00
Robert Osfield
b8f7310d50
Removed, now inappropriate, references to glBegin/glEnd.
2009-10-22 12:04:26 +00:00
Robert Osfield
d743412605
From Cedric Pinson, new StateAttributeCallback replacing StateAttribute::Callback
2009-10-22 12:01:06 +00:00
Robert Osfield
2d38e187fd
From Cedric Pinson, "Here a patch to be able to clone stateattribute, in order to do that i
...
moved the StateAttribute::Callback structure to a file
StateAttributeCallback with the same behavior as NodeCallback.
"
2009-10-22 10:33:16 +00:00
Robert Osfield
cdf9c4363b
Fixed type of GLBeginEndAdapter::MultiTexCoord*() and VertexAttrib*(), and fixed the internal offsets used in MultiTexCoord so it properly used the mapping texture_unit = target - GL_TEXTURE0
2009-10-22 08:51:51 +00:00
Robert Osfield
9b04a9379b
Added Translatef, Scalef, Rotatef methods, and fixed Color4f method.
2009-10-21 16:42:12 +00:00
Robert Osfield
2785ea4dfb
Added support for automatic vertex aliasing to new ArrayDispatchers, and updated wrappers
2009-10-21 14:09:12 +00:00
Robert Osfield
9499b19b43
Moved the ArrayDispatchers management so that osg::State now has a ArrayDispatchers object that any osg::Geometry can reuse,
...
and optimized the implementation to reduce the CPU overhead.
2009-10-21 11:18:13 +00:00
Robert Osfield
6a56b6e6be
Refactored osg::Geometry::drawImplementation(..) to use new osg::ArrayDispatchers that encapsulate the task
...
of dispatch osg::Array data as OpenGL attributes.
2009-10-20 19:34:24 +00:00
Robert Osfield
eb9ff0a311
Added support for multitexturing and vertex attributes to GLBeginEndAdapter
2009-10-17 19:22:14 +00:00
Robert Osfield
73ae1637c0
Fixed VS warning
2009-10-17 11:14:03 +00:00
Robert Osfield
aefd1513f4
Ported osg::Geometry across to supporting the aliasing of vertex, color and normal etc. calls to Vertex Attributes.
...
Added support for automatic aliasing of vertex, normal, color etc. arrays to Vertex Attribute equivelants.
Added new osg::GLBeginEndAdapter class for runtime conversion from glBegin/glEnd codes to vertex arrray equivelants.
Added automatic shader source conversion from gl_ to osg_ builtins.
2009-10-16 16:26:27 +00:00
Robert Osfield
9e2567cb88
Made the use of the new projection and modelview matrix uniforms optional
2009-10-11 06:05:19 +00:00
Robert Osfield
f479eb174c
From Paul Martz, "A recent change to add the new geometry shader primitive types has broken the build on Windows. On Windows, those types are declared in the header GL2Extensions, but the PrimitiveSet header (which uses those types) fails to include that header, causing compile errors.
...
Attached is a version of PrimitiveSet that includes GL2Extensions."
2009-10-11 05:52:11 +00:00
Robert Osfield
0ef684f6b5
To fix warning removed unncessary , from end to enum list.
2009-10-10 09:44:40 +00:00
Robert Osfield
10deffdc41
From Stephane Lamoliatte, "Here is a patch wich improves the support for geometry shaders in OpenSceneGraph.
...
It adds new PrimitiveSet constants for the specific geometry shader primitive types :
- LINES_ADJACENCY
- LINE_STRIP_ADJACENCY
- TRIANGLES_ADJACENCY
- TRIANGLE_STRIP_ADJACENCY
It also adds some missing features to the glsl reader plug'in.
"
2009-10-10 09:41:28 +00:00
Robert Osfield
f6166d1119
Introduced new uniforms for tracking the modelview and project matrices in shaders using non built-ins.
2009-10-09 13:39:11 +00:00
Robert Osfield
2d26cbe7ab
Introduced optional build against the GLU library, using optional compile paths to enable/disable GLU related function.
...
To toggle the use of the GLU library adjust the OSG_GLU_AVAILABLE variable via ccmake . or CMakeSetup.
2009-10-07 19:42:32 +00:00
Robert Osfield
ae7dfc5796
Fixed warnigns
2009-10-07 09:39:45 +00:00
Robert Osfield
69557c060b
Fixed the TextureObject's + GLBufferObject reassignment to a new set.
...
Disabled the unref after apply for a Texture classes when the texture pool is enabled
2009-10-06 13:42:12 +00:00
Robert Osfield
5d3b8fe2b0
Added missing export
2009-10-04 08:52:01 +00:00
Robert Osfield
32b21dbb89
Introduced new GLBufferObject pool for managing the memory footprint taken up by VertexBufferObejct, ElementBufferObject and PixelBufferObject.
2009-10-03 09:25:23 +00:00
Robert Osfield
f75013d534
Introduced new BufferObject design + implementation in preperation of implementing a pool system for buffer objects
2009-10-01 20:19:42 +00:00
Robert Osfield
1fce3c0ad1
Added handling of resetting of the texture object format
2009-09-27 15:14:57 +00:00
Robert Osfield
4d75729650
Added stats collection to new Texture Pool code, and improved TexturePool implementation.
...
The Texture Pool can be enabled by setting the env var OSG_TEXTURE_POOL_SIZE=size_in_bytes.
Note, setting a size of 1 will result in the TexturePool allocating the minimum number of
textures it can without having to reuse TextureObjects from within the same frame.
2009-09-25 18:05:54 +00:00
Robert Osfield
216849f73a
From Jean-Sebastien Guay, fixed Widows build and updated the SO version
2009-09-23 15:16:34 +00:00
Robert Osfield
d56499025b
Introduced memory pool size management
2009-09-23 13:51:20 +00:00
Robert Osfield
3d75054e2c
Preliminary work on support for a texture object pool that is designed to help manage resources down the GPU more tightly.
2009-09-22 18:45:24 +00:00
Robert Osfield
c56dd6faa5
From Michael Platings, "the DAE importer was crashing when calling osg::Object::setName with a null pointer argument. Rather than trying to fix all the places this might happen and probably missing a few, I thought it would be better to trivially validate the input in setName. With this fix if setName is called with a null pointer then the name is cleared."
2009-08-22 17:13:19 +00:00
Robert Osfield
3f65f4f80b
From Wojciech Lewandowski, support for FBO's without colour or depth attachments.
...
Note from Robert Osfield, I've temporarily re-enabled the old focing of of color and depth attachment to avoid regressions on some OpenGL driver. We'll revist this once
we have a mechanism for controlling this override at runtime.
#define FORCE_COLOR_ATTACHMENT 1
#define FORCE_DEPTH_ATTACHMENT 1
2009-08-21 09:34:48 +00:00
Robert Osfield
a2a2740a23
From Ronald van Maarseveen and Robert Osfield, changed compute of up vector and localToWorld transform so that it takes in to account the geographic latitude.
2009-08-20 14:19:10 +00:00
Robert Osfield
239aed9a88
Tweak of NodeMask docs
2009-07-28 06:00:23 +00:00
Robert Osfield
35962ab099
From Lee Butler and Robert Osfield, doxygen comment explaining role of NodeMask
2009-07-24 15:30:13 +00:00
Robert Osfield
773ae51a45
From Chris Hanson, typo and comment clean ups
2009-07-24 14:45:44 +00:00
Robert Osfield
2e0f1dc0d1
From Chris Hanson, added EllipsoidModel::isWGS84() method and clean up on comments.
2009-07-24 14:25:34 +00:00
Robert Osfield
5496e91f87
Added the ability to turn off the external paging in of PagedLOD children.
2009-07-16 10:13:41 +00:00
Robert Osfield
11d7d98e79
Updated version numbers for 2.9.6 release
2009-07-03 10:33:51 +00:00
Robert Osfield
b1f4a81606
From Mathias Froehlich, "Fix possible problem with aliasing rules.. and fix a gcc warning :)Use a union to determine if we are on a little endian or big endian machine."
2009-06-25 13:26:26 +00:00
Robert Osfield
85bb6b327d
From Wojciech Lewandowski, "Here are my changes:
...
- osg::Texture sets GL_MAX_TEXTURE_LEVEL if image uses fewer mipmaps than
number from computeNumberOfMipmaps (and it works!)
- DDS fix to read only available mipmaps
- DDS fixes to read / save 3D textures with mipmaps ( packing == 1 is
required)
- Few cosmetic DDS modifications and comments to make code cleaner (I hope)
Added _isTextureMaxLevelSupported variable to texture extensions. It
could be removed if OSG requires OpenGL version 1.2 by default.
Added simple ComputeImageSizeInBytes function in DDSReaderWrites. In
my opinion it would be better if similar static method was defined for
Image. Then it could be used not only in DDS but other modules as well (I
noticed that Texture/Texture2D do similar computations).
Also attached is an example test.osg model with DDS without last mipmaps to
demonstrate the problem. When loaded into Viewer with current code and moved
far away, so that cube occupies 4 pixels, cube becomes red due to the issue
I described in earlier post. When you patch DDS reader writer with attched
code but no osg::Texture yet, cube becomes blank (at least on my
Windows/NVidia) When you also merge osg::Texture patch cube will look right
and mipmaps will be correct."
2009-06-19 11:55:52 +00:00
Robert Osfield
1523032d2b
From Cedric Pinson and Robert Osfield, addition of NodeCallbacks to osg::CopyOp and osg::Node copy constructor.
2009-06-18 10:01:39 +00:00
Robert Osfield
7c4225e574
Fixed error in DisplaySettings::setNumOfHttpDatabaseThreadsHint
2009-06-17 08:56:11 +00:00