GameTools plb to ac3d

From Wikiid
Jump to: navigation, search

The plb_to_ac3d tool converts models in the '.plb' XML format into '.ac' format suitable for the AC3D modeller or for import into blender. It's a bit kludgy - but it helps out in some messy cases.

Usage:

  /u/games/tools/src/plb_to_ac3d  fromfile.plb  tofile.ac

Because it uses the image pathnames built into the PLB loader, it needs to be run from the directory that's above both the model directory and the image directory that contains the textures. Hence:

  cd /u/lol
  /u/games/tools/src/plb_to_ac3d  models/whatever/whatever.plb  whatever.ac

This produces a '.ac' file that has some problems:

  • It references textures without a pathname. So if you load it into blender or ac3d all of the textures are missing. It's hard to fix that. One solution is to run this 'sed' script to fixup the path (every single character must be typed exactly right for this to work):
  sed -e 's/texture "/texture "images\//' whatever.ac > fixed_whatever.ac
  • There are lots of features of '.plb' files that '.ac' and '.blend' files don't support (which is why we're using '.plb' in the first place!) - as a consequence, some things don't come out right - notably, you see all levels of detail of

ssgRangeSelector nodes at once.


Wikiid Pages relating to gameTools (edit)
gameTools - Main page
gameTools - Support Tools :
plb_to_ac3d, mklevel, mktile, mktree, tiled, autogen_java, mk3dgallery
gameTools - File Formats :
title_screen.rgb, ultimate.xml, material.xml, decoration.xml, physics.xml
tiled.xml, tiled_autotiles.xml, Level files, Tile naming scheme, PLB files
gameTools - Source Code :
Game functions: gameCamera, gameClock, gameChecksum/gameHashTable, gameHTTP,
gameIsect, gameJoystick, gameParticleManager, gameScreen/gameMouse,
gameSky, gameStarter, gameStrokeFont, gameUtils
Material database: MatList/MatEntry
Tile map handling: TileObject/MapFlag/MapEntry/Map
Java Interfacing: JavaLink
Image file loading: liImage/liImageFactory
3D Model file loading: loadPLB, PLB exporter
Physics: Sabot, Bullet, gameTools - Use with Blender, PLB exporter
Object management: Object


Wikiid Pages relating to Lemur of Lima (edit)
Lemur of Lima - Main page
Lemur of Lima - Controls
Lemur of Lima - Levels :
List of Levels, Level design, Screen shots, Models
Lemur of Lima - Java Plugins :
Java plugin API, Event handling, Flags, GameInterface API , Alphabetical Index
Lemur of Lima - Source Code Documentation :
Initialisation, Main Loop, gameTools