Here's a small 3D modeling tool I wrote, which can help in creating models for you'r mods.
FEATURES:
Create box models
Preview texture mapping
Save uv-layout to disk for easier texture creation
Visual representation of the anchor-point
Keyboard shortcuts
Import the model from java code
Export the model to java code
SOURCES:
I've stopped development of this project. If you want to carry on, here are the sources for FMCModeler 0.26 (I should've done this loong ago...).
To compile, you'll need this: Alternativa3D 5
Flash Professional CS4 or later FlashDevelop (optional)
NEW IN 0.26: FEATURES:
CustomModelRenderer support (You can choose renderer in Settings->Compatibility). Renderer type is detected during code parsing.
New keyboard shortcut:
UV-view:
A - center view on selected uv-piece / reset center.
BUGFIXES:
Fixed crash when setting width, height or depth to 1.
You can now enter negative values / values greater than 360 in rotation fields.
NEW IN 0.25: FEATURES:
Mirror command now supported. This command is equivalent to Minecraft's someModelRender.mirror.
CHANGES:
Moved 'Transparent textures' checkbox to bottom pannel.
Removed 'Export constructor' checkbox from Settings->Export.
Reorganized generated code to look more like code found in minecraft classes.
Variables in generated code are now sorted like in boxes list.
BUGFIXES:
Fixed incorrect texture mapping in old texturing mode.
NEW IN 0.24: FEATURES:
Boxes can be renamed by pressing F2 or double-clicking their names in the list.
More code is generated when clicking 'Save code' (this can be configured in Settings->Export).
New keyboard shortcuts:
General:
F1 - help window;
F2 - rename selected box;
F3 - settings window;
Ctrl-s - generate code;
Shift-s - save uv-texture;
Ctrl-o - parse code;
Shift-o - load texture;
CHANGES:
Texture mapping now mathes Minecraft's one (was upside-down for some reason). You can change it back in Settings->Compatibility.
Changed face numbers to letters ('F'ront, bac'K', 'T'op, 'B'ottom, 'L'eft, 'R'ight)
BUGFIXES:
Changing texture size now works correctly.
Transparent textures mode now works correctly.
Improved performance.
Lots of small bugfixes.
NEW IN 0.23: FEATURES:
You can now drag uv-pieces with the mouse
Transparent textures support (still need some work though)
CHANGES:
Changed selection hilighting in 3d mode.
Removed "Hilight all" checkbox in UV-view. All UV-pieces are now hilighted automatically on UV saving.
BUGFIXES:
Fixed errors in code parsing (finally! Thanks Forster44)
Fixed some more errors when moving/scaling boxes using keyboard
NEW IN 0.21: FEATURES:
New keyboard shortcuts:
General:
Shift-Delete - remove all boxes
Model view:
CapsLock - look at box's center / look at model's center
CHANGES:
Doubled maximum camera distance
BUGFIXES:
Fixed errors in code parsing (hopefully)
Fixed errors when moving/scaling boxes using keyboard
Camera now looks at correct box's center
NEW IN 0.2: It's online now! No need to download anything Help window Settings window Keyboard shortcuts:
General:
Ctrl-D - duplicate current box;
] - select next box;
[ - select previous box;
Insert / Numpad + - add new box;
Delete / Numpad - - remove current box;
Model view:
A - frame selection;
Arrow keys - move current box;
Ctrl + arrow keys - scale current box;
UV view:
Arrow keys - move current uv;
Quick values copying.
To quickly copy values between boxes, Ctrl-click button(s) with property name(s) to copy value(s), select another box and Shift-click same button(s) to paste them.
LAUNCH! (You'll need Flash Player 10 to run this)
If you want a standalone version, open this link instead, then go "File->Save as" in you'r browser.
Want to spread the word? Put this in you'r signature:
This is awesome! Can't wait to be able to save and load textures. There seems to be a problem with creating the Java code, though. It doesn't save the coordinates for each box. That might be a good thing to add.
Rollback Post to RevisionRollBack
AJ's Thread O' Links! -- A thread of links to my projects, other supported projects, approved ideas, etc.
Here's how "Parse code" works: it takes code you paste, searches it for box creation code (such as "new ModelRenderer()", "addBox()", "setPosition()", "rotateAngleX=", "offsetX=") and creates geometry from it.
Currently it parses only numeric values, so "field_25108_g.setPosition(-1F, -1F, -7F);" will be successfully parsed, while "field_25108_g.setPosition(-1F, f1, -7F);" won't. Also it won't parse loops or any other flow control statements correctly.
And finally, you don't need to paste whole Minecraft class, only the part, where geometry is created (this is usually done in class constructor)
So, to load spider from my screenshot you need to parse following code:
This is awesome! Can't wait to be able to save and load textures. There seems to be a problem with creating the Java code, though. It doesn't save the coordinates for each box. That might be a good thing to add.
Can you explain this a bit further? Which coordinates aren't saved?
Here's a small 3D modeling tool I wrote, which can help in creating models for you'r mods.
FEATURES:
Create box models
Preview texture mapping
Save uv-layout to disk for easier texture creation
Visual representation of the anchor-point
Keyboard shortcuts
Import the model from java code
Export the model to java code
SOURCES:
I've stopped development of this project. If you want to carry on, here are the sources for FMCModeler 0.26 (I should've done this loong ago...).
To compile, you'll need this:
Alternativa3D 5
Flash Professional CS4 or later
FlashDevelop (optional)
NEW IN 0.26:
FEATURES:
CustomModelRenderer support (You can choose renderer in Settings->Compatibility). Renderer type is detected during code parsing.
New keyboard shortcut:
UV-view:
A - center view on selected uv-piece / reset center.
BUGFIXES:
Fixed crash when setting width, height or depth to 1.
You can now enter negative values / values greater than 360 in rotation fields.
NEW IN 0.25:
FEATURES:
Mirror command now supported. This command is equivalent to Minecraft's someModelRender.mirror.
CHANGES:
Moved 'Transparent textures' checkbox to bottom pannel.
Removed 'Export constructor' checkbox from Settings->Export.
Reorganized generated code to look more like code found in minecraft classes.
Variables in generated code are now sorted like in boxes list.
BUGFIXES:
Fixed incorrect texture mapping in old texturing mode.
NEW IN 0.24:
FEATURES:
Boxes can be renamed by pressing F2 or double-clicking their names in the list.
More code is generated when clicking 'Save code' (this can be configured in Settings->Export).
New keyboard shortcuts:
General:
F1 - help window;
F2 - rename selected box;
F3 - settings window;
Ctrl-s - generate code;
Shift-s - save uv-texture;
Ctrl-o - parse code;
Shift-o - load texture;
CHANGES:
Texture mapping now mathes Minecraft's one (was upside-down for some reason). You can change it back in Settings->Compatibility.
Changed face numbers to letters ('F'ront, bac'K', 'T'op, 'B'ottom, 'L'eft, 'R'ight)
BUGFIXES:
Changing texture size now works correctly.
Transparent textures mode now works correctly.
Improved performance.
Lots of small bugfixes.
NEW IN 0.23:
FEATURES:
You can now drag uv-pieces with the mouse
Transparent textures support (still need some work though)
CHANGES:
Changed selection hilighting in 3d mode.
Removed "Hilight all" checkbox in UV-view. All UV-pieces are now hilighted automatically on UV saving.
BUGFIXES:
Fixed errors in code parsing (finally! Thanks Forster44)
Fixed some more errors when moving/scaling boxes using keyboard
NEW IN 0.21:
FEATURES:
New keyboard shortcuts:
General:
Shift-Delete - remove all boxes
Model view:
CapsLock - look at box's center / look at model's center
CHANGES:
Doubled maximum camera distance
BUGFIXES:
Fixed errors in code parsing (hopefully)
Fixed errors when moving/scaling boxes using keyboard
Camera now looks at correct box's center
NEW IN 0.2:
It's online now! No need to download anything
Help window
Settings window
Keyboard shortcuts:
General:
Ctrl-D - duplicate current box;
] - select next box;
[ - select previous box;
Insert / Numpad + - add new box;
Delete / Numpad - - remove current box;
Model view:
A - frame selection;
Arrow keys - move current box;
Ctrl + arrow keys - scale current box;
UV view:
Arrow keys - move current uv;
Quick values copying.
To quickly copy values between boxes, Ctrl-click button(s) with property name(s) to copy value(s), select another box and Shift-click same button(s) to paste them.
LAUNCH! (You'll need Flash Player 10 to run this)
If you want a standalone version, open this link instead, then go "File->Save as" in you'r browser.
Want to spread the word? Put this in you'r signature:
Diamonds for you! and a
this is very very nice, also having it run from a single flash document that you can open with a browser, that is very impressive
have a few diamonds, friend. keep up the good work :smile.gif:
Currently it parses only numeric values, so "field_25108_g.setPosition(-1F, -1F, -7F);" will be successfully parsed, while "field_25108_g.setPosition(-1F, f1, -7F);" won't. Also it won't parse loops or any other flow control statements correctly.
And finally, you don't need to paste whole Minecraft class, only the part, where geometry is created (this is usually done in class constructor)
So, to load spider from my screenshot you need to parse following code:
Can you explain this a bit further? Which coordinates aren't saved?
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->ahh dont tell me this is the same bug as mob maker
<!-- l -->List of all my other mods,creations,maps,etc..:
viewtopic.php?f=1039&t=325080&p=4488802#p4488802
<!-- l -->Just experiment with the angles.
Techne vs this :ohmy.gif:. Who will win? (i am on the Techne side :biggrin.gif:)
Well, ask you'r questions / submit bug reports in this thread or send me a PM.
Check my original post: I've added instruction on how to do that