Michael PLATINGS
5ea4a8c0f3
From Alessandro Terenzi: previously the plugin ignored UV scaling values eventually stored in the FBX file, now they are read and set for each supported texture map (not considering reflection maps).
...
From Michael Platings: fixed UVs for files that don't explicitly reference the name of a UV channel.
2010-06-09 09:12:20 +00:00
Michael PLATINGS
82ea9597e5
Added support for Euler angles and step/linear/cubic-bezier interpolation.
2010-06-08 17:32:36 +00:00
Robert Osfield
b81b167131
Added ref_ptr<> to avoid memory leak
2010-06-08 11:53:28 +00:00
Robert Osfield
86a0aaf7f3
Added insertion of children found by the CountPagedLODsVisitor into the childrenRemoved list to make sure that they are caught
...
and then removed correctly from the PagedLODLists.
2010-06-07 17:08:53 +00:00
Michael PLATINGS
4e42d9e89a
Added more NURBS types to triangulate.
2010-06-07 15:25:18 +00:00
Robert Osfield
1d401f2333
Added size() and swap() methods to provide a thread safe way to keep track of size of a RequestQueue/ReadQueue.
2010-06-07 11:28:25 +00:00
Robert Osfield
bcebc9a23f
Added removeNodes method to prune any nodes that are going to be deleted from the PagedLODLists.
2010-06-07 09:05:58 +00:00
Michael PLATINGS
359b6b480d
From Alessandro Terenzi: modifications for supporting opacity, reflective and emissive maps beyond the already supported diffuse map in the FBX plugin.
...
A problem with transparency has also been fixed: objects were transparent wrt themselves but were opaque wrt to other objects.
Finally I added the support for "mixing factors" of diffuse, reflective and opacity textures/values.
From Michael Platings: added "LightmapTextures" plugin option that changes the way textures are interpreted so Alessandro's models appear correctly. Also refactored to put many functions in one class to avoid passing around too many arguments to functions.
2010-06-04 19:50:32 +00:00
Robert Osfield
768f466365
Fixed double registeration bug.
2010-06-03 16:24:25 +00:00
Robert Osfield
634e55eee3
Fixed permissions
2010-06-03 16:02:01 +00:00
Robert Osfield
bca82dffcd
Fixed permissions
2010-06-03 16:01:25 +00:00
Robert Osfield
c3bc3e5394
Removed redundent makefiles
2010-06-03 16:00:28 +00:00
Robert Osfield
980078f534
Fixed permissions
2010-06-03 15:09:06 +00:00
Robert Osfield
2ea6aa050e
Refactored the PagedLODList implementation so that it's now done via a base class that enables different implementations to be easily tried. Initial concrete PagedLODList is the SetBasedPagedLODList.
2010-06-03 14:14:40 +00:00
Robert Osfield
bac4cfe3d5
Added check for presence of extension.
2010-06-02 15:07:27 +00:00
Robert Osfield
2846f31c50
Removed glFramebufferTexture from list of required extension function
2010-06-02 13:29:42 +00:00
Robert Osfield
da0ddc35e6
Updated wrappers to handle the new ref_ptr<T>::ref_ptr(observer_ptr<T>&> constructor.
2010-06-02 12:14:10 +00:00
Robert Osfield
7f7f1f7d0e
Changed types from unsigned int to int's to address warnings, and changed the extension requirements so the GLES2 builds with FBO's where supported
2010-06-01 18:20:38 +00:00
Robert Osfield
32e8f6adc3
From Michael Platings, "MorphGeometry fix: this fixes a crash found by Alessandro Terenzi"
2010-06-01 15:20:30 +00:00
Robert Osfield
656a1b6da5
From Frederic Bouvier, "here is my proposal. It is supposed to be used like this :
...
osg::Camera* c = createCamera();
c->attach( osg::Camera::COLOR_BUFFER0, texture3d, 0,
osg::Camera::FACE_CONTROLLED_BY_GEOMETRY_SHADER );
it works also for cubemap textures and 2d texture arrays
"
2010-06-01 14:12:03 +00:00
Robert Osfield
4a047f2a82
From Michael Platings, introduced osg::State::applyModelViewMaitrx(const osg::Matrix& matrix) method and associated osg::State::_modelViewCache to enable osgText::Text3D to be refactored in away that avoids creating/destroying matrices
2010-06-01 13:33:58 +00:00
Robert Osfield
c05330089d
From Mathias Froehlich, "While tracking some valgrind problems in flightgear, I found a remaining off by
...
one error in the rgb loader.
Previously we limited the current line to the image with + 1. With that change
it is correctly limited to the width of the image.
Also flightgear seems to run nice with that change.
"
2010-06-01 11:51:37 +00:00
Robert Osfield
054d5606fb
From Tim Moore, "This is a patch that allows a ref_ptr to be constructed using an observer_ptr argument, which is locked. This is shorthand for declaring the ref_ptr and then passing it to observer_ptr::lock().
...
"
2010-06-01 11:28:04 +00:00
Robert Osfield
36f4faef95
Updated wrappers
2010-05-31 17:16:45 +00:00
Robert Osfield
975b95dd33
From Torben Dannhauer, "I added radial fog functionality be using the OpenGL extension 'GL_NV_fog_distance'."
2010-05-31 16:53:41 +00:00
Robert Osfield
df57965a34
From Xin Li, "use std::list::splice to replace std::list::insert and std::list::clear
...
it may use the constant time to move all the items in the '_eventQueue' to 'events', and reduce the mutex holding time"
2010-05-31 15:52:25 +00:00
Robert Osfield
6369210dc0
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:17:09 +00:00
Robert Osfield
f0e499adfe
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:16:49 +00:00
Robert Osfield
3593bad3f3
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:15:47 +00:00
Robert Osfield
02266d0af3
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:14:58 +00:00
Robert Osfield
5d5b6c0e8e
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:14:29 +00:00
Robert Osfield
afa735d83a
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:14:11 +00:00
Robert Osfield
005b2cdb86
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:13:41 +00:00
Robert Osfield
666f8edce0
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:13:20 +00:00
Robert Osfield
d413714dd0
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:12:55 +00:00
Robert Osfield
1f17cae284
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:12:14 +00:00
Robert Osfield
959dfbf874
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:11:35 +00:00
Robert Osfield
56ec2bbabf
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:11:14 +00:00
Robert Osfield
cb80a312e1
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:10:57 +00:00
Robert Osfield
08e6d2e3c1
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:10:27 +00:00
Robert Osfield
9a9b4d1d2c
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:10:06 +00:00
Robert Osfield
9cb35ad08a
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:09:36 +00:00
Robert Osfield
0ce9d11fba
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:09:15 +00:00
Robert Osfield
93a174bb26
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:08:30 +00:00
Robert Osfield
72c9b2543e
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:08:10 +00:00
Robert Osfield
f90ca548ee
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:07:44 +00:00
Robert Osfield
c3d3a36af4
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:07:24 +00:00
Robert Osfield
e16268ca76
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:07:01 +00:00
Robert Osfield
480399fc28
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:06:35 +00:00
Robert Osfield
f9dc2b9bdc
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:06:10 +00:00
Robert Osfield
e66ba6c64d
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:05:46 +00:00
Robert Osfield
1eab86a853
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:54:45 +00:00
Robert Osfield
8c65ac1f18
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:54:08 +00:00
Robert Osfield
c453d3ad93
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:53:46 +00:00
Robert Osfield
e934dc80d0
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:52:45 +00:00
Robert Osfield
8d1d543263
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:51:18 +00:00
Robert Osfield
d4a00377b7
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:50:45 +00:00
Robert Osfield
1853db4807
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:50:29 +00:00
Robert Osfield
e2dfecfffc
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:49:45 +00:00
Robert Osfield
b9361a503f
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:49:23 +00:00
Robert Osfield
528e5eed45
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:48:31 +00:00
Robert Osfield
5bf2b5cc90
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:48:05 +00:00
Robert Osfield
c56b29b7fe
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:47:42 +00:00
Robert Osfield
37470070f2
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:45:32 +00:00
Robert Osfield
f8a6978b1b
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:44:28 +00:00
Robert Osfield
006f639a52
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:44:08 +00:00
Robert Osfield
1f249ddc13
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:42:57 +00:00
Robert Osfield
18e4eb566a
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:42:24 +00:00
Robert Osfield
722bf6a18d
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:41:53 +00:00
Robert Osfield
abea896b20
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:41:37 +00:00
Robert Osfield
9b9bde0d2a
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:39:42 +00:00
Robert Osfield
ecaa239288
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:39:08 +00:00
Robert Osfield
bba4a1900d
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:38:19 +00:00
Robert Osfield
254556f7f1
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:38:00 +00:00
Robert Osfield
04d7abed11
Converted osg::notify to OSG_INFO etc.
2010-05-28 16:37:40 +00:00
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
Robert Osfield
64acd4df54
From Hatwig Wiesmann, "osg::TransferFunction1D::assignToImage may assign NaN values to the image in case an underflow inside the method occurs. This underflow can be reproduced by the following call sequence:
...
osg::TransferFunction1D* tf(new osg::TransferFunction1D());
tf->allocate(18);
tf->setColor(-10000,osg::Vec4( 1.0, 1.0, 1.0,1.0));
tf->setColor(-1e-6,osg::Vec4( 1.0, 1.0, 1.0,1.0));
tf->setColor( 0,osg::Vec4( 0.0, 0.0, 1.0,1.0));
Remark: The value -1e-6 may be added (falsely) because of a rounding error.
The attached fix prevents assigning NaN values to the image.
"
2010-04-23 09:29:50 +00:00
Robert Osfield
07328f3d17
From Mourad Boufarguine, "This submissions fixes the problem of the difference of std::*::size_type between 32bit and 64 bit platforms. It wraps the reading and writing of std::*::size_type values using the osgDB::InputStream::readSize and osgDB::OutputStream::writeSize methods."
2010-04-23 08:55:23 +00:00
Robert Osfield
5d0b84edd0
From Marcin Hajder, "This submission contains Texture2DMultisample osg implementation.
...
Texture2DMultismaple as name suggests provides means to directly access subsamples of rendered FBO target. (GLSL 1.5 texelFetch call).
Recently I was working on deferred renderer with OSG, during that I noticed there is no support for multisampled textures (GL_ARB_texture_multisample extension). After consultations with Paul Martz and Wojtek Lewandowski I added Texture2DMultisample class and made few necessary changes around osg::FrameBufferObject, osg::Texture and osgUtil::RenderStage classes."
and from follow email:
"Fixed. According to ARB_texture_multisample extension specification multisample textures don't need TexParameters since they can only be fetched with texelFetch."
2010-04-22 17:02:22 +00:00
Robert Osfield
3f7454fd8c
From Farshid Lashkari, "I've attached a small fix so that osgDB::convertStringFromUTF8toCurrentCodePage actually performs the conversion onto the destination string."
2010-04-22 16:08:26 +00:00
Robert Osfield
f67942cf03
From Alok Priyadashi, "The attached patch fixes
...
- compile errors on windows when compiled with UNICODE flag
- warnings for duplicate WIN32_LEAN_AND_MEAN. I think this should
better fixed by adding WIN32_LEAN_AND_MEAN to vcproj preprocessor
list."
2010-04-22 16:01:38 +00:00
Robert Osfield
25bc487763
From John Ivar Haugland, "I have added the serializer for UserData in osg::Object. See the attached modified file:
...
src\osgWrappers\serializers\osg\Object.cpp"
2010-04-22 13:07:49 +00:00
Robert Osfield
60b906b9fe
Added a temporary /* */ around the check against _traits->vsync to avoid the errors reported with the current usage of RestoreContext for setting the vsync.
2010-04-22 08:59:52 +00:00
Robert Osfield
be0e573f80
From Torben Dannhauer, fixed typo
2010-04-22 07:32:11 +00:00
Robert Osfield
9eebb2eb23
From Ulrich Hertlien with little bits from Robert Osfield and Chris Hanson, added provisionl support for controlling sync to vblank.
2010-04-21 17:16:13 +00:00
Robert Osfield
6e03d73efe
Changed "Sorted" label to "Sorted Drawables"
2010-04-21 16:44:38 +00:00
Robert Osfield
5e70c17f2a
From Serge Lages, "Currently if multiple event callbacks are nested on one node, only the first will be called. The proposed fix checks if there is a nested callback."
2010-04-20 13:52:28 +00:00
Robert Osfield
3bef6f9eae
Implemented Colin MacDonald's recommended change of "unsigned short" to "unsigned" to solve big endian problem under Solaris.
...
Also added comment to highlight the oddity of the mixing of types in the associated lib3ds code.
2010-04-20 13:34:57 +00:00
Robert Osfield
2c64536a09
Replaced tabs with four spaces
2010-04-20 11:38:38 +00:00
Robert Osfield
5a50387eb9
UPdated wrappers
2010-04-20 11:34:19 +00:00
Robert Osfield
31e8e37dbd
From Jason Beverage, "Here is a fix to the curl plugin CMake to allow it to link against the
...
CURL_LIBRARY_DEBUG and ZLIB_LIBRARY_DEBUG. Previously it linked the
debug version against the release libs, which was causing a hang when
running in debug mode on Windows."
2010-04-20 11:23:08 +00:00
Robert Osfield
6a73dfc193
From Farshid Lashkari, "Anaglyphic stereo does not seem to work properly when performing pre-render stages. I believe the reason is that the pre-render stages are performed with the last applied color mask, which is cyan. I've fixed this by resetting the color mask before performing the pre-render stages."
2010-04-20 11:13:27 +00:00
Robert Osfield
eef7da35d1
Fixed the background quad size to fit all the camera stats labels
2010-04-20 11:05:22 +00:00
Robert Osfield
7c38643a77
From Tim Moore, "I noticed that the "Materials" statistic in the camera scene stats display seemed to be identical to the number of drawables. In fact, it displays the nummat member of osgUtil::Statistics, but that variable has nothing to do with materials. nummat tracks the number of matrices associated with Drawable objects in a RenderBin; as I understand it, Drawables pretty much always have a model-view matrix tied to them in RenderBins, so this statistic doesn't seem very useful. So, I added statistics for the number of StateGraph objects in RenderBins and also for the number of Drawables in the "fine grain ordering" of RenderBins. The latter corresponds to the number of Drawables in the scene that are sorted by some criteria other than graphics state; usually that is distance for semi-transparent objects, though it could be traversal order. These two statistics give an idea of the number of graphic state changes happening in a visible scene: each StateGraph implies a state change, and there could be a change for each sorted object too. You can also subtract the number of sorted Drawables from the total number of Drawables and get an idea of how many Drawables are being drawn for each StateGraph.
...
"
2010-04-20 10:59:44 +00:00
Robert Osfield
92a6b0020d
Changed the AbmientBias type from Vec2d to Vec2 as use of double is inappropriate.
2010-04-20 10:35:33 +00:00
Robert Osfield
a8c4fd8761
From Wang Rui, "The new osgShadow and osgFX serializers are attached, and some
...
modifications of the osgShadow header naming styles as well. The
osgDB::Serializer header is also changed to add new Vec2 serializer
macros because of the needs of osgShadow classes. It should compile
fine on both Windows and Linux. But I have only done a few tests to
generate .osgb, .osgt and .osgx formats with these new wrappers."
2010-04-20 10:29:04 +00:00
Robert Osfield
a0781cba6c
From Mourad Boufarguine, "This submission fixes osgDAE::toString(*) unresolved external symbols compile errors (on VS)."
2010-04-20 09:48:45 +00:00
Robert Osfield
b1658ee6df
From Farshid Lashkari, "I noticed that osg::State::getInitialViewMatrix returns the monocular view matrix when rendering in stereo. I've made some changes to osgUtil::RenderStage & SceneView so that it will return the correct view matrix depending on which eye is currently being rendered." & "I made a small change to the previous patch so that osg::State::getInitialViewMatrix works correctly with pre/post render stages as well."
2010-04-19 14:49:42 +00:00
Robert Osfield
c091b5c2d1
From Stephan Huber and Mathieu Marache, "attached you'll find framework support for os x via cmake. Please credit
...
Mathieu Marache, he added the last missing piece to this puzzle.
I think it is safe to commit these changes to trunk, as the traditional
way via dylibs should work as before.
Here's some more info how to get frameworks:
With these modifications it is possible to compile frameworks on OS X,
when you set the Cmake-option OSG_COMPILE_FRAMEWORKS to true. If you
want to embed the frameworks in your app-bundle make sure to set
OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR accordingly.
You'll have to build the install-target of the generated xcode-projects
as this sets the install_name_dirs of the frameworks and plugins."
2010-04-19 13:44:42 +00:00
Robert Osfield
a8332528f4
From Martins Innus,"Here's a fix to allow the serializer to compile on the Mac 10.4 SDK. The definition of GLint seems to be different accross the SDKs. Its defined as "long" in 10.4. I have no idea if this is the correct way to go about this, but it compiles on my end."
2010-04-19 12:09:21 +00:00
Robert Osfield
c0e9fcbb67
From Tim Moore, "This contains a couple of fixes to support changing FrameBufferObject configurations on the fly; the user changes the camera attachments and calls Renderer::setCameraRequiresSetUp(). The major part of this submission is a comprehensive example of setting up floating point depth buffers. The user can change the near plane value and cycle through the available combinations of depth format and multisample buffer formats."
2010-04-19 11:43:06 +00:00
Robert Osfield
488eac94f7
From Wang Rui, "Attached is the osgAnimation wrappers for serialize IO operations. A
...
few headers and the osgAnimation sources are also modified to make
everything goes well, including:
A new REGISTER_OBJECT_WRAPPER2 macro to wrap classes like
Skeleton::UpdateSkeleton.
A bug fix in the Seralizer header which avoids setting default values
to objects.
Naming style fixes in osgAnimation headers and sources, also in the
deprecated dotosg wrappers.
A bug fix for the XML support, to write char values correctly.
A small change in the osg::Geometry wrapper to ignore the
InternalGeometry property, which is used by the MorphGeometry and
should not be set by user applications.
The avatar.osg, nathan.osg and robot.osg data files all work fine with
serializers, with some 'unsupported wrapper' warnings when converting.
I'm thinking of removing these warnings by disabling related property
serializers (ComputeBoundingBoxCallback and Drawable::UpdateCallback),
which are seldom recorded by users.
By the way, I still wonder how would we handle the C4121 problem,
discussed some days before. The /Zp compile option is set to 16 in the
attached cmake script file. And is there a better solution now?"
2010-04-19 10:35:18 +00:00
Robert Osfield
6ec106b31a
From Paul Martz, fixes for static build
2010-04-19 09:39:39 +00:00
Robert Osfield
70d78c0713
From Colin McDonald, "The new 3ds plugin isn't working at all on big-endian machines, due to
...
a byte order issue.
The problem is that osg::SwapBytes code has been copied from the old
plugin to the new one, but the latest lib3ds also incorporates code to
handle byte ordering in read & writing. So the net result is that the
swap is done twice.
The solution is simply to remove the custom osg code, and use the
stock lib3ds code. The attached files are against today's revision
11331. I've tested on Sparc & Intel.
"
2010-04-15 18:40:40 +00:00
Robert Osfield
51d377c9f6
Ran dos2unix on header files
2010-04-15 18:38:32 +00:00
Robert Osfield
6b73cef997
Ran dos2unix on lib3ds files
2010-04-15 18:38:03 +00:00
Robert Osfield
7ee549bb06
From J.P. Delport, Fix for invalid iterator dereference in DatabasePager.
2010-04-15 12:51:41 +00:00
Robert Osfield
3700263e08
From Sukender, "After discussion with Paul Martz, here is a fix for 3DS reader/writer (on rev. 11315) + some changes. Changelog:
...
- Fixed handling of MatrixTransforms (still doesn't support other Transforms types). Fixes things for OSG, DeepExploration, 3DSMax...
- Added support for writing double precision vertices by converting them.
- Added base code for future compatibility option (3rd-party apps that don't read animation data). See "DISABLE_3DS_ANIMATION" compile flag."
2010-04-15 11:49:33 +00:00
Robert Osfield
31ec835002
From Jason Beverage, "Here is a small fix to the DatabasePager to fix a crash if you were
...
running with the OSG_NOTIFY_LEVEL set to INFO.
An iterator was being erased, and then referenced to display a
message. Just changed it to display the message first, then erase."
2010-04-15 11:45:10 +00:00
Robert Osfield
7db9f18619
From Chris Hanson, build fixes for Solaris-64
2010-04-15 11:41:37 +00:00
Robert Osfield
72e6867679
Changed std::pair declaration to ListTriangle::value_type to avoid Solaris compile errors
2010-04-15 11:40:49 +00:00
Robert Osfield
9045d03a0b
Removed the setting of the DatabasePager thread affinity, and moved the setting of the DatabasePager thread priotity to after the creation of the threads
2010-04-15 11:02:22 +00:00
Michael PLATINGS
d5fafcecbd
Updated the plugin to be compatible with version 2011.2 of the FBX SDK
2010-04-14 16:43:50 +00:00
Robert Osfield
b6a5754127
Added minimum frame delay of 1/100th second when using
...
on demand rendering to avoid creating a CPU lock.
2010-04-14 13:39:43 +00:00
Robert Osfield
9df9778658
Updated wrappers
2010-04-14 10:43:16 +00:00
Michael PLATINGS
8e53cfe6fc
Added support for double precision geometry
2010-04-13 14:50:31 +00:00
Robert Osfield
88f1b8f19a
From Michael Platings with tweaks from Robert Osfield, added Options::s/getPrecisionHint(..) to allow apps to hint to plugins about how to handle double precision geometry data.
2010-04-13 13:06:27 +00:00
Robert Osfield
ccd34b375b
updated wrappers
2010-04-13 09:42:36 +00:00
Michael PLATINGS
25cd2970c5
osgAnimation now stores times as doubles
2010-04-12 16:35:15 +00:00
Michael PLATINGS
5d64318597
From Sukender: Fixed FBX writer: now handles double precision arrays (vertices, normals, texcoords)
2010-04-12 15:04:25 +00:00
Robert Osfield
fccda08491
Added corner dirty options to TerrainTechnique, added experimental code paths in GeometryTechnique for accounting for neighbouring corner tiles - optionally compiled out in this check-in.
...
Changed the normal computation in GeometryTechnique so that it doesn't include diagonals, thus avoid normal jumps at corners.
2010-04-09 08:52:40 +00:00
Robert Osfield
d992f6e018
Updated wrappers
2010-04-03 16:26:32 +00:00
Robert Osfield
c6c26d5d44
Change Terrain so that it subclassed from CoordinateSystemNode.
...
Implemented new update scheme of GeometryTechnique to avoid potential threading issues.
Added Terrain support to .ive.
2010-04-03 16:21:34 +00:00
Robert Osfield
656efbf03f
Removed getNeighbours() method to avoid problems with introspection wrappers
2010-04-01 21:18:39 +00:00
Robert Osfield
47cdee3611
Removed TerrainNeightbours class from wrapping to avoid associated build errors
2010-04-01 21:15:17 +00:00
Robert Osfield
a8bbf0a809
Added support for boundary equalization to GeometryTechnique
2010-04-01 21:06:56 +00:00
Robert Osfield
8547536387
From Jean-Sebastien Guay, "When the StatsHandler tries to find a context to add itself to, it will first look for a GraphicsWindow, and if none is found it will look for a GraphicsContext. This enables apps that do all their rendering to offscreen contexts (pbuffer) to still use the StatsHandler."
2010-03-26 11:09:10 +00:00
Robert Osfield
7fd81fdd06
Updated wrappers
2010-03-26 11:07:43 +00:00
Cedric Pinson
d218032448
Fix compile issue t = fmod(t, (float)_duration);
2010-03-25 20:20:10 +00:00
Cedric Pinson
35fa541350
Change time type from float to double in osgAnimation
2010-03-25 17:50:29 +00:00
Robert Osfield
fe5527f332
From Mathias Froehlich, "I added some features to the vrml plugin.
...
The plugin can now handle embeded PixelTexture fields in addition to the
already implemented ImageTexture fields.
Fixed a bug with texture repeat being applied to the wrong texture dimension.
Added handling for IndexedLineSet geometries."
2010-03-25 14:19:01 +00:00
Robert Osfield
ecf7a7e3e4
From Stephan Huber, "attached you'll find a small enhancement for GraphicsWindowCocoa. My
...
submision adds a getter for the pixel-format. I need this for some
custom software so I can integrate CoreVideo-playback with osg.
"
2010-03-25 14:14:46 +00:00
Robert Osfield
304214e0df
Introduced the use of linear interpolation of evelvations when sampling
2010-03-25 11:11:35 +00:00
Robert Osfield
9d35ec1631
Added a compile test for pthread_setaffinity_np to workaround problem with the FreeBSD pthread lib containing the function but the pthread.h header not containing it.
2010-03-24 17:12:05 +00:00
Robert Osfield
1319e270f6
Refactored the way that the RequestQueue's are pruned and highest prioty items taken from them so the operation is
...
now O(n) rather than O(nlogn) where n is the number of requests. The refactoring also cleans up the access of the
request lists so that the code is more readable/maintainable.
2010-03-24 14:27:00 +00:00
Robert Osfield
627a4b78c9
Updated wrappers
2010-03-23 12:41:02 +00:00
Robert Osfield
99b6b268bc
From Michael Platings, "the attached files fix the DAE importer for animations that don't contain channels for all X, Y and Z components, as exported by SoftImage."
2010-03-22 17:55:14 +00:00
Robert Osfield
d969034f44
Changed private: to protected: to fix build issue under OSX
2010-03-22 14:32:19 +00:00
Robert Osfield
8a39ece376
From Chuck Seberino, "have a fix for the reading code in trunk/src/osgPlugins/gz/ReaderWriterGZ.cpp. It seems that the std::istream::readsome method on windows is a no-op (for files. After much head scratching and research I was able to figure out what was going on. I am submitting a fix to replace readsome with read() and gcount(). This change is for all platforms. The previous implementation works fine under linux and OSX, so if you would rather keep things the way they are you can just #ifdef for non-WIN32.
...
I also added openmode flags to the ifstream constructor, since they were needed to get proper reading as well as a typo fix."
2010-03-22 13:13:22 +00:00
Robert Osfield
8b66d5348e
From Farshid Lashkari, "I noticed that osg::notify does not output to stderr when using either FATAL or WARN severity levels. There is code in osg::StandardNotifyHandler::notify that will use stderr based on the severity level, but it is disabled by an #if 0. I'm assuming this was a mistake and have re-enabled the code.
...
Many IDEs will capture the output of processes and highlight stderr messages in red. After upgrading from OSG 1.2, I was noticing that none of the error messages were being highlighted, which I find quite useful."
2010-03-22 12:50:27 +00:00
Robert Osfield
994e7ece43
From Ulrich Hertlein, changed init() call to _init().
2010-03-20 09:45:59 +00:00
Michael PLATINGS
03d5b81a6f
Workaround for files exported from SoftImage that don't tag skeleton nodes correctly.
2010-03-19 20:12:19 +00:00
Michael PLATINGS
f053c6c567
From Paul Martz: This is a fix to get the FBX plugin to compile on OS X
2010-03-19 18:28:20 +00:00
Robert Osfield
5612a4640f
Added a minimum tiles size of 16 to prevent down sampling from being overly aggressive.
2010-03-19 17:09:30 +00:00
Michael PLATINGS
328c19dad9
Fixed an infinite loop when loading a malformed file.
2010-03-19 10:19:41 +00:00
Michael PLATINGS
660cb74877
Workaround for models with inverted transparency
2010-03-18 19:02:12 +00:00
Robert Osfield
1590f6be3b
Added in a test of using the utility classes in include/osgUtil/MeshOptimizers to see if they could improve peformance.
...
Tests shown poorer performance with the code enabled so for now the code is #if 0 #endif'd out, and just left in place for future testing.
2010-03-18 15:04:27 +00:00
Robert Osfield
0c1503275b
Removed the sizeAdjustment code as it was leading to incorrect tex coord generation and clipping of the left handside
...
of the text glyphs.
2010-03-18 14:41:33 +00:00
Robert Osfield
28105bacc1
From Glenn Waldron, "The PLY plugin only works for a file that includes both vertices and faces. This patch adds support for PLY files that include only vertices (a point cloud)."
2010-03-17 14:32:32 +00:00
Robert Osfield
0661901016
disabled timing debug info
2010-03-17 11:35:52 +00:00
Robert Osfield
afd2c05f6d
Updated wrappers
2010-03-16 18:53:42 +00:00
Robert Osfield
d5aea9c0f2
Updated various serialization support for .osg, .osgt/b/x and .ive.
2010-03-16 18:44:27 +00:00
Robert Osfield
c4e82f0221
Added BlendingPolicy support into osgTerrain::Terrain.
2010-03-16 18:43:59 +00:00
Robert Osfield
1537af6235
Added osgTerrain::TerrainTile::set/getBlendingPolicy(BlendingPolicy) to enable control over whether the tile should have blending enabled on it.
2010-03-16 12:05:41 +00:00
Robert Osfield
ec56528d58
From Jean-Sebastien Guay, "This small one-line change allows us to load a geometry shader with the extension .geom with osgDB::readShaderFile() which will return an osg::Shader* with the type already set to GEOMETRY. Very convenient. :-)
...
This was already possible for .frag and .vert so there's no reason why it shouldn't be possible for .geom.
I also changed the alignment of some extension aliases so the file looks a bit better now, but it's up to you if you want to merge that or not.
"
2010-03-15 15:10:50 +00:00
Robert Osfield
1b6adccdc4
From Wang Rui,
...
"Here is a small fix in the eventTraversal() function of both viewer
and composite viewer class.
if (getCameraWithFocus())
{
if (getCameraWithFocus()!=getCamera()) // Newly added
{
osg::Viewport* viewport = getCameraWithFocus()->getViewport();
osg::Matrix localCameraVPW =
getCameraWithFocus()->getViewMatrix() *
getCameraWithFocus()->getProjectionMatrix();
if (viewport) localCameraVPW *= viewport->computeWindowMatrix();
osg::Matrix matrix( osg::Matrix::inverse(localCameraVPW) *
masterCameraVPW );
osg::Vec3d new_coord = osg::Vec3d(x,y,0.0) * matrix;
x = new_coord.x();
y = new_coord.y();
}
...
}
I put an additional conditional statement here to ensure that
_cameraWithCamera and _camera are different, otherwise it's no need to
calculate the transition matrix from main camera to focus camera. The
excess calculations of 'matrix' and 'new_coord' may cause
floating-point error and return a slightly wrong result other than an
identity matrix. It seems OK in most cases but will be still pain when
there is little difference between two mouse moving events. "
2010-03-15 14:47:22 +00:00
Robert Osfield
b40c1b355c
Updated wrappers
2010-03-15 10:32:29 +00:00
Robert Osfield
9015ff7084
Refactored Texture::Extensions to simplify it and make it more efficient.
2010-03-15 10:32:03 +00:00
Robert Osfield
bc9b28a0c9
Added return into ReaderWriterOSG2::prepareReading(..) to prevent bug associated with result being discarded.
2010-03-14 08:56:21 +00:00
Robert Osfield
f27c103ec7
Refactored the initialization of OSX windowing settings so that it's done on demand rather than on startup.
2010-03-13 11:28:00 +00:00
Robert Osfield
b8b536257c
Added initializer
2010-03-12 09:32:23 +00:00
Robert Osfield
04c2bbf594
Changed ssize_t to int to fix windows build error
2010-03-12 09:10:12 +00:00
Robert Osfield
7a44b43474
From Time Moore, "This submission implements 3 optimizations for meshes. INDEX_MESH turns DrawArrays style geometry into DrawElements, uniquifying the vertices in the process. This is useful for certain loaders, like ac3d, which just spit out DrawArrays. VERTEX_POSTTRANSFORM and VERTEX_PRETRANSFORM optimize mesh triangle and vertex order for the caches on a modern GPU, using Tom Forsyth's algorithm. I describe this and the big difference it makes (38% improvement on a very large mesh) in my blog,
...
http://shiny-dynamics.blogspot.com/2010/03/vertex-cache-optimization-for-osg.html ."
2010-03-11 18:15:20 +00:00
Robert Osfield
4dcf21d707
From Sukender, "I had some conflicts when updating but they seem resolved now. Attached files (four files) are against rev. 11200. Changelog:
...
- Replaced exceptions with assert() or OSG_NOTIFY
- Replaced osg::notify() with OSG_NOTIFY
- Changed braces and tabs to fit OSG coding convention
- Cleaned a few things in code (names, added deallocations upon error)"
2010-03-11 16:53:35 +00:00
Robert Osfield
6c07be375c
Clean up of initialization of statics/use of getenv
2010-03-11 16:46:01 +00:00
Robert Osfield
dce80220e8
Cleaned up the registration of wrappers so that they are done on demand.
2010-03-11 10:24:20 +00:00
Robert Osfield
23c7fd2f61
From David Fries,"We are needing to compile Debug, Release, and MinSizeWithDebInfo, but
...
currently only Debug appends "d" so the Release and MinSizeWithDebInfo
(and MinSizeRel) all produce the same filenames. This set of changes
lets each build type have a cmake defined string appended, defaulting
to Release none, Debug d, RelWithDebInfo rd, MinSizeRel s. But a user
still can have Release, RelWithDebInfo, and MinSizeRel to produce the
same filenames. It does so by setting the preprocessor define
OSG_LIBRARY_POSTFIX in src/osgDB/CMakeLists.txt to one of the
previously defined cmake variables CMAKE_DEBUG_POSTFIX
CMAKE_RELEASE_POSTFIX CMAKE_RELWITHDEBINFO_POSTFIX
CMAKE_MINSIZEREL_POSTFIX. This method cuts down on the #ifdef _DEBUG
#else preprocessor directives in Registry.cpp as the extension is
always passed in OSG_LIBRARY_POSTFIX. That and __MINGW32__ didn't
have the _DEBUG check which looks like a bug."
2010-03-10 17:19:35 +00:00
Robert Osfield
08612666fa
From Roger James, "Here is a small stability fix to the dae reader which seems to have dropped out of the latest version."
2010-03-10 16:31:30 +00:00
Robert Osfield
e70c304533
From Sukender, "I've fixed positions for 3DS writer. Points in 3DS must be in world coordinates and I added what was missing.
...
And by refactoring a bit of code, I may have fixed some StateSets related bugs (was ignoring StateSets for osg::Groups).
I also added support for Billboard's points, so now "osgconv lz.osg lz.3ds" has an acceptable output. However, there is no rotation depending on billboards' axis, hence the notice "Warning: 3DS writer is incomplete for Billboards (rotation not implemented).". You may want to remove this notice (or lower the notify severity) if you feel 3DS doesn't have to handle such rotations.
The attached archive contains 3 files from 3DS plugin, against rev. 11162.
Please note there is still the textures issue for cow.osg. I guess it's because it's not a "flat, dummy and standard" texture in slot 0... That is to say the only thing the writer can handle at the moment. I guess I won't address this soon.
"
and
"I've detected and fixed another bug in 3DS writer: support for automatic splitting of meshes having >65k faces/points was buggy (was deleting faces).
Here is my four 3DS modified files (in a ZIP), against rev. 11193, including previous fixes AND Stephan's fix about relative filenames."
2010-03-10 16:05:52 +00:00
Robert Osfield
3a9ac70f94
Updated wrappers
2010-03-10 14:44:12 +00:00
Robert Osfield
950d282f55
From Vincent Bourdier, addition of out of memory read result.
2010-03-10 14:28:18 +00:00
Robert Osfield
e082b01f26
From Wang Rui, "I've initially added the XML support of the new native osg format,
...
using osgDB::XmlParser. The extension for XML-formatted scenes is
.osgx, corresponding to .osgb for binary and .osgt for ascii. It could
either be rendered in osgviewer or edited by common web browsers and
xml editors because of a range of changes to fit the XML syntax. For
example, the recorded class names are slight modified, from
'osg::Geode' to 'osg--Geode'.
To quickly get an XML file:
# ./osgconv cow.osg cow.osgx
The StreamOperator header, InputStreram and OutputStream classes are
modified to be more portable for triple ascii/binary/XML formats. I
also fixed a bug in readImage()/writeImage() to share image objects if
needed.
The ReaderWriterOSG2 class now supports all three formats and
reading/writing scene objects (not nodes or images), thanks to
Torben's advice before.
"
2010-03-10 13:48:41 +00:00
Robert Osfield
ce19b37981
From John Ivar Haugland, "This is a fix to InputStream.cpp. (revision 11114) . I have attached the modified file.
...
The options where not passed on to the image reader plugins when reading the new osg2 format files, so I added the options to the osgDB.:readImageFile function call.
"
2010-03-10 13:37:19 +00:00
Robert Osfield
6da42d9cd6
From Wang Rui, QWidgetImage class that enables QWidgets to be used as an interactive osg::Image that can be assigned to textures.
2010-03-10 13:24:53 +00:00
Robert Osfield
a5c33886da
From Laurens Voerman, "as I work in Visual Studio, the introduction of the new osg2 reader/writer gave me a confusing project list, especially the three projects named "Plugins osg". The attached patch changes the project names to "Plugins osg depricated xxx" and "Plugins osg serializer xxx" therefore keeping them close together in the Solution Explorer.
...
"
2010-03-10 12:56:33 +00:00
Robert Osfield
f8665ebfdb
Refactored the find_last_of to simplify it.
2010-03-10 12:04:14 +00:00
Robert Osfield
6ae2f4c6c6
From Sukender, "Here is my proposal. I fixed what Paul said, added some doxygen comments, added the function I told about, and removed the two "find('/')"-like calls to use only one."
2010-03-10 11:40:17 +00:00
Robert Osfield
1d036c0e8c
From Laurens Voerman, "my compiler (VC Express 9) gives some warnings (see below) about not being able to generate an assignment operator. As those assignment operators are not used and problably should never be used, I solved this by creating an private (empty) assingment operator.
...
"
From Robert Osfield, added "return *this;" to Laurens's addition to prevent them generating a warning under gcc...
2010-03-10 10:32:58 +00:00
Robert Osfield
6dc1ec6c4e
From Stephan Huber, "attached you'll find a small bugfix for the 3ds-reader. It allows
...
reading files with relative paths again. (Hard to explain, easy to see
in the diff)"
2010-03-10 10:10:57 +00:00
Robert Osfield
bafe1d0b94
Added automatic updating of the OpenThreads version number from the CMake version numbers
2010-03-10 09:37:04 +00:00
Robert Osfield
4bc287cedb
Added extra ffmpeg version check
2010-03-08 10:20:14 +00:00
Robert Osfield
c765a35650
From Wojcoech Lewandowski, "Attched are aimShadowCastingCamera() call changes, I have described in former post. Basically now MinimalShadowMap overrides first variant and keeps second. So both variants of aimShadowCastingCamera are clearly defined in MinimalShadowMap::ViewData scope. This way compilers have no problem and code looks less obscure. Changes made against the trunk."
2010-03-05 16:17:12 +00:00
Robert Osfield
8743e5d925
From Mathias Froehlich, "Not so long time ago, there was a complaint about the ac3d plugin not honoring
...
absolute filenames for the texture images.
The attached change should fix this by at first looking at the absolute file
name to load a texture and then, if that fails, strip away any paths to try
that again with the bare file name.
The change also fixes a possible exception that could be triggered by an out
of bounds std::string access which is now avoided by using functions from
osgDB/FileUtils.
The change is based on rev 11161."
2010-03-05 16:08:34 +00:00
Robert Osfield
7db099a9d1
Fixed warning
2010-03-05 16:07:12 +00:00
Robert Osfield
84c0ecadd8
Fixed usage of osg::swapBytes to properly pass in pointer to data that needs swapping.
2010-03-05 16:04:30 +00:00
Robert Osfield
10a2f389d7
From Mathias Froehlich, "If you want to have that qfont plugin loader, this is the updated
...
implementation which uses osgQt and includes the changes to make fonts load
without a file on disk."
2010-03-05 15:46:17 +00:00
Robert Osfield
737378c967
Replaced find_first_of with find
2010-03-05 15:36:32 +00:00
Robert Osfield
e401fa7461
Replaced find_first_of with find.
2010-03-05 15:17:26 +00:00
Robert Osfield
e77fafcd98
From Sukender, "Here is a tiny fix for getNameLessExtension(). It does now check for the presence of slashes ('/' and '\') to avoid changing the string when having a dot in a directory.
...
Old behaviour: "abc.d/filename_no_ext" -> "abc"
New behaviour: "abc.d/filename_no_ext" -> "abc.d/filename_no_ext"
Attached file is against rev. 11158."
2010-03-05 15:10:34 +00:00
Robert Osfield
073a60b2a1
Fixes for warning from qt headers
2010-03-05 15:08:03 +00:00
Robert Osfield
f497cd3c24
Fixed warnings
2010-03-05 15:04:36 +00:00
Robert Osfield
86f491e649
Replaced use of unsigned int/enum mask combinations with int/enum mask combinations to avoid the need for casting enums to unsigned ints,
...
and to avoid associated warnings.
Update wrappers to reflect these changes.
2010-03-05 12:55:08 +00:00
Robert Osfield
3cd0c50df3
From Mourad Boufarguine, "Some others modified CMake scripts :
...
- OsgMacroUtils.cmake, SETUP_LINK_LIBRARIES macro : allow linking with debug/release external libraries
- osgQt/CMakeLists.txt : fix the linking to Qt librairies + linking to debug Qt librairies if found
- examples/ qt examples : linking to debug Qt librairies if found"
2010-03-05 12:43:03 +00:00
Robert Osfield
5383297cbe
Change Shader::getPCS(..) from protected to public scope to enable isCompiled() method to be accessible in applications.
...
Updated wrappers
2010-03-05 11:30:50 +00:00
Robert Osfield
c40a4ff9cb
Changed Options::setDatabasePath(..) usage to getDatabasePathList().push_front() to paths set by Options to be picked up.
2010-03-05 11:19:34 +00:00
Robert Osfield
e01832763d
Fixed warning
2010-03-05 10:58:47 +00:00
Robert Osfield
d52910ff67
Fixed warning
2010-03-05 10:50:50 +00:00
Robert Osfield
7e56f2d258
Fixed warning
2010-03-05 10:48:34 +00:00
Michael PLATINGS
0f58cc2628
Added BlendFunc for transparent materials
2010-03-04 17:01:33 +00:00
Michael PLATINGS
65489693d9
Fix for some FBX files with multiple meshes bound to a bone.
2010-03-04 16:27:19 +00:00
Robert Osfield
ace8dad2c3
Fixed warnings
2010-03-04 13:03:18 +00:00