Simplify Makefiles, update README

This commit is contained in:
Marco Cawthorne 2021-08-09 10:49:11 +02:00
parent 2f10cb1eef
commit ca89beca1d
3 changed files with 44 additions and 33 deletions

View file

@ -1,22 +1,12 @@
CXXFLAGS= -Os -fomit-frame-pointer CXXFLAGS= -Os -fomit-frame-pointer
override CXXFLAGS+= -Wall -fsigned-char override CXXFLAGS+= -Wall -fsigned-char
VVM_OBJS= \
vvm.o
UPGRADE_OBJS= \
upgrade.o
default: all default: all
all: vvm #upgrade all: vvm
clean: clean:
-$(RM) $(VVM_OBJS) $(UPGRADE_OBJS) vvm upgrade -$(RM) vvm
vvm: $(VVM_OBJS) vvm:
$(CXX) $(CXXFLAGS) -o vvm $(VVM_OBJS) $(CXX) $(CXXFLAGS) -o vvm vvm.cpp
upgrade: $(UPGRADE_OBJS)
$(CXX) $(CXXFLAGS) -o upgrade $(UPGRADE_OBJS)
%.o : %.cpp
$(CXX) -o $@ -c $<

View file

@ -2,18 +2,12 @@ CXXFLAGS= -Os -fomit-frame-pointer
override CXXFLAGS+= -Wall -fsigned-char override CXXFLAGS+= -Wall -fsigned-char
CXX=i686-w64-mingw32-g++ CXX=i686-w64-mingw32-g++
VVM_OBJS= \
vvm.o
default: all default: all
all: vvm all: vvm.exe
clean: clean:
-$(RM) $(VVM_OBJS) $(UPGRADE_OBJS) vvm -$(RM) vvm.exe
vvm: $(VVM_OBJS) vvm.exe:
$(CXX) $(CXXFLAGS) -o vvm.exe $(VVM_OBJS) -static -static-libgcc -static-libstdc++ $(CXX) $(CXXFLAGS) -o vvm.exe vvm.cpp -static -static-libgcc -static-libstdc++
%.o : %.cpp
$(CXX) -o $@ -c $<

View file

@ -1,21 +1,40 @@
# vvmtool # vvmtool
## Inter Quake Model & VVM Exporter
This is the exporter for our extended model format (**VVM**). It's based off IQM and to This is the exporter for our extended model format (**VVM**). It's based off IQM and to
some extent is backwards compatible (this was done so that editors capable of some extent is backwards compatible (this was done so that editors capable of
displaying IQM files would *just work*, however it depends on how the loader is written. displaying IQM files would *just work*, however it depends on how the loader is written.
These days, you can find an updated version of this tool inside the [FTE SRC](https://sourceforge.net/p/fteqw/code/HEAD/tree/), however It can export both standard IQM files and our extended format for use in FTEQW.
it has grown to become much more than a model exporter and become less portable as a result.
For those reasons, we are preserving our version of the original, extended tool here. **These days, you can find an updated version of this tool inside the
It exports plain .IQM files, as well as .VVM files. [FTE SRC](https://sourceforge.net/p/fteqw/code/HEAD/tree/), that has become
much more than a model exporter and become less portable as a result.**
Extra resources, such as the pre-release files we shared on inside3d.com: *For those reasons, we are preserving our version of the original, extended tool here.*
* [vvm docs](vera-visions.com/dev/vvm-docs-1.zip) It will be updated if we make changes to our format, those will also be pushed upstream to FTE's tool.
* [vvm example model sources](vera-visions.com/dev/vvm_example.zip)
* [July 2017: old sources dated](vera-visions.com/dev/vvm-src-1.zip) # Features
* [July 2017: old win32 binary](vera-visions.com/dev/vvm-w32-1.zip)
Features that the original IQM exporter did not offer:
* Support for external configuration files for IQM generation (ala studiomdl)
* Pre-processor for rotating single or all input files
* Pre-processor for translating/repositioning single or all input files
* Pre-processor for renaming bones inside a single or all input files
* Pre-processor for material prefixes inside a single or all input files
Some features that our extended specification (VVM) has to offer:
* Support for hitmeshes for faster, content-aware collision detection
* Automatic hitmesh generation
* Submodels that allow showing/hiding specific groups of the model via the game-logic
* Support for frame triggered events that can be read by the game-logic (model-events)
* Level-of-detail range flag for references/sub-models
* User-defined surface and contentflags per reference/sub-model
**NOTE: Using any of the VVM features is not supported in any engine other than FTEQW**
# History # History
In 2016 when we had our first prototype of The Wastes, we started out using DPM for In 2016 when we had our first prototype of The Wastes, we started out using DPM for
@ -49,6 +68,14 @@ Make sure you have a C++ compiler installed and issue:
Please read the `vvm.txt` file included in this repository for more information. Please read the `vvm.txt` file included in this repository for more information.
# Notes
Extra resources, such as the pre-release files we shared on inside3d.com:
* [vvm docs](vera-visions.com/dev/vvm-docs-1.zip)
* [vvm example model sources](vera-visions.com/dev/vvm_example.zip)
* [July 2017: old sources dated](vera-visions.com/dev/vvm-src-1.zip)
* [July 2017: old win32 binary](vera-visions.com/dev/vvm-w32-1.zip)
# LICENSE # LICENSE
Copyright (c) 2010-2016 Lee Salzman Copyright (c) 2010-2016 Lee Salzman