frohlich
3d213fa713
Return a osg::Vec value instead of a non const reference.
...
Modified Files:
scene/model/SGMaterialAnimation.cxx
2009-09-05 17:01:58 +02:00
frohlich
e71f3790ce
Avoid the non const SGVec*::osg() method.
...
Modified Files:
SGTranslateTransform.cxx SGScaleTransform.cxx
SGRotateTransform.cxx
2009-09-05 17:01:58 +02:00
frohlich
67b9cba4d3
Use const refs for const data.
...
Modified Files:
simgear/scene/model/CheckSceneryVisitor.hxx
simgear/scene/model/CheckSceneryVisitor.cxx
2009-09-05 17:01:58 +02:00
torsten
78a471f684
Spare one node in the scenegraph if there is no <offsets>
2009-09-02 23:43:13 +02:00
timoore
d4289c5d54
Change trees code to use a faster OpenGL path
...
The (random) dimensions of a large number of trees is stored in an
array shared by all the tree geodes. The coordinates of the origin of
each tree are replicated in an another array. This allows an entire
block of trees to be rendered with a few OpenGL calls, instead of one
function call per tree.
2009-08-25 16:14:13 +02:00
torsten
0c17c5440a
support osgText in models
2009-08-25 09:11:27 +02:00
torsten
c4116da564
support osgText in models. See docs/README.osgtext for details
2009-08-25 09:11:27 +02:00
torsten
d0821953bb
Don't load materials without a name
2009-08-23 21:37:03 +02:00
torsten
e782adef94
Avoid NAN due to floating point rounding errors
2009-08-23 21:37:03 +02:00
ehofman
d3572c2562
prevent division by zero
2009-08-23 21:37:03 +02:00
torsten
1f3838b155
Alan Teeder: fix incomplete dbg_printf for non-gcc.
2009-08-23 21:37:03 +02:00
torsten
6aa459073e
don't build tabbed_value_test, swap_test, openal_test1 and openal_test2 by default.
2009-08-23 21:37:03 +02:00
torsten
0932c33185
warning fix: unused variables
2009-08-23 21:37:03 +02:00
torsten
5e542aa841
extinguish many warnings (at least for gcc)
2009-08-23 21:37:03 +02:00
torsten
6d53abd5af
warning fix: initializing members in the order they are declared keeps gcc happy
2009-08-23 21:37:03 +02:00
torsten
3ea58bf8db
warning fixes
2009-08-23 21:37:03 +02:00
torsten
71a4c2c3d2
extinguish many warnings (at least for gcc)
2009-08-23 21:37:03 +02:00
torsten
a3e391a523
warning fix: abort program and spit out a message if getNumPrims() is called with unknown mode. (Shouldn't happen anyway)
2009-08-23 21:37:02 +02:00
torsten
9cb15b302c
warning fix: unused variable
2009-08-23 21:37:02 +02:00
torsten
15c1a28d37
warning fix, unused code
2009-08-23 21:37:02 +02:00
torsten
d3a500e54e
don't use uninitialized variables
2009-08-23 21:37:02 +02:00
torsten
a0a5eb8aef
warning fixes
2009-08-23 21:37:02 +02:00
torsten
a92955eade
warning fixes
2009-08-23 21:37:02 +02:00
torsten
f043f3d4f9
warning fixes
2009-08-23 21:37:02 +02:00
torsten
992a057a1b
warning fix (multiline comment)
2009-08-23 21:37:02 +02:00
torsten
07da1e7e1a
warning fix
2009-08-23 21:37:02 +02:00
torsten
2c07222ef6
warning fixes
2009-08-23 21:37:02 +02:00
torsten
918e315d47
Warning fix: array subscript is above array bounds
2009-08-23 21:37:02 +02:00
ehofman
c824731bc6
Expose the color of the sun (which is not the scene specular color anymore)
2009-08-23 21:37:02 +02:00
ehofman
0c39caa622
Differentiate between sun color (based in visibility) and scene color (based on humidity)
2009-08-23 21:37:02 +02:00
torsten
1f1e28baf8
Stuart Buchanan: I've been working on a small patch to allow trees to be grouped together into woods. This allows what seems to me to be a more realistic grouping of trees for farmland in particular.
2009-08-09 23:56:10 +02:00
fredb
0c303389d6
Compile under MSVC9
2009-08-09 23:56:10 +02:00
timoore
01a896ef5b
New effects from Till Busch: crops, water, landmass
...
As shown at LinuxTag, with modifications from Tim Moore: the base
landmass texture is mixed with the steepness and snow effects. Till's
new syntax for textures in effect files was also added. syntax for
textures. Also, syntax for accessing internal textures, such as Till's
3D noise texture, was added.
Several bugs in the effect inheritance algorithm were fixed.
2009-08-09 23:56:10 +02:00
torsten
0e5e760135
Allow multiple <button> elements for <action> elements in pick animations. Nice to have to have a single action for mouse-button and mouse-wheel.
2009-08-08 00:49:40 +02:00
fredb
7e7d877874
Fix case typo
2009-07-27 23:47:15 +02:00
fredb
57ccb6fd6b
Suppress warnings
2009-07-27 23:47:15 +02:00
fredb
efa2876e29
Compile latest SimGear under MSVC9
2009-07-27 23:47:15 +02:00
Tim Moore
59ef7d8fd1
Create a singleton for the parser table
2009-07-19 23:05:04 +02:00
Tim Moore
1f308c9ec3
Move definition of SGRawBase<...>::printOn out of simgear namespace
...
They are declared in the global namespace, and MSVC insists that they be
defined there.
2009-07-19 22:39:16 +02:00
Tim Moore
4943d3aa53
Add missing return statements
2009-07-18 10:12:59 +02:00
Tim Moore
828d561113
Store material data with Effect
...
Somehow this got left out, which broke ground intersection queries.
2009-07-17 16:18:12 +02:00
Tim Moore
fcf72a7123
Change references to property types
...
BOOL, FLOAT etc. conflict with typedefs in windows.h, so these types
are referred to using the props:: namespace.
2009-07-17 14:52:58 +02:00
Tim Moore
d3f5bc6e2d
Changed SGRawValue::DefaultValue to an inline function.
...
This avoids MSVC bugs in declaring templated specializations of static members.
2009-07-17 11:40:36 +02:00
Tim Moore
f525a05be8
Use SGAtomic's compareAndExchange instead of a new SGSwappable class
...
Also, eliminate the __declspec(32) of that class which is causing problems
in osg::buffered_object.
2009-07-17 00:29:48 +02:00
Tim Moore
fc7ec4299e
include file change to make simgear work with OSG 2.9.X again
2009-07-16 23:09:10 +02:00
Tim Moore
21d053b1b6
Fix effects code to work with OSG 2.8.2-rc4
2009-07-16 18:33:27 +02:00
Tim Moore
68e64a5aa7
Use std::back_inserter instead of my local hack
...
BackRefInsertIterator is probably broken and may not be needed at all.
2009-07-16 13:02:07 +02:00
timoore
8e718fe288
Add new Effects files to vcproj
2009-07-16 12:09:45 +02:00
timoore
efec9070e1
Fixes for technique predicates
...
Get tests based on properties and OpenGL extensions working.
2009-07-16 12:09:44 +02:00
timoore
e3646d4d4a
more effects features
...
Materials can specify an effect.
Add support for PolygonMode and initial support for Uniform.
2009-07-16 12:09:44 +02:00