Commit Graph

693 Commits

Author SHA1 Message Date
Campbell Barton
2f46df39b4 meshes with no faces would raise an eror when setting their .faceUV to true. 2007-09-19 09:15:16 +00:00
Campbell Barton
722fe627bc udates from stable 2007-09-11 10:22:00 +00:00
Campbell Barton
64019f709b update from stable 2007-09-08 12:09:51 +00:00
Campbell Barton
d18d0aaabb fbx update from stable (parent/child hierarchy isnt flattened anymore) 2007-09-08 08:49:56 +00:00
Campbell Barton
40c0b37a2a update from mingus 2007-09-07 23:33:30 +00:00
Campbell Barton
f85cd06873 When Optimize keyframes was enabled, the comma's wernt written in the right place, oddly enough this still loaded in the FBX SDK. 2007-09-07 00:36:56 +00:00
Campbell Barton
9eb46e47fc constant name was wrong. possibly changed between blender versions 2007-09-05 01:02:03 +00:00
Campbell Barton
6c0893947b * dupli-objects were not exporting (animated dipli's and armatures that are dupli's still dont work)
* added support for exporting blenders groups (will export groups that any of the selected objects are apart of)
2007-08-30 17:16:09 +00:00
Campbell Barton
f386120411 sync with stable 2007-08-29 19:53:49 +00:00
Campbell Barton
c96cde42bd Objects can now be animated (camera paths, lamps etc)
However meshes that use an armature cant use object animation.

faster exporting for non modifier applied, armature meshes (transform all verts using wrapped C func)
2007-08-29 09:50:08 +00:00
Campbell Barton
1d43cae37b * added a bindpose (3ds max was complaining)
* export materials emit value
2007-08-29 05:42:39 +00:00
Campbell Barton
99493ef6d9 * added some missing tooltips
* made name string cleaning function allow chars ,.()[]{} in fbx model names
* clamped export lamp intensity to 200
* each mesh only links to the image-textures it uses. (before it linked to ALL textures)
* added support for AllSame mapping, this means when a material or texture only uses one, a single mapping index can be given rather then a big list with the same value in it.
* improved material and texture mapping method
2007-08-29 03:56:22 +00:00
Campbell Barton
18478d1e62 scaling the model by 10 by default didnt work for some people, scaling 1.0 by default for now. 2007-08-29 00:10:23 +00:00
Kent Mein
4e2143f639 This commit fixes up a bunch of svn properties to hopefully make things a little nicer for everyone.
Patch provied by gsrb3d

bug tracker #7061

Kent
2007-08-28 10:07:08 +00:00
Campbell Barton
2b8a8b0508 left in test, should not be working when tired. 2007-08-28 08:54:29 +00:00
Campbell Barton
3049b89e36 thaught Id run the colbits test but that part wasnt running, tested and error fixed now. 2007-08-28 08:30:37 +00:00
Campbell Barton
a20071a195 * texture indicies were exported incorrectly
* copy textures didnt work
* Export blenders ClampX/Y settings
* removed unneeded imports
2007-08-28 05:32:00 +00:00
Campbell Barton
13ad2de90a Fixes
* material indicies were incorrectly exported
* export object materials using colbits
* scaled armatures would scale bones twice
* scenes with no world would raise an error

Additions
* added options for global scaling and rotating, defaults will load correctly in MotionBuilder
* modifiers can be applied to skinned meshes, the armatures are set to their rest positions for python to get the un-deformed mesh. This makes exporting a mesh with subsurf and armature applied work as expected.
* meshes with parent bones are exported as weighted meshes.
* use lamp modes for cast light and cast shadow FBX settings.
* batch exporter, scenes or groups can be exporter to a file each.
* help button to load the wiki exporter page.
2007-08-28 02:11:49 +00:00
Campbell Barton
ba6f02fb29 cleanup and fixed more problems with namespace collisions (should be all solved by name) 2007-08-26 01:35:03 +00:00
Campbell Barton
0cfe5527b0 fix from stable - if modules cant be imported- popup an error rather then nasty python message 2007-08-24 21:52:56 +00:00
Campbell Barton
a28bd3adb1 armature animation is not messed up when the mesh and armature objects have transformation.
python 2.4+ without any modules should work.
python 2.3 should work now also (need to import the sets module).
2007-08-24 12:13:34 +00:00
Campbell Barton
bba7506598 own dumb mistake missing a return 2007-08-24 11:57:26 +00:00
Campbell Barton
45cbafe08d fbx export update
* normalize bone weights (deep exploration 5 assumed they were normalized and does crazy stuff otherwise)
* fixed some mistakes in last commit.
2007-08-24 07:07:18 +00:00
Campbell Barton
f51acfb724 FBX export update
* added a user interface
* added support for exporting multiple actions as FBX's 'Takes'
* added support for one armature effecting multiple meshes
* added support for multiple armatures (bone names wont have namespace collisions)
2007-08-23 16:34:15 +00:00
Campbell Barton
567e634253 obj export had the overwrite confirmation commented out from testing, UIBlock needed to clear the events so tooltips show. 2007-08-21 19:37:03 +00:00
Campbell Barton
798001556a FBX armature + mesh + weights works now.
So it can be used to export walk cycles etc.
Animated armatures also work (import BVH and export as FBX for instance)

Pose data is transformation is key'd on every frame at the moment, so IK's and constraints are applied but blenders keyframes are not used.

at the moment one armature applied multiple meshes wont work properly and armatures cant have transformation.
2007-08-20 23:38:39 +00:00
Campbell Barton
4ef547a79d path seperator check was wrong 2007-08-19 23:49:48 +00:00
Joshua Leung
982d45162b == PyConstraints ==
I've added the ability for PyConstraints to define a function (doDriver) that is able to directly modify values of the owner/target, so that certain setups can be created reliably. Users should take note that this is against the basic concept of what a constraint does, and that under no circumstances may they set the values of any variables controlling the transforms. For more details, check out the information in the PyConstraint template script.

I've also updated PyConstraints to be aware of geometry targets. The script template has been updated with this information.
2007-08-18 06:17:50 +00:00
Campbell Barton
7cf316a037 initial support for baked bone animation - works for simple tests 2007-08-15 00:48:33 +00:00
Campbell Barton
fb985daf01 move mesh_vgroup_average to the weightpaint menu and rename. also added an option to add the active weight group or all groups.
- fix from 2.44 so makeDisplayList updates 3d text
2007-08-12 06:14:33 +00:00
Campbell Barton
0d5f195ba7 left a print in and didnt account for no vgroups BPyMesh also had an error when meshWeight2List was called on a mesh with no vgroups 2007-08-12 01:38:12 +00:00
Campbell Barton
35c2498a40 script submitted by Johnny Matthews (guitargeek) - but I rewrote to make use of some existing functions in BPyMesh.py
This averages the weights of vert groups per island (based on face connectivity)
Nice for making scales and works well with new dual-quat interpolation
2007-08-12 01:30:14 +00:00
Campbell Barton
9776f489e6 Mesh.c - getVertFromGroup ~25% speedup.
export_fbx.py - initial support for bones applied to weighted meshes.
2007-08-09 13:34:44 +00:00
Campbell Barton
b3eb06f8a9 * added armature (bones) support to the fbx exporter. Only rest state, no animation yet.
* fix for PLY from 2.44
2007-08-06 20:20:20 +00:00
Campbell Barton
c6785e3292 fixes from 2.4x 2007-08-03 16:33:08 +00:00
Campbell Barton
f707382e1e misc changes from stable 2007-08-01 18:04:44 +00:00
Campbell Barton
311d7e31cc minor changes from stable 2007-08-01 10:19:16 +00:00
Campbell Barton
8b127a9bc1 this importer tried to be smart by splitting quads that were not planer. - This is not somthing an importer should do and a user was having problems importing meshes to subsurf from lightwave.
also some other updates, and small cleanup.
2007-07-30 02:24:17 +00:00
Martin Poirier
becc4feb5f Fix for #6946 Save UV layout broken for large wire sizes
This also helped me pinpoint a couple of off by one errors in the UV rasterizing code. One especially noteworthy was that all UV at 1.0 (on the 0..1 scale) didn't render properly.
2007-07-23 01:12:07 +00:00
Campbell Barton
dfa6e0b8d6 bugfix's for 6917 and 6913 - Both were because I forgot to check all other selected meshes for faceUV's
Also made image_auto_layout.py use blenders internal boxpacking rather then the slower python one.
2007-07-09 17:33:38 +00:00
Campbell Barton
5610ac067b edits from zanqdo as well as randomize on single axis was broken.
and some other minor tweaks from me
2007-07-01 08:08:16 +00:00
Nathan Letwory
83c65e71e8 * adds EmptyMesh to the menu 2007-06-28 08:33:04 +00:00
Chris Want
e3ed38be6b For a texture, write out the Image.filename instead of Image.name. 2007-06-18 20:03:23 +00:00
Joshua Leung
9a4c02c51d == PyConstraints - Script Template ==
Here is a script template for the "Script Templates" menu in the Text Editor. It provides you with the necessary functions for a PyConstraint set up, and also includes descriptions on what is required in each function.
2007-06-18 11:36:05 +00:00
Campbell Barton
d1959e51b2 was missing editmode exit in script template 2007-06-10 17:28:21 +00:00
Campbell Barton
22e6e836fa bugfix for [#6818] object_find.py assumes active uv layer is set
was assuming meshes had UVs
2007-06-10 04:10:25 +00:00
Campbell Barton
b0921f3d79 exporting normals wit the "High Quality Normals" option disabled, exported localspace normals.
not too bad since HQNormals were enabled by default.
2007-06-06 04:34:59 +00:00
Campbell Barton
f368b60baf OBJ smooting groups exported enabled for by default for the first smooth group (should have been disabled)
gen_library.c - Own error, hashing did not decref the tuple it created.
Draw.c - callback also missed a decref
2007-06-04 08:15:27 +00:00
Campbell Barton
6057ab05f0 Updated this script not to choke on some blank lines (example file from Lekane)
Also removed the use of list.index() all over the place where the index was known. (saves searching the file and the possibility of duplicates messing it up)
2007-05-31 06:12:09 +00:00
Campbell Barton
7585adc8cc Script from Gerhard for exporting blender to m3g and java source,
see website for examples
http://www.nelson-games.de/bl2m3g/default.html
2007-05-29 21:39:29 +00:00