Per Inge Mathisen
a433f0c362
Add new tool: 3ds2wzm to convert from 3DS MAX to WZM format.
...
3ds2pie: Fix calculation of number of levels to import.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3929 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 21:23:23 +00:00
Per Inge Mathisen
db3d0fc7f0
wzmviewer: Interpolate positions between frames for bone heap animation to
...
make animation smooth.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3928 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 20:36:43 +00:00
Per Inge Mathisen
f45da9872b
Fix memory leak in WZM code
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3927 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 20:00:36 +00:00
Per Inge Mathisen
d632cadb8a
Add WZM -> 3DS converter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3925 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 19:27:47 +00:00
Per Inge Mathisen
6bec88ac91
wzmviewer: Reorganize source code for easier maintenance and reuse.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3920 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 18:29:33 +00:00
Per Inge Mathisen
e042cf4ebf
wzmviewer: Bone heap animation support. Add some safety checks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3895 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 22:20:16 +00:00
Per Inge Mathisen
ad5851f3bf
wzmviewer: Add support for displaying texture animations.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3891 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 16:39:23 +00:00
Dennis Schridde
9fec1a998e
Use QLayout instead of fixed size.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3859 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-23 12:25:37 +00:00
Dennis Schridde
2c10e37c49
Add Slider/SpinBox combination to set model scale. Closes patch #986 (but differs from it).
...
Also fix minimum/maximum sizes to prevent resizing of the window.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3858 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-23 11:44:36 +00:00
Per Inge Mathisen
69e71c5778
3ds2pie: Add option to scale imported model by a given factor to correct errors
...
seen in Blender 3DS export.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3853 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-22 18:47:21 +00:00
Per Inge Mathisen
37a96b2041
pie2wzm: Add option to reverse winding of polygons.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3800 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-16 16:32:13 +00:00
Per Inge Mathisen
52a2f9a041
wzmviewer: Fix dimension calculation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3741 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-10 17:38:28 +00:00
Per Inge Mathisen
749ad7ded1
pie2wzm: Add newlines.
...
wzmviewer: Hack perspective depending on model size.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3740 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-10 17:24:11 +00:00
Per Inge Mathisen
84c61fed77
Fix crash in wzmviewer due to a not properly initialized frame variable.
...
Thanks to Buginator for reporting the problem.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3731 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-09 19:45:49 +00:00
Per Inge Mathisen
b174ddd773
Make PIE/WZM tools more easily compile on Windows.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3730 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-09 18:56:31 +00:00
Per Inge Mathisen
6c179bb935
pie2wzm: Fix division by zero error introduced in the previous commit to it when
...
a mesh has no animation.
wzmviewer: Press '+' to cycle through animations or team colours. F1/F2 to
enable/disable polygon culling. F3/F4 to enable/disable wireframe mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3720 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-08 18:43:21 +00:00
Per Inge Mathisen
05a6223814
pie2wzm: Remove output parameter - generate output filename automatically.
...
Add cmdline option to not guess team colour and force animation instead.
Add support for texture animation that wraps around the edge of the texture.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3718 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-08 17:55:15 +00:00
Per Inge Mathisen
baed19b3b0
wzmviewer: Fix bug when reading in multi-mesh files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3716 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-08 10:54:57 +00:00
Per Inge Mathisen
49e97ae793
Add a very simple model viewer application for the WZM format.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3715 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-08 10:38:49 +00:00
Per Inge Mathisen
b278c8d77d
pi2wzm: Write correct TEXTURE directive. Fix bug in index array generation.
...
Generate correct animation frame list. Add support for converting connectors.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3714 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-08 10:27:03 +00:00
Per Inge Mathisen
0207ceb4c1
Add a tool to convert from the PIE format to the imaginary WZM format.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3710 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-07 14:59:53 +00:00
Per Inge Mathisen
f47c263d99
pie23ds: Fix handling of texture animation / team colour.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3706 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-06 21:08:46 +00:00
Per Inge Mathisen
8dfb001797
Remove two forgotten debug printfs in pie23ds
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3705 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-06 17:43:26 +00:00
Per Inge Mathisen
8b037dc016
Add a very basic PIE -> 3DS conversion tool.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3704 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-06 17:38:49 +00:00
Per Inge Mathisen
0f647f937e
Make 3ds2pie tool conform to PIE standard even though the Warzone code ignores
...
the exact number given in the LEVEL directive.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3703 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-06 17:35:28 +00:00
Giel van Schijndel
748adec208
Use network byte order for struct unpacking on the lobby server (rather than native byte ordering)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3666 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-03 16:51:56 +00:00
Dennis Schridde
76fddad000
Generic cleanup. Mostly remove struct keyword where unnecessary.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3585 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:02:28 +00:00
Giel van Schijndel
d868ec0a50
* Make Win::HWND a "strong" typedef; this guarantees that code that just assumes Win::HWND is the same type as ::HWND (from <windows.h>) will fail to compile
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3551 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-24 00:43:10 +00:00
Giel van Schijndel
c1eb47283e
* Fix a typo in a Doxygen comment
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3494 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 23:09:34 +00:00
Giel van Schijndel
8ce3b1fcce
* Initialise `_errCode` in Win::Error's constructor (because it's declared const...)
...
* Handle `show_command_last__` in the switch for `__ShellExecuteShowCmd` to prevent warnings
* Don't specify default template parameters for function template Win::ShellExecute as function templates cannot have default template parameters
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3482 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 17:15:35 +00:00
Giel van Schijndel
31a31943bc
Forgot to update EditWorld's projectfile in r3480, so doing it now
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3481 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 16:28:19 +00:00
Giel van Schijndel
bfa243f575
* Move some WinAPI functions into new file winapi.[ch]pp and a namespace of its own: 'Win'
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3480 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 16:25:32 +00:00
Dennis Schridde
d8d2697d0d
Per says all of swapYZ, reverseWinding, invertUV are necessary for 3DS Max created .3ds files, so enable them all by default. (In GUI and CLI.)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3477 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 12:55:22 +00:00
Dennis Schridde
d22bf8f49c
Add tooltips
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3476 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 22:28:13 +00:00
Dennis Schridde
bb6437fe06
Drag&Drop support. (Any filename ending in ".3ds" is accepted.)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3469 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 19:40:40 +00:00
Dennis Schridde
4ac1dfecfd
- Replace texpageNr lineEdit, with texturePage spinBox.
...
- Remove associated error-checking (emptyness), since that is guaranteed by Qt.
- Use Ui::Gui3ds2pie instead of Ui_Gui3ds2pie. (Autodetected by Qt/UIC. make distclean if it complains.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3466 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 02:26:05 +00:00
Dennis Schridde
716d1796b5
Enable swapYZ by default, like in the commandline variant.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3465 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:54:49 +00:00
Dennis Schridde
356ed35cbb
Add Qt4 GUI. It uses 3ds2pie.c:dump_pie_file() and only has very basic error checking right now.
...
- To get the (currently only german) translation, run "lrelease 3ds2pie_gui.pro".
- When translating with (Qt Linguist), make sure to use the preview function to check whether your strings fit into the UI.
If they don't, try to use a shorter translation, otherwise adapt the UI.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3464 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:19:55 +00:00
Dennis Schridde
4ea16727f9
3ds2pie says it is licensed as LGPL-2.1, so use that instead.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3463 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:14:19 +00:00
Dennis Schridde
cb768653a6
Remove unnecessary (CVS?) header.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3462 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:13:31 +00:00
Dennis Schridde
5dc7edf2c1
Move 3ds2pie.c out of src/ again...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3461 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 00:28:00 +00:00
Dennis Schridde
b557a843ca
- Make dump_pie_file work on parameters instead of globals
...
- Use C89 tolower() for string conversion
- Fix unsignedness warnings
- Some variable renames
- Move parse_args and associated globals into !WZ_3DS2PIE_GUI
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3460 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 23:39:45 +00:00
Dennis Schridde
7edfeb0b0e
Move C file to src/ to match default project settings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3459 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 23:10:46 +00:00
Dennis Schridde
a01c019d97
Prepare for additional GUI.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3457 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 22:01:21 +00:00
Dennis Schridde
ad2658fcec
Move 3ds2pie from conversion_tools to a dedicated directory.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3456 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 21:30:55 +00:00
Giel van Schijndel
546abc300e
* Use more correct prototypes for the member functions of class BMPHandler, this should reduce unnecessary casting to and from void*
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3451 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 14:09:08 +00:00
Giel van Schijndel
6afd374095
Don't depend on Windows API specific functions when an alternative is provided by the C library:
...
* Replace usage of WinAPI function lstrcmpA with libc function strcmp
This addresses #4
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3450 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 13:56:41 +00:00
Per Inge Mathisen
7b81b5c76f
Fix some ugly shadowing and reuse of variables.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3428 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-10 17:50:40 +00:00
Per Inge Mathisen
f7fbf845c0
Small cleanup to animation code, and fix copy&paste typo in 3ds2pie.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3412 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 21:58:05 +00:00
Giel van Schijndel
28f40cd637
* Initialise CBrushProp's member variables in the constructor's initialisation list instead of its code-body
...
* Rename some private member variables: s/m_\([^\s]\+\)/_\1/g
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3410 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-08 18:01:03 +00:00