Bill Currie
57aa19bd44
Rename qfmdl to io_mesh_qfmdl.
...
This fits in better with the blender addon naming scheme.
2011-09-21 20:18:23 +09:00
Bill Currie
c3b358f470
Clean up the intra-package import lines.
2011-09-21 19:17:16 +09:00
Bill Currie
4b9a421928
Split out the MDL class.
...
I will need it for the exporter.
2011-09-21 12:34:09 +09:00
Bill Currie
af4a91accf
Do a tiny bit of cleanup.
2011-09-20 19:32:49 +09:00
Bill Currie
b00e865d4c
Make the importer work in both 2.58 and svn blender.
2011-09-20 18:58:45 +09:00
Bill Currie
67ba9129ed
Report bad mdl files.
2011-09-20 13:34:12 +09:00
Bill Currie
9a4e5aef53
Read strings as strings rather than bytes.
2011-09-20 13:33:41 +09:00
Bill Currie
a32e45d2d5
Refactor the import code.
...
This should make things a little more maintainable.
2011-09-20 12:44:37 +09:00
Bill Currie
d90fd4cee9
Fix a mistake found by a debug build of blender.
2011-09-18 18:49:16 +09:00
Bill Currie
c65522b5cf
Add key frames for all shape keys.
2011-09-18 15:37:17 +09:00
Bill Currie
94ac2fa675
Remove a debug print
2011-09-18 10:37:28 +09:00
Bill Currie
b57e098e93
Rewrite the frame group to action conversion.
...
Now it works :) Mostly :/ Need to figure out how to "finalize" the action.
Also, blender occasionally loses my skin texture :(
2011-09-18 09:58:59 +09:00
Bill Currie
dbb1df70b5
Fix frame merging for mdlv3 files.
...
v3 files have no name fields in the frames, so we need to store the
generated name.
2011-09-18 09:18:49 +09:00
Bill Currie
ad8afec84c
Merge multiple frames into a single frame group.
...
But only if they seem to be related (ie, the frame name is the same up to
the number). This will later become optional, but it allows me to test
some of the frame group code.
2011-09-17 23:41:35 +09:00
Bill Currie
dc76ad6556
Create actions for frames and frame groups.
...
Simple frames get a one key action, groups get an action with a key per
subframe.
2011-09-17 23:13:21 +09:00
Bill Currie
644f4db9d1
Add support for v3 (qtest) mdl files.
...
Finally, I can see the dragon in all its... glory?
2011-09-17 09:05:07 +09:00
Bill Currie
f7de55ed5e
Create a shape key for every frame and subframe.
...
Shammy has no frame groups :(. Need to find a model with groups.
2011-09-16 20:59:39 +09:00
Bill Currie
b0af18478b
Be a little more direct in object linking and materal adding.
2011-09-16 19:14:31 +09:00
Bill Currie
de24fa99a8
Break out the skin/material setup code.
2011-09-16 17:57:07 +09:00
Bill Currie
41213f2c30
Make the skin show in blender's 3d view.
...
Much thanks to ideasman_42 for showing me which code I needed to grok to
get it working.
2011-09-15 22:45:23 +09:00
Bill Currie
320f613263
Give the uvlayer texture a name.
2011-09-15 20:39:26 +09:00
Bill Currie
257fefca38
Link the first skin to the imported object.
...
The texture doesn't display properly in 3d space in texture mode yet.
2011-09-15 19:52:18 +09:00
Bill Currie
7489d5646b
Convert all skins.
...
Skin groups are now partially supported.
2011-09-15 19:51:52 +09:00
Bill Currie
f8e1e3d4ec
Fix incorrect bracket/parens
2011-09-15 19:18:31 +09:00
Bill Currie
11f37298be
Reveres the face windings.
...
Blender's vertex order and quake's vertex order seem to be opposed.
2011-09-15 17:23:40 +09:00
Bill Currie
0569e0ebd3
Build the uv layout.
2011-09-15 13:21:08 +09:00
Bill Currie
99ff91e341
Load the skins into blender images.
...
Skin groups are not yet supported (skipped).
2011-09-15 11:29:54 +09:00
Bill Currie
9d025e0058
Begin working on an mdl import/export plugin for blender.
...
This is only preliminary at this stage:
o No export yet.
o Only the first frame is converte4d.
o Skins are not yet converted
2011-09-14 19:33:51 +09:00