Skip to content

About

LightWave 3D 5.x plugins for AmigaOS, cross-compiled with GCC

Resources

Stars

17 stars

Watchers

1 watching

Forks

Latest commit

 

History

138 Commits

Folders and files

Repository files navigation

Amiga LightWave Plugins

LightWave 3D 5.x plugins for AmigaOS, cross-compiled with GCC.

This repository contains Layout, rendering and Modeler plugins built as AmigaOS LoadSeg-able .p modules. Release notes and version-specific changes belong in GitHub Releases; this README documents the current project layout, build workflow, and plugin set.

Plugins

Plugin Class Output Documentation
ObjSwap Object replacement objswap.p README
ObjList List-driven object replacement objlist2.p README
ObjMeshSwap Surface-preserving object replacement objmeshswap.p README
Fresnel Shader fresnel.p README
SurfList Shader surflist.p README
PBR Shader pbr.p README
SpecFlare Image filter specflare.p README
PNGsaver Image saver pngsaver.p README
PNGloader Image loader pngloader.p README
NormalMap Shader normalmap.p README
Motion Item motion motion.p README
Toon Image filter toon.p README
PostFilter Image filter postfilter.p README
ToonShader Shader toonshader.p README
GEOimport Object loader (VideoScape .geo) geoimport.p README
Instancer Modeler geometry copier instancer.p README
InstanceColor Shader instcolor.p README

Installation

Most users should install a published release rather than build from source.

  1. Download LW-Plugins-<version>.lha from GitHub Releases and extract it on the Amiga.
  2. Run the Install icon in the LW-Plugins drawer (needs the Commodore Installer). It detects the CPU and FPU, preselects the matching build, and copies Layout plugins to your LightWave plug-ins drawer, GEOimport and Instancer to the Modeler plug-ins drawer, plus optional documentation.
  3. Start Layout without loading a scene or object.
  4. Open the Options tab, choose Add Plug-Ins, and select the copied .p file.
  5. Restart Layout so LightWave writes the plugin entry to its config file. GEOimport and Instancer are registered the same way in Modeler.

LightWave 5.x needs an FPU, and every build of the plugins uses it. The archive holds three builds of every plugin under LW-Plugins/Plugins/, one per CPU. To install by hand, copy the .p files from the drawer matching your CPU:

Drawer CPU
020fpu 68020/68030 with a 68881/68882
040fpu 68040 with FPU
060fpu 68060 with FPU

Each plugin has its own setup and usage notes. See the README linked in the plugin table above for the plugin you are installing.

Building From Source

Source builds require Docker and the amigadev/crosstools:m68k-amigaos image. The image provides m68k-amigaos-gcc 16.x, AmigaOS NDK headers and libraries, and libnix for -noixemul builds. CI builds with make package EXTRA_CFLAGS=-Werror, so new code must compile without warnings.

Build everything:

./build.sh

Build a single plugin:

./build.sh objswap
./build.sh objlist
./build.sh objmeshswap
./build.sh fresnel
./build.sh surflist
./build.sh pbr
./build.sh specflare
./build.sh pngsaver
./build.sh pngloader
./build.sh normalmap
./build.sh motion
./build.sh toon
./build.sh postfilter
./build.sh toonshader
./build.sh geoimport
./build.sh instancer
./build.sh instcolor

Clean generated objects and plugin binaries:

./build.sh clean

Build outputs are written to build/. After changing CPUFLAGS or pulling a change to the default flags, run ./build.sh clean first: make does not rebuild objects when only the flags change.

Build the release archive (build/LW-Plugins-<version>.lha, all three builds, Installer script and Latin-1 docs):

./build.sh package

CPU builds

The default build targets a 68020/68030 with a 68881/68882. The 68040 and 68060 builds are variants with their own build directories:

./build.sh variants  # 040fpu and 060fpu
./build.sh 040fpu    # a single variant
Build Flags Use on Output Package drawer
default -m68020 -m68881 68020/68030 with a 68881/68882 build/ 020fpu
040fpu -m68040 -m68881 68040 build-040fpu/ 040fpu
060fpu -m68060 -m68881 68060 build-060fpu/ 060fpu

The 040fpu and 060fpu builds use fd*/fs* instructions that exist only in the 68040/68060 on-chip FPU. Do not use them with a 68881/68882. The default build runs on a 68040/68060 only through the 68040/68060.library emulation traps, so pick the build that matches your CPU.

SDK

The sdk/ directory contains the LightWave 5.x SDK headers and support library patched for GCC compatibility:

  • sdk/include/ - LW SDK headers
  • sdk/lib/ - built server library and startup object (the 040fpu and 060fpu variants build their own copy in build-<variant>/sdklib/)
  • sdk/source/ - server library source, GCC startup assembly, and stubs

Project Structure

.
|-- build.sh
|-- Makefile
|-- VERSION
|-- sdk/
|   |-- include/
|   |-- lib/
|   `-- source/
`-- src/
    |-- objswap/
    |-- objlist/
    |-- objmeshswap/
    |-- fresnel/
    |-- surflist/
    |-- pbr/
    |-- specflare/
    |-- pngsaver/
    |-- pngloader/
    |-- normalmap/
    |-- motion/
    |-- toon/
    |-- postfilter/
    |-- toonshader/
    |-- geoimport/
    |-- instancer/
    `-- instcolor/

About

LightWave 3D 5.x plugins for AmigaOS, cross-compiled with GCC

Resources

Stars

17 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages