Robert Osfield
50465da06a
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:37:10 +00:00
Robert Osfield
58eef23ab5
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:32:51 +00:00
Robert Osfield
6c8b561226
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:32:06 +00:00
Robert Osfield
00b856501f
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:31:38 +00:00
Robert Osfield
35f0824f1e
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:31:17 +00:00
Robert Osfield
438c8e7dc4
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:30:58 +00:00
Robert Osfield
50c577f602
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:30:36 +00:00
Robert Osfield
0c212fefec
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:29:53 +00:00
Robert Osfield
fab6a14cb5
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:28:58 +00:00
Robert Osfield
71c434371a
Converted osg::notify to use info
2010-05-28 16:28:18 +00:00
Robert Osfield
805a78c3b5
Converted osg::notify to OSG_INFO
2010-05-28 16:27:37 +00:00
Robert Osfield
a7da775353
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:27:02 +00:00
Robert Osfield
0fefe9a789
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:26:24 +00:00
Robert Osfield
3db10859cd
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:25:41 +00:00
Robert Osfield
37dd1298f2
Converted osg::notify to OSG_INFO
2010-05-28 16:24:04 +00:00
Robert Osfield
eff8dc5d63
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:22:02 +00:00
Robert Osfield
daf0a93466
Conversion of osg::notify to OSG_INFO etc.
2010-05-28 16:10:24 +00:00
Robert Osfield
bcbfed5c8b
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:09:29 +00:00
Robert Osfield
d187445670
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:08:15 +00:00
Robert Osfield
3a4a0457cd
Converted osg::notify to OSG_INFO
2010-05-28 16:07:34 +00:00
Robert Osfield
fc21fea5b4
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:07:09 +00:00
Robert Osfield
44483832d5
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:06:15 +00:00
Robert Osfield
40dcc0cd7d
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:05:47 +00:00
Robert Osfield
d23525889e
Convertex osg::notify to OSG_INFO etc.
2010-05-28 16:04:56 +00:00
Robert Osfield
030f4c06a9
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:04:19 +00:00
Robert Osfield
1119f29f67
Conversion of osg::notify to OSG_INFO etc.
2010-05-28 16:03:38 +00:00
Robert Osfield
83bef8afd4
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:03:14 +00:00
Robert Osfield
adc302072f
converted osg::notify to OSG_INFO etc.
2010-05-28 16:00:45 +00:00
Robert Osfield
ddf5668809
conversion of osg::notify to OSG_INFO etc.
2010-05-28 15:56:43 +00:00
Robert Osfield
a812f39f40
Conversion of osg::notify to OSG_INFO.
2010-05-28 15:53:32 +00:00
Robert Osfield
bbed35c659
Conversion of osg::notify to OSG_INFO etc.
2010-05-28 15:52:45 +00:00
Robert Osfield
3b3e0d7cdd
Conversion of osg::notify to OSG_INFO etc.
2010-05-28 15:51:00 +00:00
Robert Osfield
a79a8d30f9
Convesion of osg::notify to OSG_INFO etc.
2010-05-28 15:47:52 +00:00
Robert Osfield
e753be1b20
Changed debug info to use DEBUG_INFO
2010-05-28 09:12:07 +00:00
Robert Osfield
d26a8474e7
Changed the ref_ptr<T> observer_ptr<>::lock() method to be
...
bool observer_ptr<>::lock(ref_ptr<T>&) to avoid the temporary ref_ptr<>'s
being created and destroyed on the stack along with the associated ref/unref() operations
2010-05-28 08:57:48 +00:00
Robert Osfield
2d9e469afa
Refactored the expiry and PagedLOD counting so that it's now done in single CountPagedLODsVisitor::removeExpiredChildrenAndCountPagedLODs method
2010-05-27 18:46:58 +00:00
Robert Osfield
d746f11650
Renamed osgGA::MatrixManipualtor to osgGA::CameraManipulator so its name better reflects it's function
2010-05-27 15:54:37 +00:00
Robert Osfield
2cf3224dd3
From Jan Pecvia, improvements to manipulators and added new manipulator to osgviewer
2010-05-27 13:59:34 +00:00
Robert Osfield
72663ec3df
Moved across to using more flexible dirtyMark when dirtying tiles
2010-05-27 13:58:46 +00:00
Robert Osfield
2c77b3d637
Re-enabled boundary equalization support.
2010-05-26 16:10:16 +00:00
Robert Osfield
72d699e2b3
Fixed warnings
2010-05-26 08:34:15 +00:00
Robert Osfield
ee78e70d78
Fixed 3 space indenting
2010-05-25 17:02:22 +00:00
Robert Osfield
f5661e0461
Updated wrappers
2010-05-25 16:27:21 +00:00
Robert Osfield
d0f48a2712
From Jan Perciva with changes from Robert Osfield, "I am submitting improved osgGA camera manipulators.
...
Changes:
- new mouse wheel zoom/movement/center functionality
- ability to fix vertical axis (important for CAD)
- possibility to specify values as absolute values or relative to model size
- kind of backward compatibility by flags passed to constructor
- and much more
- restructuring classes to use kind of hierarchy and standard way of event processing (handle methods). This way, there is much more code reusability and it is more easy to develop new kinds of manipulators.
Briefly, the new architecture keeps MatrixManipulator as base abstract class. StandardManipulator is the feature-rich standard manipulator with two main descendant classes: OrbitManipulator and FirstPersonManipulator. OrbitManipulator is base class for all trackball style manipulators, based on center, rotation and distance from center. FirstPersonManipulator is base for walk or fly style manipulators, using position and rotation for camera manipulation.
"
Changes by Robert: Replaced osg::Vec3 by osg::Vec3d, introduced DEFAULT_SETTINGS enum and usage. Added frame time member variables in prep for improving throw animation when vysync is off.
2010-05-25 12:05:13 +00:00
Robert Osfield
fce49ae02a
Quitened down debug output
2010-05-24 14:16:31 +00:00
Robert Osfield
9fd01f78a5
Updated wrappers
2010-05-24 09:44:38 +00:00
Robert Osfield
e826bfeb3c
Refactored osgQt so that QWebViewImage is now entirely implementated in the header, and osgQt itself no longer compiles it,
...
leaving it to only applications that require it to include the header and it's implementation and with ith the QWebKit dependency.
2010-05-22 15:45:02 +00:00
Robert Osfield
0165862701
From Wojciech Lewandowski, "Reading and Writing of Texture2DArrays for IVE format."
2010-05-21 09:56:59 +00:00
Robert Osfield
a79a13955a
From Wojciech Lewandowski, "Support for compressed texture arrays + mipmaps + auto mipmap generation. Changes vs OSG trunk. Thanks to Ricardo Corsi I was able to add last time tweaks and remove few issues. This version was so well tested that it has to be posted for inclusion into OSG ;-)
...
"
2010-05-21 09:34:25 +00:00
Robert Osfield
338edd0a71
From Hartwig Wiesmann, fixed setup of texture coordinates for applying a contour layer.
2010-05-21 09:23:41 +00:00
Robert Osfield
332cea9c5a
Fixed warning
2010-05-21 09:00:19 +00:00
Robert Osfield
02dc850aac
From Terry Welsh, added missing static_cast in Referenced.cpp
2010-05-20 17:00:10 +00:00
Robert Osfield
5b84e5b254
Updated wrappers
2010-05-20 15:25:40 +00:00
Robert Osfield
9cf330d7ff
Introduced a alternative implementation of observer_ptr<> that uses ObserverSet rather than an local WeakReference object.
2010-05-20 13:38:28 +00:00
Robert Osfield
858d52364e
From Alok Priyadarshi, build fix for gcc.
2010-05-19 16:43:37 +00:00
Robert Osfield
2996dc8244
Introduction an ADD_FUNCTION macro to simply the set up of the static function mappings
2010-05-19 13:40:46 +00:00
Robert Osfield
0fb865bc4f
Fixed typo
2010-05-18 17:58:35 +00:00
Robert Osfield
07e43822e6
Added better invalidation of the inactive and active PageLOD lists when children are invalidated when parents are removed.
2010-05-18 15:33:59 +00:00
Robert Osfield
4a0c21a5fc
From Wang Rui, serializers for osgSim and osgVolume
2010-05-18 11:00:06 +00:00
Robert Osfield
f5587bad3d
Fixed typos in method names
2010-05-18 10:12:30 +00:00
Robert Osfield
61121daaab
Updated wrappers
2010-05-17 18:37:32 +00:00
Robert Osfield
ccd9f31309
Removed signalUnreffed interface
2010-05-17 14:21:53 +00:00
Robert Osfield
f832198128
From Tim Moore, refactore WeakReference/Referenced to avoid signalling the observers when do a unref_nodelete.
2010-05-17 09:03:44 +00:00
Robert Osfield
4d88ba6efe
Re-ordered the inclusion of platform specific headers to fix compile error under Windows
2010-05-17 08:29:35 +00:00
Robert Osfield
a0eb7de060
From Alok Priyadarshi, support for statically linking to GLES2.lib
2010-05-14 19:47:50 +00:00
Robert Osfield
554adfc8e6
Refactored Observer/ObserverNodePath and DatabasePager to improve their robustness.
2010-05-14 12:24:13 +00:00
Robert Osfield
2b2ea4487a
From Tim Moore, new more robust observer_ptr<> implementation
2010-05-14 12:14:14 +00:00
Robert Osfield
4e8f0561ad
From Farshid Lashkari, "I modified some plugins to use the osgDB file stream functions in order to support UTF-8 encoded filenames."
2010-05-13 11:01:06 +00:00
Robert Osfield
29ea65c12b
From Gunter Huber, fixes for better GLES2 support
2010-05-13 10:01:07 +00:00
Robert Osfield
42527fe859
From Wang Rui, "I'd like to submit my inbuilt schema data support of
...
the OutputStream/InputStream implementations, which was just finished
last weekend with a few tests on Windows and Ubuntu. Hope it could
work and get more feedbacks soon.
I've added a new option "SchemaData" to the osg2 plugin. Developers
may test the new feature with the command line:
# osgconv cow.osg cow.osgb -O SchemaData
It will record all serializer properties used in the scene graph, at
the beginning of the generated file. And when osgviewer and user
applications is going to read the osgb file, the inbuilt data will be
automatically read and applied first, to keep backwards compatibility
partly. This will not affect osgb files generated with older versions.
"
2010-05-12 20:02:31 +00:00
Robert Osfield
a04d83efa7
From Mathias Froehlich, fixed memory leak when using OpenThread::Mutex based reference counting.
2010-05-12 15:11:15 +00:00
Robert Osfield
046b6a4bfd
Removed inappropriate code which was causing a memory leak. This code was clearly a copy and paste error. The mistake was spotted by Robin Bourianes, with code changes made by Robert Osfield.
2010-05-12 14:34:18 +00:00
Robert Osfield
cfd4c514cb
Improved the indentation/replaced tabs
2010-05-12 11:58:01 +00:00
Robert Osfield
688323fbed
From Sukender, "Here is a tiny fix about texture wrap mode not being written correctly in 3DS files."
2010-05-12 11:44:30 +00:00
Robert Osfield
b1179978f5
From Stephan Huber, "attached you'll find a fix for a crash when closeImplementation gets
...
called more than once."
2010-05-12 11:41:36 +00:00
Robert Osfield
68a1ed2dcf
Fixes for building OSG with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF.
...
Fixed copy and paste error in Camera::getImplicitBufferAttachmentResolveMask().
2010-05-12 11:37:27 +00:00
Michael PLATINGS
e91557fe1d
From Martins Innus: The current fbx writer doesn't seem to support BIND_PER_VERTEX for normals. If you have this type of geometry it, exports the the first normal in the array over the whole primitive set. I don't know that the attached change should be applied as is, since I don't know enough about DrawArrays and Draw Elements to know if the indices for the vertices and normals are guaranteed to be the same. I tried it on a couple models and that seemed to be the case. The alternative is to have the logic down in setControlPointAndNormalsAndUV and set the normals there with the "vertexIndex" if the binding type is per vertex. Not sure what is cleaner.
2010-05-12 08:54:22 +00:00
Michael PLATINGS
047b70c265
From Martins Innus: allow the fbx exporter to reference textures correctly if the stateset is applied to the Geode instead of Geometry
2010-05-11 17:02:18 +00:00
Michael PLATINGS
c51e94725b
Fix from Martins Innus for error: extra qualification 'FbxMaterialToOsgStateSet::' on member 'FbxMaterialToOsgStateSet'
2010-05-11 09:08:55 +00:00
Robert Osfield
c0c4585ac3
updated wrappers
2010-04-30 20:04:25 +00:00
Robert Osfield
400aa8ebcd
Added proper support for writing out Xml graph
2010-04-30 19:41:56 +00:00
Robert Osfield
c2a59415ce
Changed DisplaySetting::instance() to return a ref_ptr<>& rathern than a raw C pointer to enable apps to delete the singleton or assign their own.
2010-04-30 11:48:30 +00:00
Robert Osfield
afce262601
Added free of _visualInfo if it's already been allocated
2010-04-30 10:52:24 +00:00
Robert Osfield
087559f7a0
Changed debug messages to use printf to avoid issues with using notify at startup and exit.
2010-04-30 10:51:27 +00:00
Robert Osfield
38276b0d92
Added support for using dot graphs directly in the <graph></graph> token
2010-04-30 10:50:17 +00:00
Robert Osfield
12a0b9ab6d
From Bernardt Duvenhage: "I noticed that in 'src/OpenThreads/pthreads/CMakeLists.txt' a '!' has been written instead of 'NOT' within an if statement expression.
...
IF(!OSG_COMPILE_FRAMEWORKS) ...
vs.
IF(NOT OSG_COMPILE_FRAMEWORKS) ...
This has the effect of always compiling OpenThreads as a framework under OSX. The CMakeLists.txt that I use to be able to compile the non-framework version of OpenThreads is attached. I simply replaced the '!' replaced by a 'NOT' and added a MESSAGE to notify me when the .framework will be compiled."
2010-04-29 15:23:43 +00:00
Robert Osfield
a4718ef88b
Updated wrappers
2010-04-28 22:08:48 +00:00
Robert Osfield
a6c7fee246
From Alok Priyadarshi, "1. Replaced APIENTRY to GL_APIENTRY which is used by OpenGL ES
...
headers. For desktop GL GL_APIENTRY has been defined as APIENTRY."
2010-04-28 21:22:44 +00:00
Robert Osfield
c019e2f76d
Fixed typo
2010-04-28 21:10:29 +00:00
Robert Osfield
5435f6cf50
From Wang Rui, "Two small bugs were just found when I was writing examples for my book
...
in process: a wrong definition of the OSG_FATAL macro, and wrong logic
inside the KeySwitchMatrixManipulator::getDistance() function. I
believe both were slips."
2010-04-28 20:33:40 +00:00
Robert Osfield
363f32536b
From Farshid Lashkari, "There's a subtle bug in osgDB::getFileExtension where it returns an incorrect value if the filename does not contain an extension but a sub-directory contains a dot character. I've modified the function so that it checks for this case."
2010-04-28 20:21:28 +00:00
Robert Osfield
0adf26ec6e
From Wang Rui, "The osgManipulator serializers are ready now. I need to modify the
...
META_OSGMANIPULATOR_Object macro to ensure these classes could work
with their wrappers, and a few naming styles should be changed as
well. Fortunately everything seems to compile fine under Windows and
my new Ubuntu system.
And I finally find the problem of the
serializers/osgTerrain/Terrain.cpp, it just missed an "osg::Group"
before "osg::CoordinateSystemNode" indicator. With the small fix
attached now VPB could generate terrain with osgt/osgb formats."
2010-04-28 20:16:44 +00:00
Robert Osfield
22dfe6f8d1
From John Ivar Haugland and Michael Platings,
...
JIV:"I deleted a line from the ReaderWriterDAE.cpp file that was introduced in rev 11341. I got a crash on this line when the options pointer was NULL."
MP:"Good spot John. The next line is also unnecessary and can be removed as well (attached, plus some minor code beautifying)"
2010-04-28 20:10:53 +00:00
Robert Osfield
8b8ca09ab1
Added support for passing options to the .dot plugin
2010-04-28 18:53:34 +00:00
Robert Osfield
b459fb4a25
Added support for passing in an options string to control the orientation of the generated graph
2010-04-28 18:52:58 +00:00
Robert Osfield
dbbe73304a
Added support for using graphviz dot for graphics visualization via <graph>filename</graph> token.
2010-04-28 14:56:38 +00:00
Robert Osfield
4143f2f839
Fixed typo
2010-04-28 14:55:42 +00:00
Robert Osfield
b86431fdf7
Added colours and different style to drawable and statesets
2010-04-28 14:55:07 +00:00
Michael PLATINGS
324ddd0ca3
No longer removes redundant nodes because node structure may be important.
2010-04-28 14:05:47 +00:00
Robert Osfield
dfda4ce35f
Replaced afprintf usage with std::string to fix memory leak and improve portability of code.
2010-04-28 10:15:16 +00:00