Robert Osfield
bdc8a72aae
From Andre Garneau, minor warning fixes
2007-07-11 15:30:14 +00:00
Robert Osfield
f70b6d0993
Improved the consistency of setting of rotation and auto rotate modes in setAxisAlingment method
2007-07-09 10:47:06 +00:00
Robert Osfield
19d1a563fe
From Csaba Halasz and Robert Osfield, support for passing in ReaderWriter::Options object into readFontFile
2007-07-02 12:30:14 +00:00
Robert Osfield
eac3dc1963
From Paul Melis, "Here is a list of fixes to misspelled APIs. Unfortunately, more than one
...
of these are public APIs and therefore will break linkage to existing
shared libraries."
Note from Robert Osfield, updated wrappers.
2007-06-27 20:36:16 +00:00
Robert Osfield
1d5f76c55d
Commented out debug messages
2007-05-09 13:05:19 +00:00
Robert Osfield
53777aee29
Set default texture size back to 1024x1204
2007-05-09 10:42:56 +00:00
Robert Osfield
2cd6a174d2
Added GL_MAX_TEXTURE_SIZE check and use of OSG_MAX_TEXTURE_SIZE env var to help
...
hint to osgText that the native OpenGL implementation only supports textures up to
a given size.
2007-05-09 10:41:56 +00:00
Robert Osfield
77b4ffcac2
Added use of OSG_MAX_TEXTURE_SIZE for clamping texture sizes.
2007-05-09 10:31:06 +00:00
Robert Osfield
681bf12333
Added imageData block initialized to 0 for first construction of GlyphTexture
2007-05-09 07:54:32 +00:00
Robert Osfield
198c3d3e5a
Removed margin
2007-05-04 12:06:31 +00:00
Robert Osfield
dadb92ea64
Reorganised the managment of margins around glyphs so that is done entirely
...
with src/osgText/Font.cpp rather than the font plugins or Text.cpp
2007-05-04 12:05:29 +00:00
Robert Osfield
3809d0dad0
Moved the OpenThreads link locally to each lib
2007-05-03 10:06:38 +00:00
Robert Osfield
f242570269
Unified the setup of version numbers so that they all are based on the version
...
number setup in the include/osg/Version header file.
2007-04-22 20:19:43 +00:00
Robert Osfield
68a6882d04
Bumbped the version number up to 1.9, in preperation for using odd release numbers
...
for development releases, odd versions for stable releases.
2007-04-16 06:03:22 +00:00
Robert Osfield
2e6ee4bb39
Removed old gmake and VisualStudio build files
2007-04-10 13:10:25 +00:00
Robert Osfield
6d7b5e7ebd
From Eric Wing, pedantic warning fixes
2007-04-06 15:36:13 +00:00
Robert Osfield
b419fa93ef
From Luigi Calori, "when we link against something that comes out from a Find... we ususally have a variable <LINK_VAR_NAME>available like OPENTHREADS_LIBRARY,
...
so I' ve set up a macro that uses the variable name expanded for linking, and test if a variable ${LINK_VAR_NAME}_DEBUG
like OPENTHREADS_LIBRARY_DEBUG exists and in case uses it for linking in debug mode.
I' ve also set up FindOpenThreads to set up these variables.
I had to edit the core libraries CMakeLists to add the calls to the macros used.
I' ve tested under MSVC"
2007-03-26 13:02:38 +00:00
Robert Osfield
db6f07f1d6
Ran dos2unx of CMakeLists.txt files
2007-03-08 15:31:36 +00:00
Robert Osfield
b428aee852
Added missing files
2007-03-05 12:11:15 +00:00
Robert Osfield
f50ed9667a
From Eric Wing and others, first cut of CMake build support
2007-03-04 13:05:33 +00:00
Robert Osfield
77b9a7ae19
From Eric Sokolwsky, "osgText is a useful node kit, but when longer paragraphs are displayed
...
on the screen, it looks more aesthetically pleasing to have a larger
gap between lines than is given by default. I added a new parameter,
lineSpacing, in the Text class to allow the line spacing to be adjustable
by the application. The default value is 0 meaning there is no extra
spacing given. The value should be given as a percentage of the character
height. A good value for longer paragraphs is 0.25 (25%) or more."
2007-01-30 14:32:12 +00:00
Robert Osfield
9454bafc8c
Removed debug messages
2007-01-08 22:40:56 +00:00
Robert Osfield
7f5aaa8424
Improved resizeGLObjectBuffers support
2007-01-08 20:46:56 +00:00
Robert Osfield
709d2fa435
Improved the handling a releaseGLObjects() and add setThreadSafeRefUnref and resizeGLObjectsBuffers methods
2007-01-08 20:40:29 +00:00
Robert Osfield
345810ef22
Added support for float or double osg::Plane, and the default osg::Plane to double.
...
Performance tests on big models did not indicate any performance penalty in using doubles over floats,
so the move to doubles should mainly impact precision improvements for whole earth databases.
Also made improvements to osgUtil::PlaneIntersector and osgSim::ElevationSlice classes
2006-11-28 16:00:52 +00:00
Robert Osfield
fd2ffeb310
Renamed osg::CameraNode to osg::Camera, cleaned up osg::View.
...
Added beginnings of new osgViewer::Scene,View,Viewer,CompositeViewer and GraphicsWindowProxy files.
2006-11-27 14:52:07 +00:00
Robert Osfield
85dc696c09
Added FadeText::setFadeSpeed and made internal data structures protected.
2006-10-24 09:06:28 +00:00
Robert Osfield
7c6b528588
Fixed bug related to clean up of text fonts.
2006-10-03 11:14:34 +00:00
Robert Osfield
cc202c1b6d
Updates for fade text to work properly, but only in perspetive views at present.
2006-09-20 10:36:21 +00:00
Robert Osfield
5cab53941f
Further work on fade text.
2006-09-19 22:57:23 +00:00
Robert Osfield
87aff3d92c
Further work on osgText::FadeText implementation.
2006-09-19 20:19:29 +00:00
Robert Osfield
def74d3471
Introduced new osg::View, and osg::RenderInfo classes into the core OSG to help
...
handle scenes with multiple views with elements that need coordinating on a per view basis.
Added beginings of new osgText::FadeText class (not functionality yet).
2006-09-18 20:54:48 +00:00
Robert Osfield
96e1630cc7
Removed the String inhertiance from osg::Referenced.
2006-09-01 12:46:45 +00:00
Robert Osfield
87a221445e
Updated version numbers of the up comming 1.2 release
2006-08-31 20:54:28 +00:00
Robert Osfield
6be6bc2eaa
Added TexEnv object into Font and apply this in Text::drawImplementation to make
...
sure that a valid TexEnv is applied
2006-08-28 19:37:40 +00:00
Robert Osfield
26e3424195
Changed the default implementation of backdrop text to DEPTH_RANGE and
...
tweaked the depth range values to minimize the depth rage witout causing z fighting
on osgtext example.
2006-08-22 12:33:35 +00:00
Robert Osfield
98cdf9b3c7
From Eric Wing, fix for compute of the bounding box when handling outline/backdrop text.
2006-08-22 10:23:58 +00:00
Robert Osfield
132f9ead45
Updated version number for 1.1.1 release
2006-08-12 08:29:16 +00:00
Robert Osfield
f6d092957f
Commented out the _textBB contribution of outline/backdrops to fix bounding box problem.
2006-08-10 06:20:28 +00:00
Robert Osfield
7b313eef34
Added OSG_TEXT_INCREMENTAL_SUBLOADING ON/OFF env var check to osgText::Font
...
to optional disable the incremental subloading.
2006-08-03 13:12:14 +00:00
Robert Osfield
9e7b07fbcf
Reworked the state management within osgText::Text and osgText::Font so that it
...
only applies textures locally rather than whole StateSet.
2006-08-02 21:05:56 +00:00
Robert Osfield
d728d8335e
Fixed auto rotate bug.
2006-07-25 13:52:10 +00:00
Robert Osfield
97dde14dcf
From Eric Wing, fix for VC6 support
2006-07-18 19:26:54 +00:00
Robert Osfield
f1c2694c17
Updated copyright years.
2006-07-18 15:21:48 +00:00
Robert Osfield
419e185895
From Eric Wing, add alternate backdrop implementations.
...
From Robert Osfield, updated naming and copy constructor methods.
2006-07-18 12:24:04 +00:00
Robert Osfield
2ef59b73e9
Change Unit to Units to keep consistent with OpenGL naming.
2006-07-17 11:43:26 +00:00
Robert Osfield
f16a78ad97
Increased the unit multiplier to 3 to avoid z fighting.
2006-07-17 10:25:01 +00:00
Robert Osfield
4bae225d39
Added s/getFactorMultiplier(), s/getUnitMultiplier(), areUnitAndMultipliersSet() and
...
setFactorAndUnitMultipliersUsingBestGuessForDriver() static methods to
osg::PolygonOffset to help implement workarounds for lack of portablity of
settings between different hardware.
2006-07-14 14:08:33 +00:00
Robert Osfield
abe6260da4
Fixed management of Text's StateSet so that it works correctly when the DefaultFont is active.
2006-07-13 09:01:24 +00:00
Robert Osfield
88609a5eee
Updated version numbers for 1.1 release
2006-07-06 10:28:12 +00:00
Robert Osfield
30d32133b8
Tweaked polygon offset
2006-07-06 10:27:40 +00:00
Robert Osfield
2c2083db72
From Vivek Rajan, "Rotated text in SCREEN_COORDS was looking a little squished especially
...
in orthographic projection. Performing the rotation before the scaling
fixed the problem. I've attached Text.cpp with the fix."
From Robert Osfield, in keeping with Vivek's change moved the auto rotate to screen befor the scale as well.
2006-07-06 08:36:12 +00:00
Robert Osfield
3ad5140942
Change osgText so that the Text drawable now can have its own StateSet
...
that users can assign to it without it being overriden. If none is
assigned externally it now uses a StateSet associated wit the Font assigned
to the Text.
2006-07-04 13:56:29 +00:00
Robert Osfield
710adfd698
From Eric Wing, added support for outline/shadow and colour gradient effects.
2006-06-27 13:09:00 +00:00
Robert Osfield
4d35807a54
From Matt Green, fix to handling of centering of multi-line text entries.
2006-06-08 13:34:29 +00:00
Robert Osfield
2792c6c2fb
From Colin MacDonald, fixed handling of an adding a graphics context after the creating of the osgText::Text.
2006-05-01 16:20:26 +00:00
Robert Osfield
3f2c419db6
From Paul Martz, changed Vec3 to Vec3d to ensure that the lazy evaluation of computeBound work properly.
2005-12-08 20:32:06 +00:00
Robert Osfield
0e16b64665
Coverted tabs to space in core libraries.
2005-11-17 13:35:53 +00:00
Robert Osfield
258425d649
Bumped the version numbers up to 1.0 in preparation for 1.0-rc1.
2005-11-09 10:49:56 +00:00
Robert Osfield
2773d45f2a
From Wang Lam,"The changes allow users of OpenSceneGraph to call a new function
...
readFontStream() to load fonts from a std::istream, rather than from the
local filesystem by name. Such a call may be used, for example, if the
user has a font fetched over a network, or a font available in memory
without a correspondng filename.
The changes implement the new function by following the corresponding code
for readFontFile(). readFontStream() reads a stream into memory, and
holds that memory for FreeType.
As a basic test, I mangled the osgtext example to use
readFontStream(std::ifstream("font")) in lieu of a readFontFile call, and
the modified example ran completely."
2005-11-07 11:05:16 +00:00
Robert Osfield
6c31d05172
Added a setSupportsDisplayList(false) to constructor to prevent end users
...
enabling display lists, something that can break the osgText's managment
of state.
2005-11-02 12:22:12 +00:00
Robert Osfield
b0d19b0b66
From Farshid Lashkari, "I need the ability to check for a font file without actually loading
...
the font object. I've modified font.h/cpp of osgText so that it
exports the findFontFile function."
2005-11-02 10:57:42 +00:00
Robert Osfield
a312b0451e
From Farshid Laskari, changed the compute of the text bounding box to include the spaces.
2005-10-14 09:29:13 +00:00
Robert Osfield
b5c4605d1c
From Joran Jessurun, added font search fallbck that strips the leading path from the font file and then looks again.
2005-09-28 13:39:26 +00:00
Robert Osfield
141f8a70d7
From Farshid Lashkari, append "\fonts" to end of windows font search path.
2005-09-11 19:08:41 +00:00
Robert Osfield
1e9fb4ab03
From Marco Jez (with tweaks by Robert Osfield) : clean up of inheritance from std::vector<> classes
2005-07-20 19:42:59 +00:00
Robert Osfield
1c88914e5f
From Yuri Vilmanis, improved multi-line justifaction support and new alignment modes
2005-07-15 16:22:53 +00:00
Robert Osfield
1dd553ed0e
Bumped version numbers to 0.9.9 in rediness for 0.9.9 release.
2005-05-16 17:17:53 +00:00
Robert Osfield
e82a63ca81
Cross platform build fixes.
2005-05-13 11:11:52 +00:00
Robert Osfield
bf4d63f6ea
Added new Node/Drawable::s/getInitialBound and Node/Drawable::s/getComputeBoundCallback
...
methods and reimplement computeBound so that it passes back a bounding volume rather
than modifying the local one.
2005-05-12 14:03:22 +00:00
Robert Osfield
d1a1b1d95c
Added more comprehensive releaseGLObjects(State*=0) throughout Nodes,
...
Drawables,StateSet, and osgDB::Registry.
Added cleanup_frame() from to osgProducer::OsgCamerGroup to help with proper
clean of OpenGL objects before exit, and modified osgviewer, osghangglider,
osgwindows examples to do the extra frame call to cleanup_frame() before exit.
2005-05-07 20:47:09 +00:00
Robert Osfield
08d5f9f85a
From Tim Daoust/Robert Osfield, added Font::releaseGLobjects(State*state=0) to
...
facilate clean up of scene when a graphics context is deleted/reused.
2005-05-07 09:17:55 +00:00
Robert Osfield
178a0b5c7e
Reduced the verboseness of the notifaction messages
2005-04-28 19:50:07 +00:00
Robert Osfield
bf13c8ca14
Changed the default texture size to 512x512 to reduce the number of textures
...
required when rendering text.
2005-04-28 19:24:09 +00:00
Robert Osfield
84aef32552
Removed old LUMINANCE_ALPHA code pathways since they are no longer used.
2005-04-28 19:08:44 +00:00
Robert Osfield
7f3d46e110
Added check to see if autoTransformCache had been initialized before
...
using it in the computeBound.
2005-04-28 05:58:20 +00:00
Robert Osfield
38bf740ef4
From Vivek Rajan, "osg::Text was getting stretched when the CharacterSizeMode was set to
...
SCREEN_COORDS and the SceneView's projection matrix was set to an
Ortho2D matrix (sceneView->setProjectionMatrixAsOrtho2D(-1,1,-1,1)).
Computing the pixel size separately vertically and horizontally, and
setting the scaling factors appropriately based on that fixed the
problem."
2005-04-26 07:49:18 +00:00
Robert Osfield
3ab9867264
Removed increment of the cursor position by the bearing value in the compute
...
last character code as this should not be used when moving the cursor.
2005-04-20 09:55:24 +00:00
Robert Osfield
678b22ce83
Updated Copyright notices to 1998-2005.
2005-04-14 21:41:28 +00:00
Robert Osfield
816df3a1d0
Fixes for VS6.0 build
2005-04-04 12:24:18 +00:00
Robert Osfield
c3f40e2e67
Added improved handling of center justificaion of multiline text
2005-03-03 12:33:07 +00:00
Robert Osfield
117c791a3b
Added osg::BufferObject and a made a number associated to accomodate this
...
new class. osg::BufferObject wraps up OpenGL pixel and array buffer objects.
Currently implementation is work in progress.
2005-02-09 10:39:45 +00:00
Robert Osfield
a086a6d01b
Changed Font::setSize to Font::setFontResolution
2005-01-27 11:10:50 +00:00
Don BURNS
1771cdbcc7
Update version numbers in files
2004-12-04 23:38:24 +00:00
Robert Osfield
d9b9a6f1f8
Made read/write methods in ReaderWriter all const to facilate multi-threading
2004-11-23 15:29:52 +00:00
Robert Osfield
a6369da4f4
Moved Registry::CacheHintOptions into ReaderWriter::Options
2004-11-22 14:10:12 +00:00
Robert Osfield
2718058173
Removed the font cache from the FreeType plugin, moving the support across to
...
osgDB::Registry.
2004-11-02 11:10:44 +00:00
Robert Osfield
7e5c87de6a
Changed the version strings to use OpenSceneGaph rather than "Open Scene Graph"
2004-09-27 12:07:34 +00:00
Robert Osfield
54b45ce3bc
Updated to DatabasePager support
2004-09-21 21:33:52 +00:00
Robert Osfield
255c27d552
Added a new osgDB::appendPlatformSpecificLibraryFilePaths() method to FileUtils.cpp
...
Includes a new OSX code from Eric Wing
2004-08-27 16:14:21 +00:00
Robert Osfield
ddb7423e46
Set version numbers for 0.9.7 release
2004-08-05 08:02:48 +00:00
Robert Osfield
7eb3f2646e
From Norman Vine (with small tweaks by Robert Osfield), build fixes for Cygwin
2004-08-04 08:27:43 +00:00
Robert Osfield
1ae521981e
From David Fries, divide by zero fix on text with a pixel size of 0.0
2004-07-28 07:24:13 +00:00
Robert Osfield
422aab8e3f
Added handling of the case when texture objects are released from underneath
...
the osgText::Font::GlyphTexture - something which requires a full rebuild
of the texture object.
2004-07-19 14:34:12 +00:00
Robert Osfield
4ee909d217
Added better handling of number of graphic context size changes.
2004-03-16 21:03:37 +00:00
Robert Osfield
4aa7afedf3
Removed include <iostream> where possible, replacing with istream or ostream and changing
...
std::cout/cerr to osg::notify().
2004-03-03 13:27:21 +00:00
Robert Osfield
8cf1cc0dad
From Brad Christaiansen, added check for projection matrix changing in
...
screen coord character size mode.
2004-02-04 09:30:06 +00:00
Robert Osfield
d226e3ec68
From Nick, added VectorUInt in osgText/String hack to get around VS's stoopid compiler bugs.
...
From Robert, removed an #if #else #endif block, for code clarity.
2004-01-27 11:50:32 +00:00
Robert Osfield
a7a96e710c
Added support for REVERESED_XY_PLANE, REVERESED_XZ_PLANE and
...
REVERESED_YZ_PLANE's for the axis alignement to allow the text to be
reversed.
2003-12-20 14:23:04 +00:00
Robert Osfield
bbde1b2ae7
Fixes for optional compile of GL_LUMINANCE_ALPHA and GL_ALPHA texture usage
...
in fonts. Default to GL_ALPHA.
2003-12-09 12:04:14 +00:00