Vicmar, Scighera, and others.
I'm happy to inform you that, today, I managed to follow the full process of submitting a 3D model from the user submission form until its effective writing into test tables and real dynamic display into web pages. Those who are impatient can go at the end of the post.
What is currently effective:
- Only AC3D files, with 1 texture for now.
- Lots of control on the PHP and Javascript sides, amongst which:
* lat, long, elevation, offset 'usual' checks;
* check all files were received and correctly received ;
* check sizes submitted ;
* XML, AC and thumbnails must share the same name, textures have a corresponding number ;
* extensions, mime-type, header checks (for XML, will check <xml version ="1.0" encoding="UTF-8">, will see if the name of the AC3D and the name declared in the XML match) ;
* checks AC3D content for texture names, see if it matches with the png files submitted ;
* textures must be a power of 2 ;
* thumbnail must be 320*240 ;
* etc.
- concurrent access OK (random temporary directory names, etc.)
- files are targzed
- Email process for user & maintainer, maintainer can leave a comment before submitting or rejecting
- Visualisation page for maintainer including author (not yet contributor), email, family, proposed name for the 3D model (it's the XML name for now), Full Name (description), Notes, lat, long, map, elevation, offset, DB orientation, thumbnail, possibility to download as .tar.gz, 3D visualisation tool (not completely finished), XML file parsing, one texture view.
What is
not yet done:
- multiple textures input (only one texture file can be viewed now),
- AC3D visualisation for the 3D model submitted (for the moment, it's a boat, but it's the next step),
- captcha (I let it off for testing).
The overall project size is 1761 lines of code and comments!
What I'm planning to do for now:
- ask you, and some willing users, to test the script with AC3D models
containing 1 PNG texture ;
- see if there are any bugs/comments, etc ;
- fix the small to-do list I have left (multiple PNGs, ...).
PS: for testing purposes, please use:
-
http://scenemodels.flightgear.org/submi ... /index.php to add 3D models (shared/static)
-
http://scenemodels.flightgear.org/stats_oj.php to see if the model was inserted
-
http://scenemodels.flightgear.org/model ... hp?id=2432 to check a model with a fgsoj mo_id
-
http://scenemodels.flightgear.org/objec ... id=3288839 to check objects with a fgsoj ob_id
I hope you like it.