Frederic Bouvier
6a90696820
No round function for MSVC
2012-04-25 08:54:57 +02:00
Stuart Buchanan
f9bf403fc0
Random buildings - initial commit.
2012-04-24 22:00:35 +01:00
Frederic Bouvier
84d7488061
Revert commit 7864516... Increase point sprite size for runway lights
2012-03-07 20:16:14 +01:00
Frederic Bouvier
20414e6ef4
Smaller point light for vasi
2012-03-04 20:21:44 +01:00
Frederic Bouvier
78645169bf
Increase point sprite size for runway lights
2012-03-04 20:21:42 +01:00
Frederic Bouvier
1dfde64ac2
Use bigger point sprites for airport lighting
2012-03-04 20:21:39 +01:00
Mathias Froehlich
9414874e1d
scenery: inline SGGenTile into its single caller.
2012-03-03 12:03:09 +01:00
Mathias Froehlich
9e46820c57
scenery: Route loader options through the btg loader.
2012-03-03 12:03:09 +01:00
Stuart Buchanan
e4e3760b3d
Fix masked rotation so that it's clockwise from above.
2012-02-28 21:05:54 +00:00
Stuart Buchanan
4fae9039c1
Correct spacing between buildings.
2012-02-26 22:38:04 +00:00
Stuart Buchanan
cf2619613d
Stop objects from overlapping the edge of the triangle in which they are placed. This should stop buildings encroaching roads etc.
2012-02-23 20:10:02 +00:00
Stuart Buchanan
6bc9eb950f
Retire tree-density and wood-size, as they have been superseded by object masking.
2012-02-07 21:12:41 +00:00
Stuart Buchanan
593c884f14
Random object and vegetation masking based on bitmap file.
...
Also adds a property controlling vegetation density.
2012-02-05 23:05:57 +00:00
Mathias Froehlich
f61fe80f60
Consolidate the different ReaderWriterOptions classes.
2011-11-13 18:35:18 +01:00
James Turner
2fb13c76f5
Address warnings found via Clang - especially related to destructor visibility with ref_ptrs of various kinds.
2011-10-24 18:09:42 +01:00
Stuart Buchanan
38ac7b41ad
Updates to random forest:
...
- Bug fix - use multiple textures per tile
- Graduate LoD so tree cover fades in/out.
2011-07-29 15:22:24 +01:00
James Turner
aa859c488f
Remove deprecated vector classes - finally!
2010-07-30 00:46:30 +01:00
Tim Moore
df0a60caae
Merge branch 'ehofman/model' into next
2010-05-05 08:44:32 +02:00
fredb
675c86582d
Stuart Buchanan: Fix a bug in the random object placement where the model selected in the case of multiple object definitions in material.xml was random, rather than seeded.
2010-05-05 08:44:18 +02:00
fredb
d5757c4fb8
Lauri Peltonen : add the ability to generate tangent vectors for model, terrain or ocean geometry inside the effect file
2010-03-16 14:27:21 +01:00
frohlich
795d481ca6
Switch to new vector conversion functions.
...
Modified Files:
simgear/math/SGGeod.cxx simgear/math/SGQuat.hxx
simgear/math/SGVec2.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx simgear/scene/material/Effect.cxx
simgear/scene/model/SGInteractionAnimation.cxx
simgear/scene/model/SGMaterialAnimation.cxx
simgear/scene/model/SGRotateTransform.cxx
simgear/scene/model/SGScaleTransform.cxx
simgear/scene/model/SGTranslateTransform.cxx
simgear/scene/model/animation.cxx
simgear/scene/model/particles.cxx
simgear/scene/model/placement.cxx
simgear/scene/model/shadanim.cxx
simgear/scene/sky/CloudShaderGeometry.cxx
simgear/scene/sky/cloud.cxx simgear/scene/sky/cloudfield.cxx
simgear/scene/sky/dome.cxx simgear/scene/sky/sky.cxx
simgear/scene/tgdb/GroundLightManager.cxx
simgear/scene/tgdb/SGOceanTile.cxx
simgear/scene/tgdb/SGTexturedTriangleBin.hxx
simgear/scene/tgdb/SGVasiDrawable.cxx
simgear/scene/tgdb/TreeBin.cxx simgear/scene/tgdb/obj.cxx
simgear/scene/tgdb/pt_lights.cxx
simgear/scene/util/SGUpdateVisitor.hxx
2009-09-09 08:39:55 +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
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
timoore
40fe078021
Use Effect to implement point lights
...
This allows different OpenGL features (point sprites, point attenuation) to
be used depending on hardware support.
2009-07-16 12:09:44 +02:00
timoore
c6b2124129
Use Effects in materials library, and therefore in scenery
2009-07-16 12:09:44 +02:00
frohlich
bfa5fff500
Cleanup.
...
Additional null pointer checks.
Simplify redundant interface arguments.
Modified Files:
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/tgdb/ReaderWriterSTG.cxx
simgear/scene/tgdb/SGReaderWriterBTG.cxx
simgear/scene/tgdb/SGReaderWriterBTGOptions.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx simgear/scene/tgdb/obj.cxx
2009-06-03 00:08:04 +02:00
frohlich
679db5a22b
The chunked stuff is no longer needed for the ground tiles.
...
... I (Mathias Froehlich), believe that it is more performant (for the GPU) to
build the biggest indexed sets possible at the expense of tight culling.
I (Mathias Froehlich) also know that the CPU is more performant on smaller chunks
building the old flat groundcache on such tiles. :)
So this code *was* to balance these two contrary requirements to some degree.
Now we have optimized datastructures for drawing and differently optimized
datastructures for intersection tests.
Modified Files:
simgear/scene/tgdb/obj.cxx
2009-03-18 07:53:50 +01:00
frohlich
81eae3fa48
Rotate the scenery tiles so that the horizont is axis aligned.
...
This might help culling and much more the upcomming collision tree.
Modified Files:
simgear/scene/tgdb/obj.cxx
2009-02-27 23:34:15 +01:00
timoore
c8c693db53
From Benoit Laniel: replace SG threading constructs with those from OpenThreads
...
Also, move any static local mutexes up to global level.
2008-06-12 08:14:40 +00:00
mfranz
74116057a7
Till BUSCH: enable HOT intersection tests on random buildings
2008-05-01 12:21:52 +00:00
timoore
09fb51189e
Change the tile light group node mask to traverse VASI lights too.
...
The change to set the light group node mask to LIGHTS_BITS caused
VASI/PAPI lights to not be displayed during the day. This patch fixes
that and optimizes VASI creation a bit.
2008-03-24 21:41:30 +00:00
timoore
c12e6cdc09
rationalize node masks a bit
2008-03-17 08:46:23 +00:00
timoore
09778a8eab
Minor cleanup of Stuart Buchanan's tree patch.
...
Separate random objects and random trees for real.
2008-02-07 23:01:16 +00:00
timoore
8cbe9f1bd0
Second trees patch from Stuart Buchanan
...
Adds random variation of tree texture maps
2008-02-07 23:00:23 +00:00
timoore
be61689458
Cleanup and performance tuning of the random trees code.
...
The QuadTreeBuilder class was completely revamped as a templated class
to support flexible creation of scene graph quad trees, and a major
bug was fixed as well. Now it actually generates quadtrees instead of
some weird striped thing.
One StateSet is shared among all the "forests." The trees are drawn
after normal terrain objects to minimize some of the transparency
related artifacts.
Lighting was implemented in the ShaderGeometry shader (for both
polygon sides). Ambient-diffuse values for trees are hard-coded in
TreeBin.cxx.
DotOsg wrappers were added for ShaderGeometry so it can be output in
the scene graph dump.
2008-02-02 23:01:27 +00:00
timoore
4b63bc051e
Random trees from Stuart Buchanan
...
Stuart's new file SGTreeBin.hxx has been split into 4 files:
TreeBin.[ch]xx and ShaderGeometry.[ch]xx.
2008-02-02 23:01:05 +00:00
timoore
0c9013e60e
fix memory leaks in random object code
...
Don't allocate mt structures (for the random number generator) on the heap.
2008-01-17 08:28:15 +00:00
timoore
605125c0e7
Random object support from Stuart Buchanan
...
In addition to Stuart's changes, there's an independent quad tree
builder class for constructing loose quad trees from scene graph nodes.
Stuart also implemented changes to the random number generator suggested by
Andy Ross.
2008-01-06 15:04:43 +00:00
timoore
68c1cfed46
Use node masks and shared state sets to manage ground lights
...
Do away with the switch in each terrain tile for the ground lights. They are
turned on by node masks now.
Share state sets among all the light nodes and manage the fog values through a
"GroundLightManager" instead of having separate state sets and callback
functions for each group in each tile.
2007-12-13 23:30:24 +00:00
timoore
cafcecf03d
StateSet optimizations
...
Use only one shared StateSet to control GL_NORMALIZE. This removes
thousands of state sets from the scene graph.
Fix a typo that was causing two copies of groundLights0 to be added to
each tile.
2007-11-18 23:31:03 +00:00
timoore
49473845cf
Some scene graph optimizations
...
When loading terrain, use DrawElementsUShort where possible.
Don't chunk unconnected triangles in the terrain into seperate
Geometry sets; make the sets as big as possible.
2007-11-18 23:30:34 +00:00
frohlich
560c100484
Modified Files:
...
simgear/bucket/newbucket.cxx simgear/bucket/newbucket.hxx
simgear/io/decode_binobj.cxx simgear/io/sg_binobj.cxx
simgear/io/sg_binobj.hxx simgear/math/SGVec2.hxx
simgear/math/SGVec3.hxx simgear/math/SGVec4.hxx
simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/model/Makefile.am simgear/scene/tgdb/Makefile.am
simgear/scene/tgdb/obj.cxx simgear/scene/tgdb/obj.hxx
simgear/scene/tgdb/pt_lights.cxx
simgear/scene/tgdb/pt_lights.hxx
simgear/scene/util/Makefile.am
simgear/scene/util/SGNodeMasks.hxx
simgear/scene/util/SGTextureStateAttributeVisitor.cxx
Added Files:
simgear/scene/model/SGOffsetTransform.cxx
simgear/scene/model/SGOffsetTransform.hxx
simgear/scene/tgdb/SGDirectionalLightBin.hxx
simgear/scene/tgdb/SGLightBin.hxx
simgear/scene/tgdb/SGOceanTile.cxx
simgear/scene/tgdb/SGOceanTile.hxx
simgear/scene/tgdb/SGTexturedTriangleBin.hxx
simgear/scene/tgdb/SGTriangleBin.hxx
simgear/scene/tgdb/SGVasiDrawable.cxx
simgear/scene/tgdb/SGVasiDrawable.hxx
simgear/scene/tgdb/SGVertexArrayBin.hxx
simgear/scene/util/SGEnlargeBoundingBox.cxx
simgear/scene/util/SGEnlargeBoundingBox.hxx
simgear/scene/util/SGSceneFeatures.cxx
simgear/scene/util/SGSceneFeatures.hxx
Removed Files:
simgear/scene/tgdb/leaf.hxx simgear/scene/tgdb/vasi.hxx:
Reorganize tile loaders.
Build bigger leafs for the tiles.
Move runway light colors into materials.xml.
Split out classes that might be useful at other places.
Avoid static storage on binobject loading.
2007-05-28 05:00:28 +00:00
frohlich
834eab9457
Modified Files:
...
simgear/bucket/newbucket.hxx simgear/scene/material/mat.cxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/model/location.cxx
simgear/scene/tgdb/apt_signs.cxx simgear/scene/tgdb/leaf.cxx
simgear/scene/tgdb/leaf.hxx simgear/scene/tgdb/obj.cxx
simgear/scene/tgdb/obj.hxx
simgear/scene/util/SGUpdateVisitor.hxx: Reorganize scenegraph to
simplify top level structure.
2007-05-08 06:11:15 +00:00
frohlich
7fe56bea86
Modified Files:
...
obj.cxx: Some kind of polygon offset for GL_POINTS.
2006-12-27 10:33:37 +00:00
frohlich
d3bacd0b73
Modified Files:
...
simgear/scene/material/mat.cxx
simgear/scene/material/matlib.cxx simgear/scene/sky/cloud.cxx
simgear/scene/sky/dome.cxx simgear/scene/sky/moon.cxx
simgear/scene/sky/oursun.cxx simgear/scene/sky/sphere.cxx
simgear/scene/sky/stars.cxx simgear/scene/tgdb/apt_signs.cxx
simgear/scene/tgdb/leaf.cxx simgear/scene/tgdb/leaf.hxx
simgear/scene/tgdb/obj.cxx simgear/scene/tgdb/pt_lights.cxx
simgear/scene/util/SGDebugDrawCallback.hxx
simgear/screen/Makefile.am: Use color arrays for every geode.
Just use osg::Material instead of osg::Material and the associated
mode.
2006-11-10 05:30:37 +00:00
frohlich
84dd54b33a
Modified Files:
...
configure.ac simgear/environment/visual_enviro.cxx
simgear/ephemeris/ephemeris.cxx
simgear/ephemeris/ephemeris.hxx simgear/ephemeris/stardata.cxx
simgear/ephemeris/stardata.hxx simgear/math/SGMatrix.hxx
simgear/math/SGQuat.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx simgear/scene/Makefile.am
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/material/matmodel.cxx
simgear/scene/material/matmodel.hxx
simgear/scene/model/Makefile.am
simgear/scene/model/animation.cxx
simgear/scene/model/animation.hxx
simgear/scene/model/custtrans.hxx
simgear/scene/model/model.cxx simgear/scene/model/model.hxx
simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx
simgear/scene/model/personality.cxx
simgear/scene/model/personality.hxx
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
simgear/scene/model/placementtrans.cxx
simgear/scene/model/placementtrans.hxx
simgear/scene/model/shadanim.cxx
simgear/scene/model/shadowvolume.hxx
simgear/scene/sky/cloud.cxx simgear/scene/sky/cloud.hxx
simgear/scene/sky/cloudfield.cxx simgear/scene/sky/dome.cxx
simgear/scene/sky/dome.hxx simgear/scene/sky/moon.cxx
simgear/scene/sky/moon.hxx simgear/scene/sky/newcloud.cxx
simgear/scene/sky/oursun.cxx simgear/scene/sky/oursun.hxx
simgear/scene/sky/sky.cxx simgear/scene/sky/sky.hxx
simgear/scene/sky/sphere.cxx simgear/scene/sky/sphere.hxx
simgear/scene/sky/stars.cxx simgear/scene/sky/stars.hxx
simgear/scene/tgdb/apt_signs.cxx
simgear/scene/tgdb/apt_signs.hxx simgear/scene/tgdb/leaf.cxx
simgear/scene/tgdb/leaf.hxx simgear/scene/tgdb/obj.cxx
simgear/scene/tgdb/obj.hxx simgear/scene/tgdb/pt_lights.cxx
simgear/scene/tgdb/pt_lights.hxx
simgear/scene/tgdb/userdata.cxx
simgear/scene/tgdb/userdata.hxx simgear/scene/tgdb/vasi.hxx
simgear/screen/jpgfactory.cxx simgear/screen/tr.cxx
simgear/structure/Makefile.am simgear/threads/SGThread.hxx
Added Files:
simgear/scene/util/Makefile.am
simgear/scene/util/SGDebugDrawCallback.hxx
simgear/scene/util/SGNodeMasks.hxx
simgear/scene/util/SGStateAttributeVisitor.hxx
simgear/scene/util/SGTextureStateAttributeVisitor.hxx
simgear/scene/util/SGUpdateVisitor.hxx
Removed Files:
simgear/screen/ssgEntityArray.cxx
simgear/screen/ssgEntityArray.hxx
simgear/structure/ssgSharedPtr.hxx
Big BLOB on the way to OSG.
2006-10-29 19:27:08 +00:00
frohlich
72d2075828
Modified Files:
...
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx simgear/scene/tgdb/leaf.cxx
simgear/scene/tgdb/obj.cxx
Attach userdata to groundtile scenegraph leafs that contains
a SGMaterial reference to the material of that leaf.
Add (physical) material properties to the material definitions.
Plug a memory leak with GlyphSigns.
2006-06-11 13:30:59 +00:00
mfranz
dcb95d131b
- new FSF addresses
...
- coplied license headers from h(xx) files to respective c(xx) files
- removed trailing spaces
- fixe $Id$
- fixed typos
2006-03-08 18:16:08 +00:00
curt
f30c4720ae
Update a few more instances of my email address.
2004-11-19 21:47:05 +00:00
ehofman
7d18f9bdde
Remove a phantom makeDList call (probably an old one from my code.
2004-10-10 19:16:25 +00:00