scrawl
33e654f94d
Add explicit handling of most commonly used nodes to NodeVisitors to avoid excessive virtual function calls
8 years ago
scrawl
f3045331f1
Fix regression in handling of NiZBufferProperty
8 years ago
scrawl
851f61ac82
Always assign osg::Material when a material controller is used
8 years ago
scrawl
9180089a3b
Add sharing for more State Attributes, most notably BlendFunc and AlphaFunc, to improve the state tracking in osg::State and reduce the number of GL calls
8 years ago
scrawl
960d4a96c3
Reduce the number of osg::Material state by setting the default state on the graph root
8 years ago
scrawl
e399e10607
Add missing lock in shareMaterial
8 years ago
scrawl
115e563a7a
Fix race conditions caused by Array <-> GLBufferObject interactions (Bug #3580 )
...
The first part of the fix is to assign VBO/EBO's upon loading the array in the Nif reader. This avoids triggering the 'addVertexBufferObjectIfRequired' code path in osg::Geometry which has the race condition when two threads add the same Array at the same time. Essentially, we want the Arrays to be 'const' when they come out of the Nif reader.
The second part of the fix is to make sure not to create empty arrays in the Nif reader (importantly, not assigning a VBO to the empty array). This empty array would be deleted when the NIFFile is cleaned up, and the detachment of the VBO assigned to it (which is still in use by other arrays) would cause threading issues.
This rare crash bug was first introduced with commit a7c5beb7c5
. When using OSG dev version 3.5 the crashes were a little more prevalent, because 'addVertexBufferObjectIfRequired' in osg::Geometry is now used even when VBO's are disabled (as part of the VAO support changes).
8 years ago
scrawl
aafff1deb6
Fix memory leak
8 years ago
MiroslavR
99bcf47167
Implement NiSphericalCollider ( Closes #3644 )
8 years ago
Allofich
6ec37b5cfb
Fix shadowing warnings
8 years ago
scrawl
cd4b182091
Merge pull request #1051 from Allofich/textures
...
Use spell effect particle textures
8 years ago
Allofich
a8e9f2df67
Cleanup
8 years ago
Allofich
be96ff1fd1
Remove redundant parameter
8 years ago
scrawl
8f5347b79b
Update comment, osgAnimation::RigGeometry is no longer used
8 years ago
Allofich
a033ba3bd2
Override spell textures by NiTexturingProperty
8 years ago
scrawl
a5da3a269e
Fix shadowing warnings
8 years ago
scrawl
341e3846c0
Use initial particle state to compute the initial bounding box ( Fixes #3500 )
9 years ago
scrawl
513e1da8a3
Remove unneeded casts
9 years ago
scrawl
33d27a2285
Use ref_ptr
9 years ago
MiroslavR
721fa28c1e
Fix assertion failure with NiTextureEffect missing source texture
9 years ago
MiroslavR
9c6739f1b3
Fix doubled particle spawn range
9 years ago
MiroslavR
2a987b6857
Do not skip inactive keyframe controllers (Bug #1942 )
9 years ago
scrawl
62018e802b
Minor fix to particle system AutoPlay flag handling
...
The previous commit broke some magic effects (e.g. shield). The controller's emit start/stop times should control the emitter, while the absence of the ParticleSystem's autoplay flag should freeze the whole particle system if no valid controller source gets assigned. This revised version works for both the Shield effect and the "dagoth ur death sparkles" effect.
9 years ago
scrawl
7202072196
Freeze particle systems on construction if the AutoPlay flag is missing
9 years ago
scrawl
0c08f705c5
Make the ParticleSystemController freeze the particle system instead of the emitter (Bug #3390 )
9 years ago
scrawl
e30bb31a79
Handle the particle node's AutoPlay flag (Bug #3390 )
9 years ago
scrawl
bc36269617
When a controller is present more than once in the same keyframe file, pick the first one ( Fixes #2719 )
9 years ago
scrawl
aae43dbff5
Set the MorphGeometry vertex buffer object usage to GL_DYNAMIC_DRAW
9 years ago
scrawl
84b8da7a09
Share the osg::Material on drawables
...
Reduces the number of GL calls / frame by ~4%.
9 years ago
scrawl
abcfe9bcee
Don't add empty text key objects
9 years ago
scrawl
02d23564dc
Include cleanup
9 years ago
scrawl
f898bf493f
Don't use Geodes
9 years ago
scrawl
82b792f808
Eliminate dynamic_cast in BillboardCallback
9 years ago
scrawl
dd2fbfc0a2
Fix windows build
9 years ago
scrawl
6e7c6fdd7e
Implement NiTexturingProperty::DecalTexture
9 years ago
scrawl
30d06bfe0e
Add comment
9 years ago
scrawl
64636bd85a
Improve error reporting
9 years ago
scrawl
cdccf03228
Fix mismatched delete
9 years ago
scrawl
5f4ace1bc2
Implement support for sphere map NiTextureEffects ( Fixes #1827 )
9 years ago
scrawl
90a99991d1
Use empty() instead of !size()
9 years ago
scrawl
8bd16e4d5a
Don't compute the world matrix multiple times
9 years ago
scrawl
055d35a2b0
Revert "Warn about particle emitters that have multiple parent node paths"
...
Not working correctly because osg won't ignore camera nodes.
This reverts commit 1667c807be
.
9 years ago
scrawl
1667c807be
Warn about particle emitters that have multiple parent node paths
9 years ago
scrawl
8f81df2bd3
Cleanup
9 years ago
scrawl
e647ee5424
Support RGB and RGBA embedded textures in NIF files ( Fixes #2295 )
9 years ago
scrawl
606758d72f
NifLoader: create the BumpTexture slot, but don't use it yet
9 years ago
scrawl
4cd4131da9
NifLoader: assign a name to created textures
...
This name will tell the shader visitor how to handle that texture.
9 years ago
scrawl
50e92c8136
NifLoader: move texture property handling to a separate function
9 years ago
scrawl
acf44fd9e5
NifLoader: handleTextureControllers outside of the NumTextures loop
9 years ago
scrawl
5824619a95
Clean up includes
9 years ago