Commit Graph

5727 Commits

Author SHA1 Message Date
Robert Osfield
675e4a2cde From Roger James, "fixes mostly related to texture handling." 2006-11-22 21:11:46 +00:00
Robert Osfield
a3b1d8cd54 From Paul Martz, add OSG_FILE_PATH to end of setting of OSG_FILE_PATH to preserve any previous settings 2006-11-22 21:09:48 +00:00
Robert Osfield
3016deaba9 From Paul de Repentigny, "When calling osgdem with argument "--image-ext", the application just
returns after loading the proper ReaderWriter for the given extension."  Fix was to remove the erroenous return.
2006-11-22 20:52:16 +00:00
Robert Osfield
9c66cb4127 From Sylvan Marie, "I attached my revised dxfEntity.cpp file from the DXF plugin with the 2
following improvements:

- When all unsupported entities (SOLIDS, TEXT, ...) have been filtered out
from a block, dxfInsert::drawScene() was crashing because it assumed that
the block was not empty. It now returns silently so the other blocks can
still be imported.

- The DXF reader assumed all vertices were read first, then the face
indices. But, from the DXF "documentation" (www.autodesk.com/dxf) :
"Polyface meshes created with the PFACE command are always generated with
all the vertex coordinate entities first, followed by the face definition
entities. The code within AutoCAD that processes polyface meshes requires
this ordering. Programs that generate polyface meshes in DXF should generate
all the vertices then all the faces. However, programs that read polyface
meshes from DXF should be tolerant of odd vertex and face ordering."
So now the importer ignores the posted number of vertices and face indices,
and uses the size of the lists instead."
2006-11-22 20:47:53 +00:00
Robert Osfield
1f3a851cfc From Farshid Lashkari, Added missing initialization of the _scaleByTextureRectangleSize
variable in two of its constructors.
2006-11-22 20:39:44 +00:00
Robert Osfield
0a696dbdc7 Added removeNullTriangles() method to help removed triangles with coincedent corners. 2006-11-22 15:38:59 +00:00
Robert Osfield
a22bede80f Added new HeightAboveTerrain.cpp LineOfSight.cpp wrapper files 2006-11-22 09:10:14 +00:00
Robert Osfield
8483624646 Added compute and visualization of triangle and vertex normals 2006-11-21 16:59:34 +00:00
Robert Osfield
d0df2df7ad Replaced the setTextureUnit(0) call in State::reset() with code that just
sets the member variables without requiring a graphics context.
2006-11-21 16:59:04 +00:00
Robert Osfield
91a9a87dd4 Added removeDuplicates function 2006-11-21 16:16:56 +00:00
Robert Osfield
b400a2738b Reordered methods to make associated functions clearer. 2006-11-21 16:15:42 +00:00
Robert Osfield
e16f33e9c5 Renamed osgviewer-Info.plist to osgviewerApplication-Info.plist to prevent
svn naming collision problems under Windows due t osgviewer/osgViewer case insentive file name collisions.
2006-11-21 14:42:36 +00:00
Robert Osfield
95568b24fa Added nested files 2006-11-20 21:48:40 +00:00
Robert Osfield
b6e261d4d3 Added -losgFX 2006-11-20 12:25:38 +00:00
Robert Osfield
b5231932ac Added missing LGPL section to LICENSE.txt 2006-11-20 10:12:57 +00:00
Robert Osfield
b67de41991 Rearranged the #ifdef's to prevent compile problems under NVidia 2.1 OGL drivers 2006-11-17 20:45:29 +00:00
Robert Osfield
ffc3d4e351 From Eric Wing, updates to Xcode projects 2006-11-17 16:25:29 +00:00
Robert Osfield
b30fb02b92 From Eric Wing, new ogsimpleviewCocoa example. 2006-11-17 16:22:58 +00:00
Robert Osfield
6b6bc4de10 Added missing PointSprite files 2006-11-17 14:51:48 +00:00
Robert Osfield
e45245b7d6 From Farshid Lashkari, "Attached is a patch that adds the new coordOriginMode to the .osg
reader/writer for PointSprites."
2006-11-16 17:35:12 +00:00
Robert Osfield
052d44a440 From Frashid Lashkari, added support for PointSprites to .ive 2006-11-16 16:42:11 +00:00
Robert Osfield
2151573ccd From Michael Platings, Fixed Geometry cloning of the texture
coordinates and vertex attributes.
2006-11-16 16:25:29 +00:00
Robert Osfield
a73e9250ee Added alpha test setting 2006-11-15 20:29:28 +00:00
Robert Osfield
c24289315a Fixed comment 2006-11-15 20:24:09 +00:00
Robert Osfield
2aec799d98 Updated wrappers 2006-11-15 20:23:15 +00:00
Robert Osfield
43c6a1c275 From Eric Wing, add version check for use of automatic resizeing 2006-11-15 11:21:53 +00:00
Robert Osfield
ee35f18acb From Mathias Froehlich, replaced assert with notify() error message. 2006-11-15 10:08:09 +00:00
Robert Osfield
43af60e19e Added note about license or file, and link to specs. 2006-11-14 19:29:49 +00:00
Robert Osfield
5d91960cb7 Removed redundent osgac3.h file. 2006-11-14 19:19:54 +00:00
Robert Osfield
2b28b472b4 From Mathias Fröhlich, fixed order of setting of texture image. 2006-11-14 19:19:15 +00:00
Robert Osfield
2fbda800b7 Updated wrappers 2006-11-14 17:24:37 +00:00
Robert Osfield
30ad811cac From Eric Wing, add use of the autodetection of windowing size support in SDL-version 1.2.10 and later.
From Robert Osfield, made the above an optional compile as it breaks apps based on previous version of SDL.
2006-11-14 16:59:00 +00:00
Robert Osfield
0c6a05392b From Mathias Froehlich, "Improovments:
- does proper edge detection with the crease angle given in the ac file
- the reader is much more verbose in case of broken files
- no more static variables
- std::stream based
- much faster, up to a factor of 50 for a polygonal test model
- if the file contains polygonal surfaces the loaded geometry is still
polygonal as long as the polygons are convex. Concave polygons are still
tesselated. Rationale: If the user needs triangular models he can throw away
that extra information with the osgUtil::Optimizer himself. But the read step
preserves as much extra information that is contained in the file as
possible. Also the polygonal models look a bit smoother than the triangular
ones.
- a huge cleanup
- the basic parsing logic from the original ac3d developer is untouched
- the writer part is untouched

The tarball contains a replacement for the src/osgPlugins/ac3d directory that
is based on the current CVS (2006-11-13).
I have tested that loader with a osgconv foo.ac /tmp/xx.ive on everyfoo. ac
file I could find (~200 from flightgear and the object database). I also run
my flightgear development with that loader -> here I see the models.
I run valgrind testcases on some selected models."
2006-11-14 16:37:07 +00:00
Robert Osfield
a8378d0bfa Added osgViewer depdendency to osgintersection, osgGLUT* examples 2006-11-14 15:06:17 +00:00
Robert Osfield
bae46a0fbd From Jason Beverage, "I ran though the sample data that Gert provided earlier today and tracked down the problem. The xoffset in readHeightField and readImage were being applied even in projected coordinate systems. This patch should fix the issue." 2006-11-14 12:55:00 +00:00
Robert Osfield
d0cc014f1b Further migration to using RenderInfo 2006-11-14 12:51:31 +00:00
Robert Osfield
b5bb541cca From Stephan Huber, Follows is required to prevent unidented cloning of shared arrays :
"I added some calls to isOperationPermissibleForObject() so I can permit the flattten-pass with my specialized objects in my own code."
2006-11-14 12:49:53 +00:00
Robert Osfield
7cb1bcbd7d From Farshid Lashkari, "This patch adds a CoordOriginMode to the osg::PointSprite attribute.
The mode needs to be changed to LOWER_LEFT when rendering point
sprites to pbuffers or FBOs, otherwise the points will be transformed
on the CPU."
2006-11-14 12:29:54 +00:00
Robert Osfield
5f59741b42 Added support for handling osg::ShapeDrawable style drawables in OccluderGeoemtry. 2006-11-14 12:16:39 +00:00
Robert Osfield
1bb7da6085 Added check against null SceneData to prevent crash with empty models 2006-11-14 09:54:21 +00:00
Robert Osfield
ad1c9964e0 Further work on OccluderGeometry 2006-11-11 21:30:29 +00:00
Robert Osfield
c3f3093ecc From John Kelso, add support for default frame time for children of a Sequence node 2006-11-10 15:25:04 +00:00
Robert Osfield
8983544a86 Further work on osgShadow::GeometryOccluder 2006-11-10 15:07:13 +00:00
Robert Osfield
d23c04018b Updated wrappers 2006-11-08 11:49:35 +00:00
Robert Osfield
a11dd1c479 From Eric Wing, updates to Xcode project for new osgViewer library 2006-11-08 10:00:43 +00:00
Robert Osfield
a1f20f1a00 From Eric Wing, change osgGA::SimpleViewer to osgViewer::Viewer.
From Robert Osfield, added -losgViewer & -losgGA to makefiles.
2006-11-08 09:50:27 +00:00
Robert Osfield
530e9e08d4 Added better handling of writeNode operations that arn't successful. 2006-11-07 17:00:56 +00:00
Robert Osfield
ac9a28051f Fixed the writeNode function so it was properly return FILE_NOT_HANDLED, fixing
a big with it writing out an empty .flt file.
2006-11-07 17:00:29 +00:00
Robert Osfield
c607a6dd7f Updated wrappers 2006-11-07 14:26:48 +00:00
Robert Osfield
5ac6ea9a8d Ben van Basten, "1 Bug fix in reuseParticle where originally an old particle that was already killed would be killed again, but instead should have been placed on the dead stack for future reuse.
2 Getter/setter for _maxNumberOfParticlesToSkip that is used for filtering of particles during draw. This enables you to turn the filtering of by setting this value to zero.

3 Getter for retrieval of the first particle in the trail. This allows you to directly manipulate the trail from your application by walking from the start particle towards the end of the trail."

Submitted on Ben's behalf by Roland Smeenk.
2006-11-07 13:48:20 +00:00