Hi All,
I have just tagged the 3.1.5 dev release.
OpenSceneGraph-3.1.5, released on 12th March 2013, key
deliverables in this dev release are:
Improvements to Android build support.
Support for reading OpenFlight material codes using
osg::Object::UserValue's assigned to osg::Drawable.
Updated ffmpeg plugin to work with ffmpeg-1.0 and build under Android.
Merged pending submissions that fixed a range of bugs and
minor feature additions.
Warning fixes
source package : OpenSceneGraph-3.1.5.zip
svn tag: svn co
http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-3.1.5
OpenSceneGraph
Thanks to all the contributors :-)
Robert.
ChangeLog since 3.1.4:
2013-03-11 17:16 robert
* src/osg/Group.cpp: From Aurelien Albert, "There is a little bug
in the osg::Group::insertChild method :
If the index is more than the size of _children vector, the new
child is pushed at the end of the vector, but the index value is
unmodified, so an incorrect value is passed to the
"childInserted" method."
2013-02-22 17:42 robert
* src/osgSim/LightPointNode.cpp: From Chris Hanson, " Adds missing
copy for _bbox member variable to copy constructor:
LightPointNode::LightPointNode(const LightPointNode& lpn,const
osg::CopyOp& copyop):
osg::Node(lpn,copyop),
_bbox(lpn._bbox),
_lightPointList(lpn._lightPointList),
_minPixelSize(lpn._minPixelSize),
_maxPixelSize(lpn._maxPixelSize),
_maxVisibleDistance2(lpn._maxVisibleDistance2),
_lightSystem(lpn._lightSystem),
_pointSprites(lpn._pointSprites)
{
}
Lacking this causes _bbox to be uninitialized after LOD changes
when paged databases refer to shared subgraphs.
"
2013-02-13 16:29 robert
* include/osg/SampleMaski, include/osg/StateAttribute,
src/osg/CMakeLists.txt, src/osg/SampleMaski.cpp,
src/osgWrappers/serializers/osg/SampleMaski.cpp: From Lukasz
Izdebski,"added support for gl_SampleMaski."
2013-02-13 16:03 robert
* PlatformSpecifics/Android/AndroidManifest.xml.master.in: From
Jordi Torres, "This error occurs when compiling current OSG with
the NDK >=r8c:
android-ndk-r8d/build/gmsl/__
gmsl:512: *** non-numeric second argument to `wordlist' function:
''. Stop.
This is discussed in this thread[1].
The solution is to add <uses-sdk android:minSdkVersion="8" /> to
the manifest as the OSG library will only run in devices with
Android>=2.2 (Froyo) with API level 8 [2].
The fix does not affect to older sdk's.
Thanks to Jan Ciger for spotting the bug and find a possible
solution. "
2013-02-12 15:44 robert
* include/osg/Math: From Jordi Torres, Android build fix
2013-02-12 15:40 robert
* src/osgPlugins/osc/osc/OscHostEndianness.h: From Jordi Torres,
fix for Android build
2013-02-12 15:18 robert
* src/osgPlugins/osc/OscSendingDevice.cpp,
src/osgPlugins/osc/ReaderWriterOscDevice.cpp: From Stephan Huber,
fixed bug in setting _numMessagesPerEvent and added more debug
information
2013-02-07 19:16 robert
* src/osgPlugins/3ds/ReaderWriter3DS.cpp: From Mike Connell, "3
smaller fixes for the 3DS loader (against trunk)
1. Respect "noMatrixTransforms" option for matrices attached to
meshes, not only those attached to nodes
2. traverse_nodes variable did the exact opposite of it's
description.
3. Always try to load referenced textures, even if we can't find
the files (in order to the the registry's ReadFileCallback have a
stab at it)
"
2013-02-07 11:10 robert
* src/osgDB/InputStream.cpp, src/osgDB/OutputStream.cpp: From
Lukasz Izdebski , "I added write and read numInstances in
PrimitiveSet."
2013-02-07 11:08 robert
* CMakeLists.txt, include/osg/Version: Updated SO version in prep
for serialization foramt change
2013-02-07 08:46 robert
* AUTHORS.txt, ChangeLog, applications/osgversion/Contributors.cpp:
Updated AUTHORS list
2013-02-06 16:04 robert
* src/osgPlugins/OpenFlight/Document.cpp,
src/osgPlugins/OpenFlight/Document.h,
src/osgPlugins/OpenFlight/GeometryRecords.cpp,
src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp: From Wee See,
Support for importing OpenFlight Surface Material Codes using
osg::Object::UserValue. Notes from Wee See:
See attached my ported code, which fulfills:
- using of setUserValue()/getUserValue()
- user-value will be attached to Geode or Drawable
- actually 3 values will be added: SMC (surface), FID (feature)
and IRC (IRcolor). Its UserValue-names are < UA:SMC >, < UA:FID >
and < UA:IRC > (without spaces!)
- user-value will be attached to Geode or Drawable
- has an option (named preserveNonOsgAttrsAsUserData) for control
whether the UserValues should be attached (Default: no UserValues
will be attached)
Reading out this values is very simple. Here is an example
(uservalue-name without spaces!):
signed short smc;
if (myGeode.getUserValue("< UA:SMC >", smc))
{
doSomethingWithTheGeodeAndItsSmc(myGeode, smc);
}
else
{
// geode has no SMC
}
2013-02-06 14:50 robert
* include/osg/State: From Aurelien Albert, "This line,I use the
"useVertexAttributeAliasing" mode in my application, and color
arrays are not normalized, so shaders get [0.0-255.0] values
instead of [0.0-1.0] values.
This patch fix this."
and those below, will be ignored
----
M include/osg/State
2013-02-06 14:49 robert
* src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: Added TODO note
about RGB -> RGBA
2013-02-06 12:46 robert
* CMakeModules/FindFFmpeg.cmake,
src/osgPlugins/ffmpeg/CMakeLists.txt,
src/osgPlugins/ffmpeg/FFmpegDecoder.cpp,
src/osgPlugins/ffmpeg/FFmpegDecoder.hpp,
src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp,
src/osgPlugins/ffmpeg/FFmpegHeaders.hpp,
src/osgPlugins/ffmpeg/FFmpegImageStream.cpp,
src/osgPlugins/ffmpeg/FFmpegParameters.cpp,
src/osgPlugins/ffmpeg/FFmpegParameters.hpp,
src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp: From David Longest,
"I have updated the FFmpeg plugin to support the 1.0 release
version of FFmpeg. The files attached were modified in order to
facilitate the update. Below are the details for all changes
made.
Header update
FindFFmpeg.cmake has been changed in order to support the new
header include format for FFmpeg. In the 1.0 release, a new file
had been added with the name “time.h” in the avutil library. The
previous method of adding includes caused conflicts with the ANSI
C “time.h” file. Now the include directive will only use the main
include folder. All files using the old include format have been
updated to reflect the change.
Added __STDC_CONSTANT_MACROS define to CMakeLists.txt
Since there is no guarantee that FFmpegHeaders.hpp will be
included before stdint.h is included, the define has been moved
from FFmpegHeaders.hpp to be part of the CMakeLists.txt for the
FFmpeg plugin. This will allow the define to work on all
compilers regardless of include order.
Replaced AVFormatParameters with AVDictionary
AVFormatParameters is no longer supported in FFmpeg and has been
replaced with a key/value map of strings for each setting.
FFmpegParameters and FFmpegDecoder has been updated to reflect
this.
Replaced av_open_input_file with avformat_open_input
FFmpeg now opens files using avformat_open_input. Since the
av_open_input_file method is deprecated, the FFmpegDecoder class
has been updated to reflect this change.
Added custom AVIOContext field to options
Since some formats and inputs may not be supported by FFmpeg, I
have added a new parameter that allows a user to allocate their
own AVIOContext. This class will allow for creating a read, seek,
and write callback if they desire.
Checking for start_time validity
It is possible for some file formats to not provide a start_time
to FFmpeg. This would cause stuttering in the video since the
clocks class would be incorrect.
Removed findVideoStream and findAudioStream
The new FFmpeg release already has a function that will find the
best audio and video stream. The code has been replaced with this
function.
Updated error reporting
Some functions would not log an error when opening a file or
modifying a file failed. New logs have been added as well as a
function to convert error numbers to their string descriptions.
decode_video has been replaced
The old decode_video function would remove extra data that some
decoders use in order to properly decode a packet. Now
av_codec_decode_video2 has replaced that function.
Picture format changed from RGBA32 to RGB24
Since most video will not contain an alpha channel, using a 24
bit texture will use less memory."
2013-02-06 12:02 robert
* include/osg/Math: Simplified include/osg/Math to use Standard C++
maths headers - <cmath> and <cfloat>
2013-02-06 11:16 robert
* examples/osgdepthpeeling/Utility.cpp: Fixed warning
2013-02-06 09:20 robert
* src/osgPlugins/osc/osc/OscOutboundPacketStream.h: From Stephan
Huber, fixed for Windows 64bit build
2013-02-05 18:22 robert
* examples/osgoscdevice/osgoscdevice.cpp,
src/osg/ImageSequence.cpp, src/osgDB/Registry.cpp,
src/osgPlugins/p3d/ReaderWriterP3D.cpp,
src/osgPlugins/trk/ReaderWriterTRK.cpp,
src/osgPresentation/PickEventHandler.cpp,
src/osgPresentation/SlideShowConstructor.cpp,
src/osgUtil/Optimizer.cpp: Added .get()'s to fix compilation when
ref_ptr<> type conversion is disabled
2013-02-04 16:25 robert
* ChangeLog: Updated ChangeLog
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org