Commit Graph

11224 Commits

Author SHA1 Message Date
OpenSceneGraph git repository
a87b6495ba
Merge pull request #852 from LaurensVoerman/submitCpSubImgMaster
fix copySubImage crash on compressed files
2019-12-12 10:08:35 +00:00
OpenSceneGraph git repository
f3cc67d5a4
Merge pull request #846 from dedowsdi/fixbug_pointsprite
Init isPointSpriteModeSupported correctly.
2019-12-12 10:04:24 +00:00
Robert Osfield
05224e7dac Merge branch 'master' of https://github.com/arnauddgbes/OpenSceneGraph into arnauddgbes-master 2019-12-12 10:00:08 +00:00
OpenSceneGraph git repository
60ba81a7e3
Merge pull request #843 from dchristopherfennell/master
GL_CLAMP_VERTEX_COLOR and GL_CLAMP_FRAGMENT_COLOR deprecated in GL co…
2019-12-12 09:37:39 +00:00
OpenSceneGraph git repository
3a430fd50e
Merge pull request #842 from jpabst0/fix_lua_destruction
Fix: Destruction of LuaScriptEngine
2019-12-12 09:23:39 +00:00
OpenSceneGraph git repository
dfc092c894
Merge pull request #839 from rickyviking/fbxAxisSystem
Fbx Plugin: added plugin option to set the target axis system.
2019-12-12 09:18:40 +00:00
Laurens Voerman
477dd3cda2 fix apple carbon reference 2019-12-11 18:31:44 +00:00
Colin McDonald
06ff29af09 Update ReaderWriterOSGA.cpp
Fix typo in osga archives which stops node files working
2019-12-11 17:38:59 +00:00
OpenSceneGraph git repository
480e4607a8
Merge pull request #832 from remoe/win_egl_port
WIP: EGL support for Windows. Allow to run OSG with Google/Angle
2019-12-11 17:06:38 +00:00
OpenSceneGraph git repository
34f234ac03
Merge pull request #831 from nim65s/master
fix outdated dae readme
2019-12-11 17:00:39 +00:00
Robert Osfield
e48ee33a5c Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph 2019-12-11 16:56:34 +00:00
Julien Valentin
16b5dd5115 use memcpy instead of union 2019-12-11 16:50:33 +00:00
Dmitry Marakasov
91e73a5e30 Fix linking with Xinerama 2019-12-10 15:11:27 +03:00
Dmitry Marakasov
043c3d8ddf Add FreeBSD-specific code bits for pthread_setaffinity_np support 2019-12-10 15:08:25 +03:00
elsid
2ffb1cb20a
Fix clang 8 & libc++ build errors
Replace operators for implicit type conversion by explicit data() method to
access implementation pointer and subscript operator to access element by
index just like in std::vector.

src/osgPlugins/tga/ReaderWriterTGA.cpp:455:22: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
        if (colormap == NULL)
            ~~~~~~~~ ^  ~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:525:16: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
    if (buffer == NULL || linebuf == NULL)
        ~~~~~~ ^  ~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:525:35: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
    if (buffer == NULL || linebuf == NULL)
                          ~~~~~~~ ^  ~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:548:30: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
            if (formattedMap == NULL)
                ~~~~~~~~~~~~ ^  ~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:574:40: error: use of overloaded operator '[]' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                        index = linebuf[x];
                                ~~~~~~~^~
src/osgPlugins/tga/ReaderWriterTGA.cpp:577:50: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                        index = getInt16(linebuf + x * 2);
                                         ~~~~~~~ ^ ~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:580:50: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                        index = getInt24(linebuf + x * 3);
                                         ~~~~~~~ ^ ~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:583:50: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                        index = getInt32(linebuf + x * 4);
                                         ~~~~~~~ ^ ~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:592:72: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                        (dest + adjustedX * format)[i] = (formattedMap + index * format)[i];
                                                          ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:626:30: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
            if (formattedMap == NULL)
                ~~~~~~~~~~~~ ^  ~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:642:21: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
            if (buf == NULL)
                ~~~ ^  ~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:664:44: error: use of overloaded operator '[]' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                            index = linebuf[x];
                                    ~~~~~~~^~
src/osgPlugins/tga/ReaderWriterTGA.cpp:667:54: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                            index = getInt16(linebuf + x * 2);
                                             ~~~~~~~ ^ ~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:670:54: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                            index = getInt24(linebuf + x * 3);
                                             ~~~~~~~ ^ ~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:673:54: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                            index = getInt32(linebuf + x * 4);
                                             ~~~~~~~ ^ ~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:688:76: error: use of overloaded operator '+' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'int')
                            (dest + adjustedX * format)[i] = (formattedMap + index * format)[i];
                                                              ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
src/osgPlugins/tga/ReaderWriterTGA.cpp:708:21: error: use of overloaded operator '==' is ambiguous (with operand types 'SafeArray<unsigned char>' and 'long')
            if (buf == NULL)
                ~~~ ^  ~~~~
17 errors generated.
2019-11-22 21:16:30 +01:00
slllllala
ae341a8787
Pause problem
Pause for more than 10 seconds,_status = INVALID;
2019-11-07 14:51:32 +08:00
slllllala
04931ddb2d
Avoid reading pictures
After reading the video, use it to read the image, and the image does not display
2019-11-07 14:42:39 +08:00
Tim Moore
1c281a3def Fix bug in matrix transpose() and transpose3x3
The diagonal elements were not copied from the source matrix.
2019-11-04 05:37:37 +01:00
flashk
921d10a636
Support reading RGB float DDS images
The DDS plugin is not able to load floating point RGB images saved out by itself. There doesn't appear to be a fourcc code for RGB float/half-float data, so I added the appropriate entries to the RGBFormat table so the images can be loaded properly.
2019-11-01 09:26:28 -07:00
Laurens Voerman
9f6fdbc224 fix copySubImage crash on compressed files 2019-11-01 16:56:14 +01:00
PntAndCnt
b26d88ab78 Init isPointSpriteModeSupported correctly.
examples/osgpointsprite and examples/osgpoints are broken due to
incorrect isPointSpriteModeSupported state in legacy opengl.
2019-10-13 20:04:33 +08:00
Arnaud Huck
856acfdda4 fixed installation of PDB files on Windows with Ninja generator. Added installation of PDB files for OpenThreads 2019-10-04 09:53:57 +02:00
DCFennell
9d9c892bbb GL_CLAMP_VERTEX_COLOR and GL_CLAMP_FRAGMENT_COLOR deprecated in GL core profile according to OpenGL 4.5 specification. 2019-09-25 12:16:51 -05:00
Johannes Pabst
6bf4afa386 Fix: LuaCallbackObject could form circular references to LuaScriptEngine that prevented its destruction. Destruction of LuaScriptEngine now disarms all callbacks into Lua. 2019-09-23 15:05:54 +02:00
remoe
2e395dce26 update: WGL 2019-09-19 17:43:31 +02:00
Remo E
0daef92522 update: PixelBuffer for EGL
refactor
2019-09-17 11:50:42 +02:00
Riccardo Corsi
35ed188b02 Fbx Plugin: added plugin option to set the target axis system. Default left to OpenGL. 2019-09-13 12:50:29 +02:00
Kent
7bb44d7e18 emmmmmmm 2019-09-03 16:11:14 +08:00
Kent
df087b9524 may be better 2019-09-03 15:54:58 +08:00
Kent
880d002568 seems fixed this 2019-09-03 15:30:43 +08:00
Remo E
fbc31d9987 First implementation of EGL/Angle support. Tested with GLES3 on DirectX11 platform.
Pixelbuffer currently not supported.
2019-08-30 19:28:55 +02:00
Guilhem Saurel
297531e777 fix dae readme 2019-08-30 16:48:25 +02:00
Daniel Trstenjak
718383cac0 OcclusionQueryNode: make all usages of 'updateDefaultQueryGeometry' thread safe 2019-08-23 09:59:54 +02:00
Daniel Trstenjak
79f7727a59 OcclusionQueryNode: fix resetting to default query geometry
When the query geometry gets reset to its default then its
vertices have to be updated by the bounding box dimensions of
the current children of the OcclusionQueryNode.
2019-08-23 09:46:02 +02:00
Robert Osfield
bd50af117b Removed exlict keyword to address build problems with VS older than 2015. 2019-08-22 14:49:43 +01:00
Robert Osfield
3a17fd3e9c Fixed build regression 2019-08-22 14:27:17 +01:00
OpenSceneGraph git repository
eb980136a0
Merge branch 'master' into fix_custom_query_geometry 2019-08-22 14:17:58 +01:00
Robert Osfield
af7d6478e6 Added check aginst _enabled from the 3.6 branch 2019-08-22 14:11:29 +01:00
OpenSceneGraph git repository
f18dd05350
Merge pull request #823 from remoe/patch-4
Debugging: Hint to debug LoadLibrary issues
2019-08-22 13:47:25 +01:00
Daniel Trstenjak
aff574b3ea OcclusionQueryNode: fix use case of user defined query geometry
The user defined query geometry handling has been broken in several ways.

The previous way of defining a query geometry was using the non const
`getQueryGeometry` method and overriding its members. But then
`OcclusionQueryNode` wasn't aware of the geometry change and couldn't
internally handle it correctly.

The `computeBound` method never considered a user defined query geometry and
always just overrode the vertices of the geometry.

The member `_validQueryGeometry` wasn't correctly set.

This change should fix all this issues by introducing a small backward
compatibility break. The non const `getQueryGeometry` method is removed
forcing the user to use the `setQueryGeometry` method. But then `OcclusionQueryNode`
is aware of the user defined query geometry and can handle it correctly.
2019-08-21 16:44:15 +02:00
Remo E
822840bd1a
Debugging: Hint to debug LoadLibrary issues
This helps to debug loading dynamic libraries in an environment without implemented "dlopen". For example emscripten with static compiled OSG.
2019-08-18 20:14:17 +02:00
capostrophic
21828fe725 Fix memory leaks 2019-08-17 20:06:43 +01:00
capostrophic
4f3fce0254 Add support for DDPF_PALETTEINDEXED8 pixel format reading 2019-08-17 20:06:43 +01:00
Björn Blissing
844ec25948 Fixed spelling error in warning message 2019-08-16 13:52:56 +02:00
Robert Osfield
fd8019c886 Merged TextBase fixed from OpenSceneGraph-3.6 commit 149c04b0df 2019-07-31 14:30:47 +01:00
Robert Osfield
2b5e659973 Replaced GL_QUADS usage with GL_TRIANGLE_STRIP 2019-07-29 13:02:08 +01:00
Robert Osfield
8fad6bd039 Refactored the mesh setup to use GL_TRIANGLE_STIP instead of GL_QUADS 2019-07-29 12:29:25 +01:00
konstantin.matveyev
9d9273ca12 OSG_TEXT_USE_FONTCONFIG additional check needed 2019-07-26 14:52:56 +01:00
konstantin.matveyev
36a3c5f2b2 OSG_TEXT_USE_FONTCONFIG cmake option added: Set to ON to enable attempt to use FontConfig in osgText; Disabled by default for iOS and Android 2019-07-26 14:13:02 +01:00
Robert Osfield
2716c8a32b Change the DefaultFont so that it's managemed via the ObjectCache to enabl it to be release and cleared in a central manner.
Added call to Registry::releaseGLObjects() to osgViewer/Renderer.cpp to enable automatic clean up of objects in the ObjectCache.
2019-07-25 14:18:51 +01:00
Robert Osfield
887ecf255c Added readObject() implementations 2019-07-25 12:50:22 +01:00
Robert Osfield
62a4be7aeb Added ReaderWriterOBJ::readObject(..) implementations to address issue with using osgconv 2019-07-25 10:40:33 +01:00
Robert Osfield
d6af3f7d79 Added handling of iOS and Android to make sure FontConfig is only used for Desktop builds 2019-07-22 18:07:37 +01:00
Linan Wang
d79cad7fd1 fix typo 2019-07-19 09:21:56 +01:00
Linan Wang
4b046c7562 fix u64 and i64 allocation, setArray bug 2019-07-19 09:21:56 +01:00
Ralf Habacker
cae16c5fd7 obj plugin: Fix not writing material shininess 2019-07-18 13:29:55 +01:00
Ralf Habacker
2f71260c5a obj plugin: add option "NsIfNotPresent=" for setting the specular exponent of a material if not present 2019-07-18 13:29:37 +01:00
Ralf Habacker
4c1349c658 obj plugin: Fix bug not using specular color (Ks) for illumination mode > 2
See paragraph "Illumination models" at http://paulbourke.net/dataformats/mtl/ for details.
2019-07-18 13:20:41 +01:00
Robert Osfield
e1dc169915 Fixed indentation 2019-07-18 12:44:59 +01:00
Robert Osfield
ebde0e0d7b Merge branch 'Fix-obj-export-texturefile' of https://github.com/longhuan2018/OpenSceneGraph into longhuan2018-Fix-obj-export-texturefile 2019-07-18 12:26:39 +01:00
Robert Osfield
772a65f282 Added handling of zero radius models 2019-07-18 12:19:38 +01:00
Robert Osfield
b957581342 Removed references OpenVRML plugin 2019-07-18 11:16:08 +01:00
Robert Osfield
d695ed816b Removed vrml plugin from build as OpenVRML plugin relies on no longer supported functionality 2019-07-18 11:14:10 +01:00
Robert Osfield
6e5ac900ea Added calls to curl_global_init and curl_global_cleanup to improve the robustness of threaded curl plugin usage 2019-07-18 10:38:10 +01:00
Long Huan
05b943a6ba Add OutputTextureFiles Option
Add OutputTextureFiles Option support Write out the texture images to file
2019-07-18 09:13:25 +08:00
Long Huan
59e372b05d Update OBJWriterNodeVisitor.cpp 2019-07-17 15:07:38 +08:00
Long Huan
3008b953e9 fix obj-Plugin export texture file
Fix obj-plugin to support export texture file
2019-07-17 14:52:10 +08:00
Robert Osfield
305210c417 Adopted the matrix transformation code from Text 2019-07-15 16:19:15 +01:00
Robert Osfield
d24fd451b9 Cuietened down the reporting of failure to find fontconfig 2019-07-15 15:17:41 +01:00
Ralf Habacker
d08dbac902 obj plugin: Fix bug not adding first vertex index on writing GL_LINExxx array types 2019-07-15 14:26:36 +01:00
Robert Osfield
87597a7fff Added osg::Node associated limited to SO version 200 and higher 2019-07-15 12:22:11 +01:00
Ralf Habacker
4902fdfbd6 Fix 'Incorrect default location for true type fonts on openSUSE'
https://github.com/openscenegraph/OpenSceneGraph/issues/778
2019-07-15 11:48:25 +01:00
Robert Osfield
d562587858 Added check against any empty _segments to avoid undefined behaviour 2019-07-12 17:01:26 +01:00
Robert Osfield
e327fc16df Removed debug info for constructor and destructors 2019-07-12 16:28:45 +01:00
Robert Osfield
edd0d3e35f Added FrameBufferAttachment::resizeGLObjectBuffers(..) and releaseGLObjects(..) methods 2019-07-12 16:11:45 +01:00
Colin McDonald
0f8be27e82 Trivial change to src/osgSim/LineOfSight.cpp to quieten down an info message in DatabaseCacheReadCallback::readNodeFile. 2019-07-01 16:16:18 +01:00
Robert Osfield
2691a37946 Removed stray tab 2019-07-01 15:48:29 +01:00
Robert Osfield
3783ca77c6 Merge branch 'patch-1' of https://github.com/jimcamel/OpenSceneGraph into patch-1 2019-07-01 15:41:36 +01:00
Robert Osfield
7363069725 Merge branch 'fbxMultiTexCoords' of https://github.com/rickyviking/OpenSceneGraph into fbxMultiTexCoords 2019-07-01 15:01:01 +01:00
Robert Osfield
cc92ef8191 Fixed layout 2019-07-01 14:56:30 +01:00
Julien Valentin
84983020be update traversedebug preventing traversal to disable OQN 2019-07-01 14:56:21 +01:00
Robert Osfield
73dfe77d09 Merge branch 'check-numlock-state-when-remap-keys-win32' of https://github.com/Tordan/OpenSceneGraph into check-numlock-state-when-remap-keys-win32 2019-07-01 13:37:18 +01:00
Robert Osfield
8306ce5ca6 Restructed the setting of the default osgDB::Options so it doesn't override the ObjectCacheHint setting when a user specified osgDB::Options object is passed in. 2019-07-01 13:02:28 +01:00
Konstantin S. Matveyev
32834f7e5c typo fix 2019-07-01 13:01:33 +01:00
Robert Osfield
af38ed707a Couldn't resolve warnings coming from the FBX headers so had to suppress warnings. 2019-07-01 12:19:21 +01:00
jimcamel
ae250a0d16
Fixed bug where FFmpeg Image Stream would stop if paused for more than 10 seconds
The FFmpeg image stream class uses a 10 second timeout between frames to determine if the stream is dead and if so closes it. However, the timeout is determined using the variable lastUpdateTS which stores the last time the publishNewFrame function was called, and if the video has been playing and then is paused for longer than 10 seconds, when it is unpaused this timeout will fire and the stream will be closed, stopping the video playing beyond what has been buffered.

To stop this timeout from happening before the video starts playing, the timeout checks to see if the lastUpdateTS > 0 (at initialization it is set to 0). In this fix, we simply set the value of lastUpdateTS to 0 when the video is unpaused, this will force the check to skip on unpause, and from then on lastUpdateTS will have the correct value again.

The lastUpdateTS variable is private and only used for this one function, so there should be no side effects from the change.
2019-06-25 17:09:46 +12:00
OpenSceneGraph git repository
94e5a4f07c
Merge pull request #765 from LaurensVoerman/hdrGuard
fix typo in header guard.
2019-06-14 15:38:12 +01:00
OpenSceneGraph git repository
bf2f675a58
Merge pull request #762 from LaurensVoerman/fbx_writObject
fix typo in ReaderWriterFBX: writObject -> writeObject
2019-06-14 15:35:34 +01:00
OpenSceneGraph git repository
86fe895bd2
Merge pull request #761 from LaurensVoerman/readObject_master
implement readObject for all relevant readerWriters
2019-06-14 15:30:07 +01:00
Robert Osfield
77ab7827b5 From Chris Djali, merged from 3.6 branch "Various TGA improvements" 2019-06-14 15:24:50 +01:00
Laurens Voerman
acddb66240 fix compile error if OSGUTIL_RENDERBACKEND_USE_REF_PTR not defined in include/osgUtil/RenderLeaf 2019-06-14 14:31:01 +01:00
Riccardo Corsi
3b7f933984 Bugfix due to copy-paste typo which prevented multi uv channel mesh to be imported correctly. 2019-06-07 12:45:45 +02:00
Alexey Galitsyn
7a53bc5238 Fix not checking num lock state when remapping keypad keys on Windows.
Num lock state was never checked during remapping keypad keys on Windows.
Now when num lock is active, keypad numeric keys and keypad delimeter key
should work as expected (return KEY_KP_0 to KEY_KP_9 and KEY_KP_Decimal
respectivly).
2019-05-30 23:10:27 +03:00
Laurens Voerman
b006a7afae fix typo in header guard. 2019-05-22 09:45:58 +02:00
Laurens Voerman
3e78992cce fix typo in ReaderWriterFBX: writObject -> writeObject 2019-05-15 11:49:17 +02:00
Laurens Voerman
7a25132b33 implement readObject for all relevant readerWriters 2019-05-14 14:36:35 +02:00
Robert Osfield
22f4e44fa4 Fixed indentation 2019-04-26 10:47:15 +01:00
OpenSceneGraph git repository
5b688eb99d
Merge pull request #735 from Tlsirius/fix_fbx_hierarchy
fix fbx redundant node issue
2019-04-26 10:08:06 +01:00
Wei Lisi
a8397b1caf remove tabs 2019-04-19 13:04:35 +08:00
OpenSceneGraph git repository
3dbba705d9
Merge pull request #744 from zakalawe/master
macOS support for glVertexAttribDivisor with legacy GL
2019-04-11 12:44:11 +01:00
James Turner
0081c71cde macOS support for this extension with legacy GL
In compatibility mode (OpenGL 2.1), glVertexAttribDivisor is available
via glVertexAttribDivisorARB on macOS.
2019-04-11 09:25:15 +01:00
flashk
c0b046ead9
Update fbxRMesh.cpp 2019-04-05 14:31:21 -07:00
Wei Lisi
249a60c328 clean up 2019-03-26 22:37:50 +08:00
Wei Lisi
97ce560f72 fix fbx hierarchy issue 2019-03-26 21:01:24 +08:00
Robert Osfield
b988e690bb Added basic load and compile stats collection enabled by --stats command line. 2019-03-25 14:10:25 +00:00
Robert Osfield
50d1517833 Added a call to the CullSetting::readCommnadLine(..) to make sure the --NO_CULLING and --VIEW_FRUSTUM, --VIEW_FRUSTUM_SIDES command line parameters are honoured 2019-03-25 14:10:25 +00:00
Robert Osfield
e0d90fb4c2 Added --NO_CULLING, --VIEW_FRSUTUM and --VIEW_FRUSTUM_SIDES/--vfs command line options for setting the Camera CullingMode value 2019-03-25 14:10:13 +00:00
OpenSceneGraph git repository
c9e2bda0d7
Merge pull request #729 from jslee02/gnu_install_dirs
Use GNUInstallDirs for library installation path
2019-03-21 07:07:47 +00:00
Jeongseok Lee
ce61fc413a Use GNUInstallDirs only for CMake >= 2.8.5 2019-03-20 08:56:17 -07:00
OpenSceneGraph git repository
3ba6f3d682
Merge pull request #725 from Capostrophic/dynamiccast
Get rid of some type conversions
2019-03-16 11:33:42 +00:00
Capostrophic
35f256a9a1 Replace redundant asCullVisitor usage with a type check 2019-03-15 18:09:13 +03:00
Capostrophic
da16693b4a Add asOccluderNode method to avoid dynamic casts in group child handling 2019-03-15 18:09:13 +03:00
Jeongseok Lee
3285bdc8d8 Use GNUInstallDirs for library installation path 2019-03-14 08:46:46 -07:00
OpenSceneGraph git repository
d3174bd36c
Merge pull request #716 from AnyOldName3/patch-2
Resolve OpenGL error caused by confusion between geometry shader implementations
2019-03-14 13:51:05 +00:00
OpenSceneGraph git repository
cad7418eb2
Merge pull request #718 from flashk/patch-10
Fix osgAnimation transform not updating in some cases
2019-03-14 11:24:19 +00:00
OpenSceneGraph git repository
7b61419891
Merge pull request #722 from Capostrophic/matrix
Avoid unnecessary matrix type conversion in osgParticle
2019-03-14 10:34:37 +00:00
Robert Osfield
f6acb80357 Removed the optional code path hack 2019-03-14 10:13:15 +00:00
Capostrophic
52fe3679a3 Add OSG_USE_FLOAT_QUAT build option to use single precision quaternions 2019-03-13 22:08:19 +03:00
Capostrophic
7c71d8dc16 Avoid unnecessary matrix type conversion in osgParticle 2019-03-10 15:51:44 +03:00
flashk
22c8c669e7
Update StackedTransform.cpp 2019-03-05 09:32:55 -08:00
Chris Djali
fbb5839298
Resolve OpenGL error caused by confusion between geometry shader implementations.
There are two types of Geometry Shaders in OpenGL. One is provided by `GL_EXT_geometry_shader4` and `GL_ARB_geometry_shader4` and requires that certain parameters are set with calls to `glProgramParameteri` before the program is linked. The other is provided by OpenGL 3.2 as a core feature and by the GLES extensions `GL_EXT_geometry_shader` and `GL_OES_geometry_shader` and requires these parameters to be set in the GLSL source itself.

The value of `isGeometryShader4Supported` is being used to determine if the `glProgramParameteri` calls should occur, so it should only be `true` when one of the extensions requiring them is present.
2019-02-26 17:19:06 +00:00
Robert Osfield
572e1d75a4 Merge branch 'master' of https://github.com/openscenegraph/OpenSceneGraph 2019-02-25 15:07:38 +00:00
Robert Osfield
08ea80c904 Streamline the animation path completion message 2019-02-25 15:06:54 +00:00
Daniel Trstenjak
b431c29d44 OcclusionQueryNode: reset the test result of the invalid geometry
There're cases that the occlusion test result has been retrieved
after the query geometry has been changed, it's the result of the
geometry before the change.
2019-02-25 11:31:12 +01:00
Daniel Trstenjak
71997fa747 OcclusionQueryNode: ensure a valid query geometry
If the query geometry is invalid then don't do any occlusion queries and
never traverse the subgraphs.
2019-02-21 14:42:35 +01:00
OpenSceneGraph git repository
862788e14e
Merge pull request #711 from uhertlein/macos_10_14
Cleanups and support for macOS 10.14
2019-02-20 17:20:35 +00:00
OpenSceneGraph git repository
742b0607d5
Merge pull request #710 from bjornblissing/fbx-filename
Add search location for textures in FBX plugin
2019-02-20 17:17:34 +00:00
Robert Osfield
552ecb7674 Added override for broken bindings 2019-02-20 16:38:11 +00:00
Ulrich Hertlein
10af927260 Support for macOS 10.14
- 10.14 drops libstdc++
- drops support for Carbon :-)
- drops support for macOS < 10.9
2019-02-07 19:18:11 +01:00
Björn Blissing
3284d0545c Add search location for textures in FBX plugin
The FBX plugin may fail texture lookup even if the texture is located in
the same folder as the model file. This change tries, as a last resort,
to check if the texture filename is available in the same folder as the
model.
2019-02-04 14:46:42 +01:00
Robert Osfield
070e55e8e0 Added missing {} to fix getPassed() bug introducted by previus commit 2019-01-26 18:12:19 +00:00
Daniel Trstenjak
733f78a0b4 OcclusionQueryNode: ensure a consistent value for '_passed' 2019-01-26 18:12:19 +00:00
Robert Osfield
6eb0da3a16 Introduced a QueryGeometry::getQueryResult(const osg::Camera*) method as a more informative replacedment for QueryGeometry::getNumPixels(). 2019-01-26 18:12:19 +00:00
Daniel Trstenjak
f21ca61476 OcclusionQueryNode: add resetting of queries
If there's a big view change then it might not be appropriate to wait
for '_queryFrameCount' till the next query is issued, because then
geometry might pop into the view after '_queryFrameCount'.

This is especially important for applications not having a constant
frame rate, but just issue a new frame on demand.
2019-01-26 18:12:19 +00:00
Robert Osfield
c6eb63d529 Commented out the reset of the _vertexArrayObject = 0 as it was break later State::resetCurrentVertexArrayStateOnMatch() calls ability to reset the State::_currentVAO when required. 2019-01-23 15:42:41 +00:00
Robert Osfield
276ca14376 Fixed typo 2019-01-23 08:52:44 +00:00
Robert Osfield
336791ca35 Added reset of the State::CurrentVertexArrayState() to prevent the State::_vas becoming a dangling pointer when VertexArrayState objects are deleted. 2019-01-21 17:38:40 +00:00
Robert Osfield
68e4341cb4 Added calling of releaseGLObjects() and resizeGLObjects() to the Camera DrawCallback's to enable the draw callbacks to clean up their own GL objects. 2019-01-19 16:18:48 +00:00
Laurens Voerman
805e54752a clear temp objectCache in databaseRequest 2019-01-14 10:40:42 +00:00
Robert Osfield
32db852c77 Moved resizeGLObjects/releaseGLObjects out of Referenced to avoid multiple inheritance warnings 2019-01-12 11:28:25 +00:00
Robert Osfield
1c3b2d2285 Added read/writeObject() entry point to FBX plugin. 2019-01-10 09:48:03 +00:00
Robert Osfield
45872fbb68 Replaced use of heap with use of stack created ifstream to avoid potential memory leak 2019-01-09 08:43:08 +00:00
Robert Osfield
3da76932e6 Introduced use of ref_ptr<> and private destructor to tighen up memory management and avoid users attempting to inappropriately delete TexCoordRange. 2019-01-09 08:38:16 +00:00
Robert Osfield
466bbc6740 Fixed for crashes on exit associaciated with VAO usage and vairous niche usage cases 2019-01-08 19:35:37 +00:00
Robert Osfield
dd9ccbad86 Fixed crash on exit issues with osgFX, osgParticle, osgSim and the osgforest example 2019-01-08 19:35:29 +00:00
Kent
51cfa0fa26 fix readtexture issue 2019-01-07 10:38:14 +08:00
kent
32400af6c1 Merge branch 'master' of github.com:openscenegraph/OpenSceneGraph 2019-01-04 21:21:56 +08:00
Robert Osfield
7efe889537 Added use of sizeof to make code a bit more flexible 2019-01-04 08:10:15 +00:00
Robert Osfield
49cf25718c Restructured the clean up of arrays/primitives and GL objects 2019-01-04 08:08:07 +00:00
Robert Osfield
25c60dc675 Cleaned up Geometry::dirtyGLOjects() and Geometry::releaseGLObjects() 2018-12-31 12:14:26 +00:00