Daniel Trstenjak
5770774e00
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 15:08:38 +00:00
Daniel Trstenjak
5624a22fe4
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 17:34:26 +00:00
Björn Blissing
9905b90a18
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-20 17:19:04 +00:00
Robert Osfield
971eba37ad
Added override for broken bindings
2019-02-20 16:31:58 +00:00
OpenSceneGraph git repository
1504a54cd8
Merge pull request #702 from mp3butcher/fix36
...
add MeshReindexation flag
2019-01-26 18:21:47 +00:00
Robert Osfield
0f2e9e6557
Added missing {} to fix getPassed() bug introducted by previus commit
2019-01-26 18:10:44 +00:00
Daniel Trstenjak
cd150cbe96
OcclusionQueryNode: ensure a consistent value for '_passed'
2019-01-26 17:42:20 +00:00
Robert Osfield
02d7d980a7
Introduced a QueryGeometry::getQueryResult(const osg::Camera*) method as a more informative replacedment for QueryGeometry::getNumPixels().
2019-01-26 16:33:23 +00:00
Daniel Trstenjak
c8521068a5
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 15:22:08 +00:00
OpenSceneGraph git repository
bdd0be2f8f
Changed member variable name to be consistent with header
2019-01-23 17:03:27 +01:00
mp3butcher
b8f9249bea
add a bool parameter to allow forced reindexation of a mesh
2019-01-23 17:02:53 +01:00
Robert Osfield
e2fb88e187
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:40:13 +00:00
Robert Osfield
749dc86dd3
Fixed typo
2019-01-23 08:52:11 +00:00
Robert Osfield
488b4854b2
Added reset of the State::CurrentVertexArrayState() to prevent the State::_vas becoming a dangling pointer when VertexArrayState objects are deleted.
2019-01-21 17:36:40 +00:00
Robert Osfield
6455159757
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:16:53 +00:00
Laurens Voerman
eeb13d1efc
clear temp objectCache in databaseRequest
2019-01-14 10:24:30 +01:00
Robert Osfield
fe98c3d7f5
Moved resizeGLObjects/releaseGLObjects out of Referenced to avoid multiple inheritance warnings
2019-01-12 11:27:18 +00:00
Robert Osfield
46b07141e8
Added read/writeObject() entry point to FBX plugin.
2019-01-10 09:45:32 +00:00
Robert Osfield
8103da6ef1
Replaced use of heap with use of stack created ifstream to avoid potential memory leak
2019-01-09 09:51:21 +00:00
Robert Osfield
bd83044c08
Introduced use of ref_ptr<> and private destructor to tighen up memory management and avoid users attempting to inappropriately delete TexCoordRange.
2019-01-09 09:51:21 +00:00
Robert Osfield
f6b64afdfc
Fixed for crashes on exit associaciated with VAO usage and vairous niche usage cases
2019-01-08 19:32:50 +00:00
Robert Osfield
1c65815f4e
Fixed crash on exit issues with osgFX, osgParticle, osgSim and the osgforest example
2019-01-07 17:46:02 +00:00
Robert Osfield
5e9be10da6
Merged changes from master
2019-01-07 10:25:13 +00:00
Robert Osfield
e12049ed47
Added use of sizeof to make code a bit more flexible
2019-01-04 08:14:41 +00:00
Robert Osfield
fd47b84bd7
Restructured the clean up of arrays/primitives and GL objects
2019-01-04 08:14:33 +00:00
Robert Osfield
b7947b13f3
Changed the clean up of the GL objects on destruction so that the destructors of the arrays/primitives themselves do the release rather than have it done explictly in the destructor. This allows arrays/primitives to be shared.
2018-12-31 11:06:45 +00:00
Julien Valentin
07e5480b57
setup camera Read/Draw Buffer
...
fix flickering shadows in SingleThread
2018-12-19 18:30:26 +01:00
OpenSceneGraph git repository
da7bf3ff81
Fixed indentation
2018-12-13 14:10:26 +00:00
OpenSceneGraph git repository
a6fbf73f36
Merge pull request #671 from mp3butcher/patch-16
...
remove useless code
2018-12-13 08:31:27 +00:00
Julien Valentin
064c39a7f3
remove dead code
2018-12-11 23:56:47 +01:00
Thomas Hogarth
e8ba57b22f
Improved iOS cmake support for xcode 9.4 and cmake 3.11
2018-12-10 08:22:36 -07:00
Daniel Emminizer
3a3ddfce49
osgText::String:createUTF8EncodedString() now supports 4-byte UTF-8 strings (code points over 0x100000).
2018-12-06 14:10:14 -05:00
flashk
dc2aa77d98
Prefer FOURCC pixel format in DDS loader
...
I have found that certain image editing programs export DDS images with both the DDPF_FOURCC and DDPF_RGB pixel format flags. The DDS loader will give preference to the DDPF_RGB flag and try to deduce the format from the RGB bit mask values instead of using the more reliable FOURCC flag. This causes some images to not load, even though the FOURCC flag is supported. I've modified the loader so that it checks for the DDPF_FOURCC flag first, then falls back on deducing the format from the RGB bit masks.
2018-11-23 12:36:45 +00:00
Robert Osfield
aa6cd2d7da
Added, currently commented out, alias for .vsga and .vsgb to help with automatic loading a vsg plugin when .vsga and .vsgb files are encountered.
2018-11-20 14:24:24 +00:00
Robert Osfield
1eedae844e
Removed 12 year old workaround that is no longer required and was causing a misleading info message "OpenGL extension '' is not supported." to be reported.
2018-11-09 11:25:16 +00:00
OpenSceneGraph git repository
e819ea9c0e
Replaced tabs with spaces to fix indentation
2018-11-03 16:16:19 +00:00
flashk
15b9a493ed
Fix handling of alpha values in animated gifs
...
The gif loader was incorrectly setting pixels as transparent in certain animated gifs. It was ignoring the disposal method value in the extension block and always overwriting the alpha value in each frame. It is common for some animated gifs to set the disposal method so that the previous alpha value is retained. This patch modifies the loader to respect the disposal method flag.
2018-11-03 16:16:10 +00:00
Robert Osfield
0341d6f873
Removed reprecated C++ usage
2018-11-01 09:13:43 +00:00
flashk
452802b168
Update daeRMaterials.cpp
2018-10-22 09:17:37 +02:00
flashk
5a3f2e287c
Update daeReader.h
2018-10-22 09:17:37 +02:00
Robert Osfield
bf5a88870f
Added check under Windows for a concatinated path that exceeds the MAX_PATH so that it isn't used for file IO operations that could lead to undefined behavior
...
https://github.com/openscenegraph/OpenSceneGraph/issues/634
2018-10-17 15:55:10 +01:00
flashk
8af46a6e98
Update ReaderWriterDAE.cpp
2018-10-17 15:54:54 +01:00
flashk
56617a4bfb
Fix crash in Collada loader
...
The collada loader would crash when processing effects that didn't have a technique defined.
2018-10-12 07:38:59 +01:00
Boris Pek
7eaceb0baa
fix builds with case sensitive includes
...
Tested during cross-compilation for MS Windows using MinGW.
2018-10-10 18:26:43 +01:00
Robert Osfield
8feae585e1
Fixed buld
2018-10-10 13:10:55 +01:00
Antoine Lavenant
fa7843d520
fix apply once
2018-10-10 08:16:41 +01:00
flashk
d48a304569
Fix for HDR DDS images
...
The DDS loader was not applying the correct internal format for certain HDR images (e.g. float/half_float formats)
2018-10-04 09:22:57 +01:00
flashk
ce90a9b2da
osgDB::OutputStream write array optimization
...
I've made a change to osgDB::OutputStream::writeArrayImplementation so that it writes the array data in a single write operation for binary files. This significantly speeds up writing out osgb files for large data sets (e.g. point clouds). osgDB::InputStream already performs a similar optimization when reading array data from binary files.
2018-10-04 09:22:38 +01:00
flashk
273dd046c2
Fix for GifImageStream::setReferenceTime
...
Setting the reference time greater than the duration of a gif would cause a crash. Also, the current reference time is not immediately updated when manually setting the reference time.
2018-10-04 09:22:26 +01:00
flashk
627c3df093
Update ReaderWriterFBX.cpp
2018-10-04 09:22:14 +01:00