Robert Osfield
8631eaaf40
From Michael Platings, fixed memory leak
2009-03-23 16:26:27 +00:00
Robert Osfield
d843de261e
From Neil Hughes, changed the handling of opacity maps so that when they are used blending in enabled. Merged from svn/trunk using:
...
svn merge -r 9905:9906 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp
2009-03-11 13:31:17 +00:00
Robert Osfield
8297d8f0cb
From Humar Carmona, "When reading a DXF file, the reader breaks at a debug assertion at vector (it breaks on release version). Inspecting the code show that the cause could be in dxfEntity.cpp.
...
It seems that the problem is an offending "short" used in a for loop, where it should be "int" or "long". It causes an index out of range error. "
Merged from svn trunk using:
svn merge -r 9803:9804 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfEntity.cpp
2009-02-20 11:41:30 +00:00
Robert Osfield
439c3a866b
Fixed bug in checking of return values. Fix merged in from svn/trunk using:
...
svn merge -r 9800:9801 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osgPlugins/hdr/hdrloader.cpp
2009-02-19 17:40:55 +00:00
Robert Osfield
f963397726
From Riccardo Corsi, "in attach you'll find a patch to cleanup a little bit the (de)initialization code of QuickTime? environment from the quickTime pluging.
...
It basically removes the static init() and exit() functions,and move them inside the observer class (the one that cleans everything up when the last media is unloaded).
It also add an extra check to clean up on exit if the QuickTime? env is initialized, but no media is succesfully loaded / written (it might happens with streaming resources).
I tested it under WinXP with zero, one and multiple videos. "
Merged from svn/trunk using:
svn merge -r 9768:9769 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk
2009-02-11 17:42:17 +00:00
Robert Osfield
db00cb1613
From Roland Smeenk, "Attached are two small fixes:
...
-I changed the SET of COLLADA_BOOST_INCLUDE_DIR to use findpath, so users may override this setting if they choose not to build against to precompiled boost libraries delivered with the Collada DOM.
-Changed daeRMaterials.cpp to prevent a compiler warning about a potentially uninitialized variable."
2009-02-11 09:16:58 +00:00
Robert Osfield
1420393b00
Warning fix
2009-02-10 20:28:29 +00:00
Robert Osfield
07bccafd05
Merged from svn/trunk changes for better Collada build support from Roland Smeenk, Roger James and Robert Osfield, merge commands.
...
svn merge -r 9740:9741 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk
svn merge -r 9750:9751 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk
2009-02-10 20:15:54 +00:00
Robert Osfield
aef27c4387
From Pierre Haritchabalet, "In IO_FluidProgram.cpp, FluidProgram_readLocalData() function is wrong. When density parameter is read, the function "setFluidViscosity()" is called instead of "setFluidDensity()".
...
This patch fixes osg plug'in FluidProgram_readLocalData."
merged from svn/trunk using:
svn diff -r 9748:9749 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk
2009-02-10 18:59:22 +00:00
Robert Osfield
4adc16bcdd
From Jason Beverage, "I've added a small change to the CURL plugin that allows support for HTTP redirects."
...
Merged from svn/trunk:
svn merge -r 9743:9744 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk
2009-02-10 13:58:07 +00:00
Robert Osfield
ea3b08526d
From Bryan Thrall, "The .osg plugin doesn't seem to support an option to write shader files
...
separately, so it always inlines them in the .osg file (as far as I can
tell). This change adds that ability. "
Merged from svn/trunk.
2009-02-09 21:53:18 +00:00
Robert Osfield
f29ddb0e05
Fixed data copy bug
2009-02-06 12:12:40 +00:00
Robert Osfield
fde95d5ccf
From Alberto Luaces, "here are some minor fixes to notify warnings were the std::hex modifier was
...
used but never restored to the decimal notation. That made OSG print messages
like the following after some notifications:
Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,)
RenderStage::drawInner(,) FBO status= 0x8cd5
[...]
Scaling image 'brick_side.JPG' from (1b4,24f) to (200,200) <--- Values in hex
because of previous error.
[...]"
2009-02-06 10:35:18 +00:00
Robert Osfield
a571574a1c
Added suppression of strict-alaising warning emitted by gecko headers
2009-02-05 14:34:15 +00:00
Robert Osfield
223c603a8c
Disabled deprecated warning
2009-02-05 14:16:04 +00:00
Robert Osfield
91716f6e06
Fixed tabs
2009-02-05 12:45:02 +00:00
Robert Osfield
b8345534c5
Added initializer to fix warning
2009-02-05 12:43:22 +00:00
Robert Osfield
3a34e2869b
From Jean-Sebastien Guay, warning fixes.
2009-02-04 19:22:25 +00:00
Robert Osfield
734463fcc7
Warning fixes
2009-02-03 15:28:53 +00:00
Robert Osfield
630f5087dc
From Stephan Huber, build fix for OSX XCode build
2009-02-02 16:56:46 +00:00
Robert Osfield
fa727038a4
From Cedric Pinson, "Here an update of the osgAnimation ReaderWriter, it add other NodeCallback that could be attached to a node with Bone."
2009-02-02 14:51:51 +00:00
Robert Osfield
3d1c38f5e8
From Pierre Haritchablaet, "The wind vector of osgParticle::FluidFrictionOperator has not been written and read in IO_FluidFrictionOperator. This patch fixes osg plug'in FluidFrictionOperator_readLocalData and FluidFrictionOperator_writeLocalData."
2009-02-02 14:50:19 +00:00
Robert Osfield
2d55740b3e
Refactored osg::TransferFunction1D to use an std::map internally which is kept in sync with the actual osg::Image that is passed to the GPU.
...
Added .osg support for osg::TransferFunction1D.
Updated wrappers
2009-02-02 14:43:27 +00:00
Robert Osfield
d6b0cd64f1
Ground work for full .osg support for osg::TransferFunction*
2009-02-01 12:38:55 +00:00
Robert Osfield
b514b435f4
Added initial placeholder for .osg support for osgVolume::TransferFunctionProperty
2009-01-31 21:46:16 +00:00
Robert Osfield
eae23b01c3
From Lionel Lagarde, "this correct how the ParticleEffect are serialized :
...
- the texture file name is taken from the TextFileName field
- the texture file name is written using writeString
"
2009-01-30 14:54:22 +00:00
Robert Osfield
6710fbc78a
Added support for osgVolume::ProperyAdjustmentCallback
2009-01-29 20:40:56 +00:00
Robert Osfield
51403143bd
Added support for osgVolume::Property classes
2009-01-29 20:34:22 +00:00
Robert Osfield
4c75313ced
Fixed handling of files with event callbacks on them.
2009-01-29 17:19:47 +00:00
Robert Osfield
d62c34efe8
From Jason Daly, "Somehow, one of the shaders in the bsp plugin started behaving incorrectly between the original submission and now. I suspect it has to do with a typo in the setup of the shader that was fixed at some point, or it happened during the recent warnings purge. In any case, I had to invert the usage of a parameter in the shader to make it behave properly again.
...
The vtf plugin wasn't working in Windows due to OS differences in the byte-packing of the header structure (on Windows, the big block read was causing a buffer overrun). I fixed this by reading the structure from the file field by field. It's now happy on both Linux and Windows."
2009-01-29 11:18:03 +00:00
Robert Osfield
2bf68cab53
Fixed warning
2009-01-29 11:03:38 +00:00
Robert Osfield
5ac339d7b2
Replaced -1 with ~0u to fix warning due to being written to a UInt field. Note, OpenFlight spec says -1, which is clearly an error in the spec, so we've had to guess at ~0u being an appropriate value.
2009-01-29 09:27:23 +00:00
Robert Osfield
ca1f1e5abe
Fixed warnings
2009-01-28 12:51:47 +00:00
Robert Osfield
065b1d4978
Fixed warnings
2009-01-28 12:28:04 +00:00
Robert Osfield
998582e945
Added back in intializers for RenderSurface.
2009-01-28 09:06:46 +00:00
Robert Osfield
a7b057feee
From Jason Beverage, "Here is a small fix that enables writing 16 bit short images in the tiff plugin.
...
"
2009-01-27 15:14:47 +00:00
Robert Osfield
c7bf776bcb
Converted across to using ref_ptr<> to avoid memory leak/dangling pointer issues.
2009-01-26 16:55:53 +00:00
Robert Osfield
88ce4a3786
From Roland Smeenk, "attached is a small crash fix for the case that a texture is used for transparency without the availability of a diffuse texture."
2009-01-23 15:52:10 +00:00
Robert Osfield
7b598c5701
Warning fixes for VS, and removal of associated warning disables
2009-01-23 15:12:26 +00:00
Robert Osfield
aa8402ce81
Added workaround for silly posix read deprecation warning under VS.
2009-01-23 15:02:04 +00:00
Robert Osfield
1fe0f0c0d6
Added range of visual rendering properties to readNode's creation of VolumeTile/ImageLayer.
2009-01-23 11:52:18 +00:00
Robert Osfield
99313d225b
From Roger James, The changes are as follows:-
...
1. Support for ambient occlusion maps.
2. A fix for the incorrect handling of normals on all geometries. The optimizer usually fixed this bug so it probably was not noticed very often.
3. A new option flag on the reader. "StrictTransparency"
// Process transparent and transparency settings according to a strict interpretation of the spec
// See https://collada.org/public_forum/viewtopic.php?f=12&t=1210
otherwise
// Jump through various hoops to accomodate the multiplicity of different ways
// that various people have interpreted the specification
4. Handling of texures in the transparent channel. This is allowed provided that they are the same texture that is specified in the diffuse channel. Accomodating a different texture would require use of programmable pipeline functionality which I have tried to avoid.
5. Handling of <bind_vertex_input> elements.
""
2009-01-21 18:47:55 +00:00
Robert Osfield
908432c732
Replaced readImageFile() usage with readRefImageFile() to prevent threading issues with caching of imagery in the osgDB::Registry cache.
2009-01-21 18:23:55 +00:00
Robert Osfield
a6284b0e03
Renamed ShaderTechnique to RayTracedTechnique
2009-01-21 14:27:58 +00:00
Robert Osfield
8a971d96d2
Fixed compile error when using ITK
2009-01-20 11:34:15 +00:00
Robert Osfield
b176c3a223
Removed old volume rendering scene graph code from osgvolume example.
...
Moved createNormalMapTexture and applyTransferFunction functions from osgvolume example into include/osgVolume/Layer.
2009-01-16 17:59:38 +00:00
Robert Osfield
5e629d1236
Added default use of osgVolume::ShaderTechnique
2009-01-16 10:34:58 +00:00
Robert Osfield
78c2f98b7a
Introduced ImageLayer computeMinMax + rescaling methods, and use of rescaleToZeroToOneRange by default.
2009-01-16 10:23:17 +00:00
Robert Osfield
c28221b06f
Changed setVolumeTechnique to setVolumeTechniquePrototype()
2009-01-14 20:43:21 +00:00
Robert Osfield
1a00a2ce3c
Added osgVolume .osg plugin
2009-01-14 20:32:06 +00:00