Opened 15 years ago
Closed 12 years ago
#461 closed task (fixed)
[ATTACHED] .pmd/.dae converter
Reported by: | Robert Schultz | Owned by: | historic_bruno |
---|---|---|---|
Priority: | If Time Permits | Milestone: | Alpha 9 |
Component: | Non-game systems | Keywords: | simple |
Cc: | Patch: |
Description
Many of the models are in the PMD format and are not editable by most 3d editing programs. A converter would be needed to ensure high modability in this game, as well to make edits to models.
An alternate solution is for someone to just convert all PMD to DAE.
Attachments (3)
Change History (27)
comment:1 by , 15 years ago
Keywords: | simple added |
---|
comment:2 by , 14 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Currently working on this, see comments in the forums.
comment:3 by , 14 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
PMD to Collada converter added. Unzip the archive to your directory of choice and follow the directions in the README. Enjoy!
comment:4 by , 14 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Thanks, will have a look at this soon!
("worksforme" is for bugs that are closed when they can't be reproduced or verified - it's not meant for this kind of case, and it'll remove the ticket from the list of open issues so it's liable to get lost and forgotten. Best to leave it open until the tool gets added to SVN.)
comment:5 by , 14 years ago
Hey I'm getting a syntax error when running the Launcher (trying to convert all PMD files)
by , 14 years ago
Attachment: | pmd2collada.zip added |
---|
comment:6 by , 14 years ago
Syntax error resolved (duh), need external confirmation. New files uploaded.
comment:7 by , 14 years ago
Looks good for static meshes - now it just needs support for props and bones and we can get rid of our old .pmd format :-)
Have you tried using lxml? It has an API for generating XML that's quite concise, which might make the Collada-generation less horrid.
Some very pedantic points: README.txt says GPLv3 or later, but LICENSE.txt is GPLv2. The code says Quaterion
instead of Quaternion
. pmd2collada.py
says it's called PMD_to_Collada.py
.
comment:9 by , 14 years ago
Milestone: | → Backlog |
---|
follow-up: 11 comment:10 by , 14 years ago
This does not work for me, is there any specific format you have to enter the path as?
follow-up: 12 comment:11 by , 14 years ago
Replying to Brightgalrs:
This does not work for me, is there any specific format you have to enter the path as?
Standard path format: <drive>:<path>, ex: D:\Profiles\b28670\My Documents\Downloads\0ad\binaries\data\mods\public\art\meshes
What error message are you getting?
comment:12 by , 14 years ago
Replying to mattminton:
Replying to Brightgalrs:
This does not work for me, is there any specific format you have to enter the path as?
Standard path format: <drive>:<path>, ex: D:\Profiles\b28670\My Documents\Downloads\0ad\binaries\data\mods\public\art\meshes
What error message are you getting?
Yeah, that's how I've been entering it. I'm actually getting no errors, the console just closes: -Double clicked pmd2colladaLauncher.py -Entered C:\ (keeps things simple) -Console closes, no error or popup
comment:14 by , 13 years ago
Keywords: | review added |
---|---|
Milestone: | Backlog → Alpha 6 |
comment:15 by , 13 years ago
Summary: | .pmd/.dae converter → [ATTACHED] .pmd/.dae converter |
---|
comment:16 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
comment:17 by , 13 years ago
Status: | new → assigned |
---|
comment:18 by , 13 years ago
Fixed several issues includeing the crash due to prop points. Bones are not yet implemented in this version.
comment:19 by , 13 years ago
Milestone: | Alpha 6 → Alpha 7 |
---|
comment:20 by , 13 years ago
Priority: | Nice to Have → If Time Permits |
---|
comment:21 by , 13 years ago
Status: | assigned → new |
---|
comment:22 by , 13 years ago
Milestone: | Alpha 7 → Backlog |
---|
comment:23 by , 13 years ago
Keywords: | review removed |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Working on a new version that handles prop points and bones.
by , 12 years ago
Attachment: | pmd2collada_v3.zip added |
---|
comment:24 by , 12 years ago
Milestone: | Backlog → Alpha 9 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Attaching latest version of the converter, works for bones and prop points. There's not much point to it anymore because I converted most of the PMDs to DAEs, with the exception of skeletal ones which aren't very useful anyway (see this forum topic for discussion).
I think the better plan will be to redo those models and corresponding animations (they aren't great and need "updating" anyway).
For anybody who's interested in working on this, there's descriptions of the PMD (mesh) and PSA (animation) formats, and bone name lists, and the Collada to PMD/PSA code (though PMD/PSA to Collada doesn't need to be done by the game engine so it could probably be written in e.g. Python more easily than C++).
(Ideally we'll distribute the game with only .dae files, but to do that we'll either need to re-export all of the old models and animations (from before we started using Collada), or we'll need this conversion tool.)