OpenSceneGraph/src/osgPlugins/lwo
Robert Osfield fe3b68dbb1 From Marco Jez:
here is a patch that enables a new option named "BIND_TEXTURE_MAP" in the LWO plugin. Its purpose is to allow explicit binding between texture UV maps defined in the LWO file and OpenGL texture units, overriding the default mechanism that allocates texture units automatically. This is useful when you have an UV map built in Lightwave (for example an atlas map) but no textures actually using it, so you can keep the UV map (that would be discarded otherwise) and add a texture later int your program.

Syntax is:
BIND_TEXTURE_MAP <map_name> <texunit>
2006-01-18 12:13:48 +00:00
..
Block.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
Block.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
Clip.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
Clip.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
Converter.cpp From Marco Jez: 2006-01-18 12:13:48 +00:00
Converter.h From Marco Jez: 2006-01-18 12:13:48 +00:00
COPYING Added a bunch of files synched with 0.8.42 2001-09-19 21:08:56 +00:00
GNUmakefile Preparation for moving osgGL2 out of the core OSG into its own seperate distribution. 2005-04-14 11:28:23 +00:00
iffparser.h Changed the *(itr++) instances with *(itr), *(itr+1) with a seperate itr+=n etc. This 2004-06-09 16:28:51 +00:00
Layer.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
lwo2chunks.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
lwo2parser.h Build fixes for gcc 3.4.1 support 2004-08-01 08:26:44 +00:00
lwo2read.h Changed the *(itr++) instances with *(itr), *(itr+1) with a seperate itr+=n etc. This 2004-06-09 16:28:51 +00:00
lwo2types.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
Object.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
Object.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
old_lw.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
old_lw.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
old_Lwo2.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
old_Lwo2.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
old_Lwo2Layer.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
old_Lwo2Layer.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
Polygon.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
Polygon.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
ReaderWriterLWO.cpp From Marco Jez: 2006-01-18 12:13:48 +00:00
README Added a bunch of files synched with 0.8.42 2001-09-19 21:08:56 +00:00
README_osg.txt Clean ups for the release. 2003-09-11 09:44:22 +00:00
README.txt From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
spec_lwob.txt Added a bunch of files synched with 0.8.42 2001-09-19 21:08:56 +00:00
Surface.cpp From Marco Jez: 2006-01-18 12:13:48 +00:00
Surface.h From Marco Jez: 2006-01-18 12:13:48 +00:00
Tessellator.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
Tessellator.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
Unit.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
Unit.h From Marco Jez, updates to the LWO loader. 2004-01-03 15:20:33 +00:00
VertexMap.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
VertexMap.h From Marco Jez: 2006-01-18 12:13:48 +00:00

LIGHTWAVE (LWO2) PLUGIN INTRODUCTION
------------------------------------------------------------------------------

  This is the plugin version of my LWO2->OSG converter. It has all the
features (and drawbacks) of the original converter but it doesn't replace
it completely.
  I'm planning to further enhance the stand-alone converter by adding osgNV 
compatibility and I can't do this on the plugin version because I'm not going
to introduce a dependancy to osgNV into OSG.
  There is also a LWS plugin which reads Lightwave scene files; make sure you
only read scene files that point to LWO2 (not LWO1) objects, otherwise you may
experience problems (the LWO1 plugin doesn't convert the coordinate system
correctly).


PLUGIN OPTIONS
------------------------------------------------------------------------------

   USE_OLD_READER           pass control to the old LWO/LWO2 reader plugin
                            (all other options ignored)

   FORCE_ARB_COMPRESSION    create compressed textures
   
   USE_OSGFX                use osgFX effects to improve visual appearance
   
   NO_LIGHTMODEL_ATTRIBUTE  prevent the plugin from creating a LightModel
                            state attribute; using this option may result in
                            visual artifacts

   MAX_TEXTURE_UNITS <n>    set the maximum number of texture units to be
                            used when creating multi-textured surfaces


NOTES
------------------------------------------------------------------------------

  NOTE_1: this plugin works fine in reading LWO2 files but it's not well 
optimized,so you can expect slowness and large memory usage.

  NOTE_2: the LWS (scene) support is a quick-and-dirty work, it's there 
only because I needed it. Do not pretend too much from it, at least until
I improve it somehow.

  NOTE_3: the osgFX support is still limited, only osgFX::SpecularHighlights
is used to improve the specularity effects on materials that have a specular
component. Future enhancements will allow osgFX to be used more widely to 
give a better visual matching between the original LWO2 model and OSG.


  Marco Jez <marco.jez@poste.it>
  January 2004