Jason Beverage
89a5d8b513
Protect the _programSet in Shader with a mutex.
...
This prevents thread safety issues when Shader objects are used in
multiple programs.
2018-09-04 10:35:38 -04:00
Robert Osfield
91df3d8311
Changed the ShapeDrawable::build() methpd so that it does run when the ShadpwDrawabe is a KdTree.
2018-09-04 15:27:41 +01:00
Robert Osfield
9f1205d22d
Added support for reading UTF-8 encoded of xml files
2018-09-04 12:41:36 +01:00
Robert Osfield
833756c6b7
Changed the logic for whether to call setUpThreading() in setThreadingModel() to make it possible to changed threadings even if the threading model starts of as SingleThreaded
2018-09-03 12:36:36 +01:00
Robert Osfield
598b16b9bf
Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph
2018-09-03 10:15:29 +01:00
Robert Osfield
dcd28ba39d
Added reset of _stateset to prevent the releaseGLObjects calling release on th StateSet from the destructor
2018-09-03 09:56:37 +01:00
Thomas Hogarth
9b4b25e4f5
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merging master
2018-08-28 15:42:25 +01:00
Thomas Hogarth
9bed712952
Merge remote-tracking branch 'upstream/master' into topic-gles3-android
...
merging
2018-08-28 14:25:38 +01:00
Robert Osfield
ec4b618b7a
Replaced the glSGetProcAddressARB code with the dlsym() usage as the NVidia driver looks to be returning non NULL pointers for invalid function names.
2018-08-28 11:22:57 +01:00
Robert Osfield
e8b56c5c97
Added settting of the PointSprite mode validity to State::initializeExtensionProcs()
2018-08-22 10:02:29 +01:00
plevy
7bd395a77d
Change GL_RGBA16F to GL_RGBA16F_ARB to fix Windows Build
...
Change GL_RGBA16F to GL_RGBA16F_ARB to fix Windows build.
2018-08-21 09:38:03 -04:00
Robert Osfield
8af2ea48c2
Replaced GL_RGBA32F with GL_RGBA32F_ARB to fix Windows build
2018-08-21 09:21:11 +01:00
mp3butcher
a5a596b33b
add fixe for Cubemap and TexStorage
2018-08-19 20:17:30 +02:00
mp3butcher
7685235c1d
add TexStorage feature on Texture2DArray
2018-08-18 22:55:56 +02:00
mp3butcher
2c9d551452
renaming variable and remove redondant test and variable
2018-08-18 22:55:30 +02:00
mp3butcher
d9f58ff03b
fix possible internalformat misregisterings (diff effective gl and osg representation)
2018-08-18 17:26:32 +01:00
Robert Osfield
d37b826a74
Refactored the glTexStorage code paths to use selectSizedInternalFormat() and move the generateAndAssignTextureObject() calls within the two useTexStorage and non TexStorage paths to ensure that the right foramts are matched when generating the texture object
2018-08-17 18:59:04 +01:00
Robert Osfield
d841170d32
Removed check as this is better outside of the function
2018-08-17 16:51:55 +01:00
Robert Osfield
71f134c64b
Created a GLenum Texture::selectSizedInternalFormat(const osg::Image* image=0) const method to help clean up set up of glTexStorage.
...
Fixed typo.
2018-08-17 12:22:36 +01:00
OpenSceneGraph git repository
7328e03d23
Merge pull request #594 from mp3butcher/patch-6
...
Add valid sizedInternalFormats for glTexStorage path
2018-08-17 09:54:15 +01:00
OpenSceneGraph git repository
adbfd523f3
Merge pull request #596 from mp3butcher/MeshReindexation
...
add a bool parameter to allow forced reindexation of a mesh
2018-08-17 09:53:26 +01:00
OpenSceneGraph git repository
38cb6b3c49
Changed member variable name to be consistent with header
2018-08-17 09:22:40 +01:00
Robert Osfield
eee5d5482e
Fixed memory leak associated with VertexArrayStte objects not getting released on destruction of Geometry/Drawables.
2018-08-16 19:23:17 +01:00
mp3butcher
7f12ca4389
add a bool parameter to allow forced reindexation of a mesh
2018-08-16 18:59:47 +02:00
Julien Valentin
3a604b0e10
Add valid sizedInternalFormats
...
Why some much commented?
2018-08-16 18:56:25 +02:00
OpenSceneGraph git repository
22c0dc379f
Merge pull request #593 from mp3butcher/ImmutableTexture
...
add immutability (if available) on ImageLess TextureRectangle
2018-08-16 16:15:20 +01:00
Chris White
c3880a25b6
Remove duplication of REGISTER_WINDOWINGSYSTEMINTERFACE code
...
Refactor so GraphicsWindowWin32 doesn't duplicate code in
<osg/GraphicsContext>.
Also, add OSGVIEWER_EXPORT to X11WindowingSystemInterface so
X11WindowingSystemInterface examples can build on cygwin.
This change parallels that in commit 0bca415d5a
.
2018-08-15 12:49:01 -04:00
mp3butcher
c2031836ee
add immutability (if available) on ImageLess TextureRectangle
2018-08-11 14:10:13 +02:00
OpenSceneGraph git repository
e008784ab6
Merge pull request #586 from cxw42/cygthreads
...
On cygwin, don't use pthread functions that require _GNU_SOURCE in OpenThreads
2018-08-08 14:38:13 +01:00
Robert Osfield
6d0b8c4693
Tightened up the setting of the Member property of Texture attributes
2018-08-08 07:34:14 +01:00
Chris White
b4889a8c06
On cygwin, define _GNU_SOURCE in pthreads-based OpenThreads
...
pthread_{yield,getconcurrency,setconcurrency} are not declared in
pthread.h on cygwin with gcc 7.3.0 unless _GNU_SOURCE is defined.
2018-08-05 08:11:30 -04:00
Daniel Emminizer
985e82049f
OpenFlight: Replace internal caches with osgDB::ObjectCache use. Fixes unbounded memory growth when using readNode(std::istream&, ...) method.
2018-07-31 17:06:34 +01:00
David Stephan
b630e2326b
tabs to spaces
2018-07-27 14:55:02 -07:00
David Stephan
9454eb53ba
added switch names to osgSim::MultiSwitch serializer
2018-07-27 14:48:10 -07:00
Thomas Hogarth
5058a9cd9c
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merge with master
2018-07-23 23:52:30 +01:00
OpenSceneGraph git repository
86bd4a4e8b
Merge branch 'master' into imagebinding3
2018-07-23 07:57:23 +01:00
Julien Valentin
39642572d2
Avoid name collision with size_t
2018-07-18 16:19:21 +02:00
Thomas Hogarth
9e288e3138
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merge master
2018-07-10 02:09:56 +01:00
Thomas Hogarth
49e9aadbf5
Improved iOS cmake support for xcode 9.4 and cmake 3.11
2018-07-10 02:09:28 +01:00
Robert Osfield
15d9c08273
Pulled in OpenFlight/expGeometryRecords.cpp from 3.6 branch
2018-07-09 18:00:29 +01:00
Thomas Hogarth
014255bd9e
Merge branch 'master' of git://github.com/openscenegraph/OpenSceneGraph into topic-gles3-android
...
merging with master
2018-06-29 03:08:24 +01:00
Larry-Hu
1b6a040cf0
Remove call to nonexistent member seekpos() of std::fpos in VS 2017 version 15.8 or later
2018-06-27 21:21:31 -07:00
Robert Osfield
b2087b8dd3
Replaced creation of a temporary Settings object on the heap with creation on the stack to improve performance
2018-06-27 11:07:53 +01:00
Robert Osfield
a774bd5902
Fixed relaseGLObjects() calls
2018-06-27 11:07:10 +01:00
Robert Osfield
dbcd3b0324
Added GLExtensions::isPointSpriteModeSupported to allow it to be enable for GL versions that support GL_POINT_SPRITE_ARB/GL_POINT_SPRITE_OES
2018-06-27 11:04:14 +01:00
Daniel Emminizer
a3ad6d3af9
GL_RG is now a support format in gluScaleImage().
2018-06-27 11:04:01 +01:00
Robert Osfield
d2c2ef3ec9
Moved osg::clampProjectionMatrix() template from CullVisitor.cpp into include/osg/CullSettings to make it easier to implement custom clampProjectionMatrix callbacks
2018-06-25 20:03:50 +01:00
Laurens Voerman
10d88e0455
resolve av sync failure with ffmpeg 3.2 and up
2018-06-21 09:14:09 +02:00
Calum Robinson
334638795a
Fix z near calculation for lines
2018-06-20 10:59:12 +01:00
Daniel Emminizer
3410d3a37d
FLT: Missing optional attr files on textures no longer generates a console warning.
2018-06-14 14:54:34 +01:00
Robert Osfield
6b38107f45
To handle calling Array::setBinding() after Geometry::set*Array() call, to the Geometry::addVertexBufferObjectIfRequired(osg::Array* array) added treatment of array->getBinding()==Array::BIND_UNDEFINED as BIND_PER_VERTEX as a safe fallback.
2018-06-14 14:54:09 +01:00
Robert Osfield
22e5861c0b
Removed deprecated xine plugin to simplify licensing (xine plugin is GPL'd)
2018-05-31 15:12:28 +01:00
Robert Osfield
a855faeff3
As the author of all the files in osgPresentation and present3D have rectified the license notices to reflect their intended license rather than histoical license they had prior to being merged into the OpenSceneGraph project. OSGPL was always intended but missed during merge.
...
Replaced the GPL notices with OSGPL usge in present3D and include/osgPresentation as this was intended when Present3D was merged back into OpenSceneGraph but missed.
2018-05-31 14:48:54 +01:00
Philippe Renon
c0848a56bc
Notify: silence warning about unused argument
2018-05-27 14:21:57 +02:00
Robert Osfield
6da45d6a73
Updated REMOVE_SERIALIZER( ImageAttachment ); block to use 154 version to retain compatibility with binaries made with 153 SOVERSION prior to the Imageattachement change
2018-05-23 17:03:51 +01:00
Robert Osfield
6eb6634997
Implemented StateGraph reuse in in scene graph Canera's RenderStage.
2018-05-23 14:52:24 +01:00
Robert Osfield
e5ff90e455
Fixed warning of RenderLeaf's having multiple references in CullVisitor::createOrReuseRenderLeaf() but forcing a clean up of the StateGraph at the end of RenderStage::draw()
2018-05-23 14:42:28 +01:00
Robert Osfield
f8dcb20437
Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph
2018-05-23 14:38:54 +01:00
Robert Osfield
ed683678c0
Added check to make sure that glEnablei and glDisablei are only called when the capability is non zero to fix GL invalid value error.
2018-05-23 07:49:00 +01:00
Thomas Hogarth
b67a7c5981
compile fix for gles3 on android, copied example folder to create gles3 android example
2018-05-23 02:01:21 +01:00
gwaldron
633e0aa20b
Fix for compiling with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION=OFF
2018-05-22 12:13:37 -04:00
Robert Osfield
1b56fc1c00
Moved the rotation to before the scale
2018-05-22 09:07:06 +01:00
gwaldron
a2447c8dc0
osgText: perform pixel size computation in double-precision to prevent coordinate jitter
2018-05-21 13:26:04 -04:00
Robert Osfield
2c7d97266d
Fixed typos
2018-05-21 13:19:06 +01:00
Robert Osfield
0bca415d5a
Restored the REGISTER_WINDOWINGSYSTEMINTERFACE macro to the include/osg/GraphicsContext header and removed the OSGVIEWER_EXPORT as this was causing compatibility issues with osgQt.
...
In GraphicsWindowWin32 replaced REGISTER_WINDOWINGSYSTEMINTERFACE usage with locally implemented equivilant with the required OSGVIEWER_EXPORT.
2018-05-21 13:19:06 +01:00
Robert Osfield
76d1b85778
Restructed SCREEN auto scaling so that it's removes the rotation of the modelview matrix so that the XY coords of the text map directly to window xy coords for all text alignment types
2018-05-20 13:26:36 +01:00
Robert Osfield
0df03b09f9
Added GL_RED and GL_RG support to _readColor()/Image::getColor();
2018-05-18 14:25:30 +01:00
Robert Osfield
ba766b88a8
Cleaned up the WindowingSystemInterface registration
2018-05-18 14:25:30 +01:00
Robert Osfield
ea9be189e8
Quitened down unsupport compression output when passing in a file with a non rgb extension
2018-05-18 14:25:30 +01:00
Robert Osfield
a4c8804b1b
Introduced a local StateGraph hierarchy into CullVisitor::apply(osg::Camera&) and RenderBin to fixed RTT Camera bug where multiple RTT Camera end up with the rendering back end results assigned to them which occured when RTT Camera's share the same StateSet or null StateSet.
2018-05-18 10:05:29 +01:00
Robert Osfield
41f7efbab6
Imoroved backwards compatibility with 3.6
2018-05-14 10:47:50 +01:00
Robert Osfield
4fbaca7878
Fixed support for update and event callbacks on StateSet/Uniform/StateAttributes on View(er) Cameras.
2018-05-14 09:57:37 +01:00
Robert Osfield
71f3bad57a
Renamed the counter used to enable traversal order sorting
2018-05-14 08:44:47 +01:00
Robert Osfield
75b576bf83
Improved the handling of precision
2018-05-14 08:44:47 +01:00
Robert Osfield
bc600bc9f7
Fixed crash when using ShapeDrawable with a TriangleMesh or ConvexHull shape due to missing texture coords
2018-05-13 11:53:21 +01:00
Robert Osfield
d3da2f0cd5
Build fixes for OSG_USE_REF_PTR_IMPLICIT_OUTPUT set to OFF
2018-05-13 09:34:46 +01:00
Robert Osfield
7c67059e12
Removed _traverseNumber variable that was duplicating the one in NodeVisitor base class
2018-05-13 09:29:27 +01:00
Robert Osfield
46560bd6d2
Rewrote TextBase::computeMatrix(..) computation of the scaling factor with slower but easier to understand and more robust code
2018-05-12 11:41:56 +01:00
Robert Osfield
b70ffc9b8a
Moved constructors and destructors to .cpp
2018-05-11 11:15:45 +01:00
Robert Osfield
5e6b081bb0
Revert "Moved the Options constructors and destructor implementaions into the cpp to make it easier to do debugging"
...
This reverts commit 479a4eefc5
.
2018-05-11 11:13:19 +01:00
Robert Osfield
747162e5b6
Fixed crash the occurred when passing in a osgDB::Options to the ObjectCache that doesn't have any references to it.
2018-05-11 09:01:50 +01:00
Robert Osfield
479a4eefc5
Moved the Options constructors and destructor implementaions into the cpp to make it easier to do debugging
2018-05-11 09:01:50 +01:00
Robert Osfield
ac6eaee583
Fixed build when OSG_ENVVAR_SUPPORTED is disabled and quietened down warnings using OSG_UNUSED* macros
2018-05-10 19:00:13 +01:00
Robert Osfield
35682fd814
Fixed typo
2018-05-10 17:01:05 +01:00
Robert Osfield
8edc862962
Restructed the handling of SCREEN_COORD scaling to better handle window resizing
2018-05-05 15:48:18 +01:00
Robert Osfield
d572d78214
Added C++ specific path for calling std::map<>::erase() to avoid issues with std::map<>::erase implementation that invalidates iterators
2018-05-05 12:35:51 +01:00
Robert Osfield
863dee52e2
Replaced std::auto_ptr<> usage as it's deprecated in C++11 and will be removed in C++17
2018-05-05 12:35:51 +01:00
Daniel Emminizer
a1c8a3e8dd
Text only applies GL_TEXTURE_2D modes when fixed function is available. Prevents GL3 Core Profile console spam.
2018-05-04 16:12:05 +01:00
Robert Osfield
202d893dc2
Added check for null to prevent null entries getting into the cache
2018-05-04 09:48:07 +01:00
Robert Osfield
c279aa26fb
Fixed null pointer warning
2018-05-04 09:47:55 +01:00
Björn Blissing
2761bca496
Check existence of path before reading image
...
When loading texture images inside the FBX plugin check that the path
exists before trying to read the image. This is done to avoid
unnecessary warnings inside the readRefImageFile function.
2018-05-03 13:15:08 +02:00
Jason Beverage
d53a74b1bb
Quiet down shader compilation messages
2018-05-01 11:04:35 -04:00
Robert Osfield
b9d5e8f505
Fixed particle update bug where a ParticleSystem wouldn't start when loaded during the frame loop due to the _last_frame value not being set.
2018-04-27 11:23:07 +01:00
Robert Osfield
52763cee76
Split up #pragma so that there only three parameters per line to aovid Intel driver bug crash
2018-04-26 09:49:35 +01:00
Robert Osfield
02f247bfa9
Renamed text.vert and text.frag to osgText_Text.vert and .frag to avoid name overlapping with user shaders.
2018-04-26 09:36:52 +01:00
Julien Valentin
ae24be56f3
add wrapper for osg::DrawIndirectBufferObject
2018-04-25 09:48:02 +01:00
Robert Osfield
e2e8e779e9
Renamed CMake variable + C++ #define to OSG_GL_CONTEXT_VERSION
2018-04-24 17:05:03 +01:00
Robert Osfield
ef3d672f8c
Added OSG_GL_CONTEXT_STRING cmake variable to set include/osg/GL headers that sets Traits::glContextVersion.
2018-04-24 16:30:48 +01:00
Robert Osfield
05af4340e1
Refactored the handling of glyph and shadow alpha values to make the text and shadow clearer for fonts with narrow glyphs
2018-04-24 16:30:48 +01:00
Robert Osfield
1d431fcb3d
Refactored the handling of text bounding box to provide more stable bounding box computation
2018-04-24 16:30:07 +01:00
Alberto Luaces
bc4f181d41
Fix typos and spelling.
2018-04-20 18:18:22 +02:00
Robert Osfield
0dd5230d82
Cleaned up inbludes and unused code
2018-04-20 14:01:21 +01:00
Robert Osfield
13e02d1af5
Removed osgUtil::TriStripVisitor as it is nolonger appropriate for modern OpenGL/OSG usage and bloats the osgUtil lib size by several hundred Kb.
2018-04-20 13:06:28 +01:00
Robert Osfield
6863cdee9a
Removed usage of the osgUtil::TriStripVisitor is it generates osg::Geometry that perform very poorly when using VBO and VAO's vs GL DisplayLists.
...
With DisplayLists being deprecated in GL and VBO and VAO becoming standard it's best to standardize on using the osgUtil::MeshOptimizers instead of TripStrupVisitor
2018-04-20 11:42:31 +01:00
Robert Osfield
f1593c38d9
Removed TriStripVisitor for default set of Optimizer passes as it doesn't generate efficient scene graphs
2018-04-20 10:24:17 +01:00
Robert Osfield
37e3c428b6
Fixed the set*Binding() methods so that they assign BufferObjects when required
2018-04-19 19:46:20 +01:00
Robert Osfield
1e32282806
Fixed messages
2018-04-19 19:45:53 +01:00
Robert Osfield
0836fa602a
Fixed the GLBufferObject size computation so that it takes into account padding.
2018-04-19 19:45:29 +01:00
Robert Osfield
71583b825f
Replaced the use of osgUtil::TriStripVisitor with ogUtil::MeshOptimizer usage to improve performance.
...
Fixed set setColorArray assignement to pass in the color binding
2018-04-19 19:45:21 +01:00
Robert Osfield
c9b1c234a6
Fixed the handle of boundary equalization
2018-04-18 10:02:43 +01:00
Robert Osfield
1d4f6c2543
Cleaned up includes
2018-04-17 09:20:23 +01:00
Robert Osfield
8a2e6b1eaa
Removed long deprecated IntersectVisitor.
2018-04-16 19:41:53 +01:00
Robert Osfield
675702d258
Fixed Geometry::drawImplmentation() handling of VBO's to prevent them from being used when display lists are used.
2018-04-16 15:05:11 +01:00
Robert Osfield
a58f6c68d6
Replaced osgViewer::GraphicsWindow dynamic_cast as it's not neccessary.
2018-04-15 08:30:16 +01:00
Robert Osfield
e884df59c7
Pulled in latest changes from 3.6 branch
2018-04-07 18:14:57 +01:00
Robert Osfield
159f0fd584
Refactored the way that margin is applied to the text buounding box to prevent growth of the bounding box each time Text::setPosition() is called.
2018-04-06 20:05:26 +01:00
Robert Osfield
72054e6f6b
Fixed warning
2018-04-06 14:49:32 +01:00
Robert Osfield
45fb5ae1aa
Changed TextBase::setAlignment() to use computeGlyphRepresentation(); rather than computePositions(); to address issues seen with calling Text::setAlignment() after calls to Text::setText()
2018-04-06 14:07:58 +01:00
Robert Osfield
decaf57fef
Quietened down debug message output for osgText shader setup and Drawable::createVertexArrayStateImplementation
2018-04-05 14:14:49 +01:00
Robert Osfield
b92158ed33
Changed DisplaySettings::setShaderHint(..) messages to INFO
2018-04-05 12:36:24 +01:00
Philippe Renon
4672a8672c
mingw: fix compile error in GraphicsWindowWin32.cpp
...
compilation error was introduced by msvc specific change
see bb169979a1
2018-04-05 11:21:55 +02:00
Ralf Habacker
40c24a7a49
Remove duplicated and incorrect fetching of 'map_bump' attributes in obj plugin
...
Parsing the key 'map_bump' was processed in the block, where the attributes
for 'bump' are extracted and results into having parts of the key in the
extracted filename, generating an invalid filename.
The mentioned string compare could be removed without loosing any features,
because the key 'map_bump' is parsed correctly some lines below.
2018-04-04 19:04:27 +02:00
Robert Osfield
146fe3e294
Fixed threading crash in osgFX that occurred when an osgFX node is added to the scene being rendered in multiple threaded windows.
2018-04-04 15:09:43 +01:00
Robert Osfield
1f56d4905f
Added focus classifiction of handling of keyboard events
2018-04-04 13:40:51 +01:00
Daniel Emminizer
10f000f043
CompositeViewer: SCROLL event now only goes to view with focus. Includes minor typo fixes.
2018-04-03 17:20:54 +01:00
OpenSceneGraph git repository
75aed8c309
Merge pull request #517 from tomhog/master
...
missing gles2 check
2018-04-03 15:34:20 +01:00
Robert Osfield
a34df91de7
Added a ShadowTechniue::setShadowedScene() virtual method to make it possible to implement techniques as fascades to other techniques
2018-04-03 15:29:54 +01:00
Thomas Hogarth
f1b2a4a968
missing gles2 check
2018-04-03 13:58:22 +01:00
Andreas Ekstrand
110b9e95dd
The attached code (from the 3.6 branch) adds a keepSeparatePoints option to the SHP plugin which makes it possible to avoid merging point features into multi-points, in case you e.g. need to keep separate point attributes.
...
It also contains a fix in the Xbase DBF parser, converting a numeric shape attribute to double instead of integer. As stated in e.g. https://en.wikipedia.org/wiki/.dbf the numeric field can contain decimals.
2018-04-03 12:42:37 +01:00
Konstantin S. Matveyev
6cd00edd6c
osg::Program's compileGLObjects and apply methods fixed for OSG without OSG_GL_FIXED_FUNCTION_AVAILABLE
2018-04-03 12:22:34 +01:00
Robert Osfield
b920d482c7
Removed osgShadow::ShadowVolume as it functionality isn't functional
2018-04-03 11:35:31 +01:00
Robert Osfield
5c48904626
Rewrote the handling of AutoTransform::setAutoScaleToScreen(bool) functionality so that is disabling CullingActive when switched on.
2018-04-02 18:26:26 +01:00
Robert Osfield
11230c3f0b
Added __VERSION__<140 check for usage of gl_ClipVertex to avoid GL3 core profile usage issues
2018-04-02 16:21:20 +01:00
Robert Osfield
98c147ff9e
Restructured merge geometry code to make it easier to follow
2018-04-02 14:08:47 +01:00
Robert Osfield
972d80daf9
Fix for MergeGeometryVsiitor bug. Restructured the processing the merge geometry list to avoid missing geometries that aren't binned along with other geometries.
2018-04-02 11:44:03 +01:00
Robert Osfield
d8281257a7
Removed stray CMAkeLists.txt from TARGET_SRC list
2018-04-01 10:41:26 +01:00
Andreas Ekstrand
b8dab29562
Small fix (from the 3.6 branch) in the osgjs plugin, avoiding a double addition of the CullFace attribute when it has been turned off. This resulted in an empty json object in the osgjs file causing warnings in osgjs.
2018-04-01 10:18:45 +01:00
Robert Osfield
683e201dd7
Fixed build with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF
2018-03-30 16:34:51 +01:00
Robert Osfield
b6888f7914
Added suport for writing to gl_ClipVertex
2018-03-30 15:28:32 +01:00
Robert Osfield
751d7e8335
Fixed double calling of TerrainTechnique::init().
2018-03-29 11:38:04 +01:00
Robert Osfield
7c3006f5ff
Fixed osgDB::findFileInDirectory() handling of directory strings with trailing \ or / that was causing failure to find valid files in otherwise valid directories
2018-03-28 11:34:52 +01:00
OpenSceneGraph git repository
15e2f0ae00
Merge pull request #511 from Haojia521/master
...
OutputStream writes images using its Options object
2018-03-28 09:04:46 +01:00
Haojia Yu
90e95ff63d
OutputStream writes images using its Options object
...
when writing images, OutputStream can search files using its Options object rahter than always using FilePathList object of global Regidtry instance.
2018-03-27 18:56:38 +08:00
Konstantin S. Matveyev
b96587cead
GraphicsWindowIOS: multithreaded viewer's mode support added; updated for iOS-11 SDK; view rotations fixed; GLES2, GLES3 preprocessors fixed; tested on iPhone4 and upper
2018-03-27 08:49:01 +01:00
Konstantin S. Matveyev
c87c78bfdd
VertexArrayState: typo fixed in log
2018-03-27 08:48:50 +01:00
Konstantin S. Matveyev
1f073e6bea
Write support with .curl pseudo extension added
2018-03-27 08:48:30 +01:00
Robert Osfield
aa69f50933
Re-ordered the creating of the DatagbaseThread to avoid startThread being called twice.
2018-03-25 12:17:18 +01:00
Robert Osfield
1224f40011
Added check if thraeding is running before executing start thread.
2018-03-25 12:17:07 +01:00
OpenSceneGraph git repository
097d3ab4ed
Merge pull request #502 from Haojia521/OutputStreamUseTargertSoVersion
...
write binary file with a specific so version
2018-03-23 20:08:37 +00:00
Robert Osfield
837200ae08
Removed serailizers that are now supplied by osg::Node
2018-03-23 20:07:43 +00:00
Robert Osfield
deef029823
Fixed member variable names to avoid conflicts with osg::Node
2018-03-23 20:07:08 +00:00
Robert Osfield
9797b0f56c
Removed Drawable writing out of StateSet as this is now done by Node
2018-03-23 20:06:44 +00:00
OpenSceneGraph git repository
22148711f8
Fixed indentation
2018-03-23 17:09:56 +00:00
OpenSceneGraph git repository
c40a0ded53
Fixed indentation
2018-03-23 17:04:30 +00:00
OpenSceneGraph git repository
c6d092a744
Fixed indentation
2018-03-23 17:01:15 +00:00
Haojia Yu
b37cbc665f
fix bugs
2018-03-23 22:51:04 +08:00
Haojia Yu
415a747049
Revert "Revert "write binary file with a specific so version""
...
This reverts commit 0ae6f7fea6
.
2018-03-23 22:49:47 +08:00
Haojia Yu
0ae6f7fea6
Revert "write binary file with a specific so version"
...
This reverts commit b5bf8864b1
.
2018-03-23 22:48:11 +08:00
Haojia Yu
b5bf8864b1
write binary file with a specific so version
...
when write binary file, like osgb file, users can set plugin string data, such as "TargetFileVersion=80", to options object, then the features of output file will be limitted to so version 80.
2018-03-23 22:31:12 +08:00
Robert Osfield
b48db74fa3
Changed the isBufferObjectSupported flag so that it's true when either VBO or PBO's are supported
2018-03-23 12:55:00 +00:00
Paul Obermeier
bb169979a1
Fixes for VS2008 and 2010 build
2018-03-22 17:35:13 +00:00
Robert Osfield
023a8d99e9
Removed typedef and used osg::GraphicsContext::Cameras explictly to avoid any hiding of type
2018-03-22 09:04:47 +00:00
Victor
2263ea5dcb
Fixed bug of determining availability of functions ‘pthread_getconcurrency’, ‘pthread_setconcurrency’, ‘pthread_setaffinity_np’ in ‘pthread’ library
...
CMake cannot find 'pthread_getconcurrency’, ‘pthread_setconcurrency’ and ‘pthread_setaffinity_np' functions in 'pthread' library because when linking internal cmake test did’t specifed ‘-l pthread’.
2018-03-21 19:44:25 +03:00
Robert Osfield
9d21e5de8c
Merge branch 'master' into shader_pipeline
2018-03-19 15:36:32 +00:00
Robert Osfield
b563f1bd78
Fixed build issues when building with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF
2018-03-19 14:08:47 +00:00
Robert Osfield
76c584ab25
Added osg::UnfiromBase* StateSet::getUniformBase(..) and osg::Uniform* StateSet::getUniform(..) methods to help with backwards compatibility
2018-03-19 12:08:28 +00:00
Robert Osfield
10e1c29d2e
Merge branch 'master' into shader_pipeline
2018-03-19 11:00:07 +00:00
Robert Osfield
b38a37c3bb
Fixed warnings
2018-03-19 10:42:09 +00:00
Robert Osfield
c3af787a3a
Merge branch 'master' into shader_pipeline
2018-03-16 13:35:22 +00:00
Robert Osfield
b7147ff532
Updated ShaderGen shaders
2018-03-16 11:33:03 +00:00
Robert Osfield
e5b67a6795
Removed the static osg::Program creation as it's not required
2018-03-15 16:50:47 +00:00
Robert Osfield
0308dfecf5
Introduced a _specverson to centralizer the control of this variable
2018-03-15 16:12:40 +00:00
Robert Osfield
3585ecc28c
Merge branch 'master' into shader_pipeline
2018-03-14 09:20:08 +00:00
Robert Osfield
4447190dd6
Refactored osgUtil::ShaderGen to use #pragma(tic) shader composition.
2018-03-14 08:22:45 +00:00
gwaldron
23b94c2468
Text: added code in accept(functor) methods to check for empty vectors before accessing front() element, which was causing a crash in some cases. Also fixed a negated null check in getCharacterCoords
2018-03-12 17:35:46 -04:00
Yaroslav Tarasov
f8199935fa
Fixed renamed of _textureDepth.
2018-03-12 16:14:30 +00:00
Robert Osfield
5c8a5307d6
From Colin McDonald, "If the glCreateProgram in osg::Program fails for any reason, then subsequently
...
Program::PerContextProgram::linkProgram would crash. I've put in some
checks to prevent that."
2018-03-12 15:55:35 +00:00
Robert Osfield
3f686d8719
Fixed indentation
2018-03-12 15:29:56 +00:00
Robert Osfield
7ce1938543
Improved indentation
2018-03-12 15:12:44 +00:00
Robert Osfield
957bd4b886
Added FbxLayeredTexture support
2018-03-12 10:29:04 +00:00
Robert Osfield
125263f216
Refactored the texture setup to streamline it and make it easier to adapt
2018-03-10 17:51:52 +00:00
Alessandro Terenzi
9010fd8035
iOS CMake project generation improvements (bitcode option)
...
when building for iOS, Xcode allows developers to specify to enable or disable the 'bitcode' compilation option. There's not a preferred way to go and the choice is really up to the developer but considering that:
1. Currently the generated project defaults the option to YES
2. There are almost 90 projects targets that should be modified if one wants to disable the bitcode option (which considerably reduces the footprint of the app)
3. Even though one can select all the 90+ targets and set the option to NO for all of them, the updates could take a few seconds and could be error prone because one could miss to select some targets
I propose to add a CMake setting that is displayed only when building for iOS. By setting this option "before" the project generation would speed up things for developers and would avoid errors at compiling time.
2018-03-09 10:17:59 +00:00
Robert Osfield
e17f1c4e31
Refactored the handling if RESIZE, CLOSE, QUIT AND USER events so they are dispatched to all views associated with a window, or all views associated with a CompositeViewer
2018-03-08 16:26:01 +00:00
Robert Osfield
1020bddb15
Fixed recursive call bug
2018-03-08 10:47:07 +00:00
Robert Osfield
4e6e0f53be
Changed glDrawBuffer/glReadBuffer calls to use the new State::glDrawBuffers/glReadBuffers helper functions to enable lazy state updating to avoid unneccessary GL calls
2018-03-07 17:49:40 +00:00
Robert Osfield
4dac60540a
Changed the default values of _drawBuffer and _readBuffer to make sure that the lazy state updating in State.glDrawBuffers(GLenum)/glReadBuffers(Glenum) doesn't ever ignore the first call.
2018-03-07 17:44:48 +00:00
Robert Osfield
98a7772fa7
Merge branch 'master' into shader_pipeline
2018-03-06 10:24:26 +00:00
Robert Osfield
b03e76bdb9
Renamed numBytesPerPixel to numBytesPerComponent to be clearer
2018-03-06 09:58:31 +00:00
Robert Osfield
64341cfb72
Added State::glDrawBuffer/glReadBuffer() method to implement lazy state updating for glDrawBuffer and glReadBuffer
2018-03-06 09:49:02 +00:00
OpenSceneGraph git repository
ee3235e7e0
Merge pull request #491 from mmassing/readerwritergdal_fix_reading_of_multichannel_multibyte_images
...
ReaderWriterGDAL: fix stride when reading multi-channel images with…
2018-03-06 09:33:30 +00:00
Manuel Massing
b4cf315d6f
- ReaderWriterGDAL: fix stride when reading multi-channel images with more than 1 byte per pixel
2018-03-05 15:48:24 +01:00
Robert Osfield
5c4a5515de
Merge branch 'master' into shader_pipeline
2018-03-02 10:38:41 +00:00
TÖRÖK Attila
b7c429a72a
osgDB: Fix handling of return value of loadLibrary in Registry.
...
"Unable to load ..." was printed if the library could be loaded,
and it wasn't if not.
2018-03-02 00:13:43 +01:00
Laurens Voerman
c81317b5b0
remove _EXT from GL_MAX_ARRAY_TEXTURE_LAYERS_EXT and GL_TEXTURE_BINDING_2D_ARRAY_EXT
2018-02-28 14:11:41 +01:00
Robert Osfield
8ed00f77dd
Merge branch 'master' into shader_pipeline
2018-02-28 10:31:30 +00:00
Robert Osfield
be723811c8
Added GUIEventHandler to allow one to write out models with event callbacks
2018-02-28 10:30:47 +00:00
Robert Osfield
1ae954f5c3
Merge branch 'master' into shader_pipeline
2018-02-28 09:11:29 +00:00
Robert Osfield
99bcd95756
Replaced GL_TEXTURE_2D_ARRAY_EXT with GL_TEXTURE_2D_ARRAY
2018-02-28 08:50:48 +00:00
Robert Osfield
3dec244d5b
Changed GL enum to fix Windows build issue
2018-02-28 08:02:39 +00:00
Robert Osfield
2a56e2dda1
Changed GL enum to fix Windows build issue
2018-02-28 08:00:40 +00:00
Robert Osfield
d2939da39f
Merge branch 'master' into shader_pipeline
2018-02-27 19:10:26 +00:00
Robert Osfield
6a4609c28f
Fixed precision issue with filling in the last element of the TransferFunction1D's osg::Image.
2018-02-27 19:09:18 +00:00
Robert Osfield
140633adc1
Merge branch 'master' into shader_pipeline
2018-02-27 18:16:08 +00:00
Robert Osfield
7b6eedbdf4
Restructured the way that applyTexParameters() is applied to address issues with Intel drivers not handling mipmap generations unless the tex parameters are reapplied on new upload of data.
2018-02-27 17:35:13 +00:00
Robert Osfield
fc128db510
Merge branch 'master' into shader_pipeline
2018-02-23 09:58:16 +00:00
Robert Osfield
39881b5576
Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph
2018-02-23 09:57:19 +00:00
Robert Osfield
2b13166c8d
Cleaned up the applying of the glDrawBuffers()
2018-02-23 09:55:00 +00:00
Konstantin S. Matveyev
e3df1e954d
GLExtensions fix: No PBO on GLES2 by default
2018-02-22 16:43:14 +03:00
Robert Osfield
a421b5eeac
Merge branch 'master' into shader_pipeline
2018-02-22 08:47:46 +00:00
OpenSceneGraph git repository
ffc8e54cdc
Merge pull request #484 from LaurensVoerman/submit_inventor_dllexport
...
Remove OSG_EXPORT from deprecated_osg::Geometry in inventor plugin.
2018-02-22 08:15:46 +00:00
Laurens Voerman
819fb2b14c
Remove OSG_EXPORT from deprecated_osg::Geometry in inventor plugin.
2018-02-21 13:38:42 +01:00
Robert Osfield
351e8e3fe1
Merge branch 'master' into shader_pipeline
2018-02-19 11:23:29 +00:00
Robert Osfield
f5021e8bc0
Added ADD_DEFINITIONS(-D_WINSOCK_DEPRECATED_NO_WARNINGS) to quieten warning
2018-02-19 10:07:14 +00:00
Philippe Renon
4a025cafb4
renderstage: fix spelling in log message
2018-02-18 18:39:47 +01:00
Philippe Renon
b4a2114fd4
singlewindow: minor log output fix
...
log message made it look like it originated from View::setUpViewOnSingleScreen
2018-02-18 18:39:47 +01:00
Hartwig
73a36679df
Addition of radius parameter for ClusterCullingCallback's constructor
...
The radius parameter is already present in ClusterCullingCallback's set method but has been forgotten in the constructor.
2018-02-15 21:10:59 +01:00
OpenSceneGraph git repository
486cd48daf
Merge pull request #476 from LaurensVoerman/submit_luaWarn
...
silence MSVC warning C4324: 'lua_longjmp': structure was padded
2018-02-14 17:16:39 +00:00
Laurens Voerman
ac00b8537f
silence MSVC warning C4324: 'lua_longjmp': structure was padded
2018-02-14 10:49:33 +01:00
Laurens Voerman
01eff6bc6b
fix visual studio compile warnings for ZeroConfDevice project.
2018-02-14 10:38:09 +01:00
Robert Osfield
91f3e8fa59
Merge branch 'master' into shader_pipeline
2018-02-13 12:24:26 +00:00
Robert Osfield
68bb67312e
Improved handling of updates to the Texture target that require the texture to be reapplied.
...
Used State for applying Texture target to work better with lazy state updating.
2018-02-13 12:12:34 +00:00
Laurens Voerman
59500d78d0
remove conficting defenition of _WIN32_WINNT in OSG_DETERMINE_WIN_VERSION is ON
2018-02-12 10:47:37 +01:00
Robert Osfield
2592701367
Changed internalFormat to use pixelFormat
2018-02-10 18:40:51 +00:00
Robert Osfield
22d6ce826f
Changed internalFormat to use pixelFormat
2018-02-10 18:37:57 +00:00
Robert Osfield
a7839d77cd
Added support for PixelBufferObject to Texture2DArray
2018-02-10 17:55:50 +00:00
Robert Osfield
1306fe2611
Added support for PixelBufferObject to Texture2DArray
2018-02-10 17:50:39 +00:00
mp3butcher
7be09e8dcd
fix the particular case when no image assigned (immutable texture storage had no chance to be used)
...
Note: There are other paths where immutable arent used even if available
2018-02-09 01:09:48 +01:00
mp3butcher
c6b5aba249
regroup and add missing funcs related to immutable texture storage
2018-02-08 23:35:43 +01:00
Robert Osfield
97ba981dce
Merge branch 'master' into shader_pipeline
2018-02-08 09:28:40 +00:00
Robert Osfield
79f9cfae80
From Ravi Mathur, "he freetype plugin currently forces the use of the first font within a truetype collection (.ttc index 0). I made a slight modification such that users can specify any font index via the userOptions input to osgText::readFontFile(). Specifically, the freetype plugin now accepts a new string option of the format "index=< unsigned int >". Example usage:
...
Code:
// Chooses the second font within the Menlo font collection
osg::ref_ptr<osgDB::Options> fontOptions = new osgDB::Options;
fontOptions->setObjectCacheHint(osgDB::Options::CACHE_OBJECTS);
fontOptions->setOptionString("index=1");
text->setFont(osgText::readFontFile("Menlo.ttc", fontOptions));
"
2018-02-07 18:28:17 +00:00
Robert Osfield
a0c23d914d
Merge branch 'master' into shader_pipeline
2018-02-07 09:27:53 +00:00
Robert Osfield
55a45e3c0e
Changed the text bounding box calcualtion so that it only takes in to account the basic glyph size, and doesn't add in the glyph margin used for accounting for texel sampling
2018-02-06 17:54:33 +00:00
OpenSceneGraph git repository
6d1d1bb000
Revert "BindingTextureImage: a more complex condition for _texture->apply ?"
2018-02-02 09:54:31 +00:00
Robert Osfield
e77be08e56
Maded CLAMP_TO_EDGE default clamp mode
2018-02-01 10:50:09 +00:00
Ilya Zhuravlev
92b45581af
getGLExtensionFuncPtr: support gl4es wrapper on Android.
2018-01-29 16:07:13 -05:00
Robert Osfield
0c35541fc5
Merge branch 'master' into shader_pipeline
2018-01-27 10:56:09 +00:00
OpenSceneGraph git repository
8046ef5b6b
Merge pull request #459 from mp3butcher/bufferstorage
...
add more extensions
2018-01-27 09:20:12 +00:00
OpenSceneGraph git repository
03977b5619
Merge pull request #461 from filnet/issue_458
...
os_utils: fix non portable use of "defined"
2018-01-27 09:17:30 +00:00
Philippe Renon
13d88c7fec
os_utils: fix non portable use of "defined"
...
see https://github.com/openscenegraph/OpenSceneGraph/issues/458
2018-01-26 10:33:48 +01:00
Julien Valentin
f4663b0e32
add ARB_BufferStorage extensions
2018-01-25 16:22:33 +01:00
Robin Stevens
3cd5e43fdf
Typo in comment
2018-01-24 10:29:49 +01:00
Robert Osfield
a2eb879965
Merge branch 'master' into shader_pipeline
2018-01-23 12:38:50 +00:00
Robert Osfield
e49aaa9f2c
Removed the OSG_SYSTEM_SUPPORTED cmake var and added use of posix_spawn under Apple with C system function used elsewhere.
2018-01-23 11:43:55 +00:00
Robert Osfield
368dd5dd92
Merge branch 'master' into shader_pipeline
2018-01-23 10:39:05 +00:00
OpenSceneGraph git repository
022d1df97d
Merge pull request #454 from mp3butcher/imagebinding
...
BindingTextureImage: a more complex condition for _texture->apply ?
2018-01-23 10:26:20 +00:00
Robert Osfield
2f65456dd4
Merge branch 'master' into shader_pipeline
2018-01-21 13:11:51 +00:00
Robert Osfield
b36b5fa8da
Changed fallback message to be consistent with fucntion name
2018-01-21 12:19:27 +00:00
Robert Osfield
18d5a9159f
Restructured the system() fallback to be usable for C and C++
2018-01-21 12:09:49 +00:00
Julien Valentin
588a9ae10d
use introduced getBufferData to determine _target->apply requirements.
2018-01-21 01:24:01 +01:00
Laurens Voerman
9ef68841c0
text copy - get unicode text to clipboard.
2018-01-19 11:20:34 +01:00