Commit Graph

38 Commits

Author SHA1 Message Date
Campbell Barton
688cc11302 added an option for python Draw.UIBlock(func, mouse_exit) so moving the mouse outside the popup wont close it.
Stops FBX Export and OBJ I/O from flickering a lot.
2008-10-22 08:21:43 +00:00
Campbell Barton
18072f5583 modified OBJ import and export UI's to be less confusing with nicer layout. removed an unneeded workaround in fbx export. 2008-10-19 15:53:22 +00:00
Campbell Barton
459b4ea5be fix for [#12797] FBX Exporter Exports Incorrect Matterial EmissiveFactor and DiffuseFactor
- own error, swapped diffuse and emit factors
2008-05-24 12:22:53 +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
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
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
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
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
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
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
7cf316a037 initial support for baked bone animation - works for simple tests 2007-08-15 00:48:33 +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
311d7e31cc minor changes from stable 2007-08-01 10:19:16 +00:00
Campbell Barton
1d181b9108 removed doc_browser.py - since it covers ~half the BPY api, not documenting any of blenders data types.
replaced with a help_bpy_api.py, that opens a web browser at the Blender Python API page.
Camera.c - added a veriable .angle to camera, same as .lens but adjusts the camera angle in degrees (like the D button)
export_fbx.py - use the the camera angle property.
object_cookie_cutter.py - use PointInTriangle2D rather then own function.
buttons_shading.c - added OB: and tooltip to object world mapping.
interface_draw.c - (Simple theme) text buttons looked exactly like normal buttons (more confusing when they had no text), made the text and ID buttons render inset so you can tell them apart.
2007-04-28 17:21:00 +00:00
Campbell Barton
c84d18a679 export_cal3d - exporting all actions (option) wasnt working
export_fbx - blender cameras now work properly (converted lens angle, rotate to the right axis)
	Made meshes, armatures and cameras use the same namespace.
DirectX8Exporter - update from David Teviotdale, change names of exported objects so some DX readers dont fail
xsi_export - Null materials made the export fail (python error).
	This may not be a correct solution since material indicies could be messed up now. I have no way of reading these files.
2007-04-27 17:19:26 +00:00
Campbell Barton
0a9dc31c8b added blender-camera export to fbx
py api was massing shiftX/Y
2007-04-27 00:33:07 +00:00
Campbell Barton
60af30ec8a lightwave_import - tested with many more new files, fixed a rare error (probably bad file)
export_fbx - export lamps, (point/spot/sun), Mesh edges, Dupli'Objects and static particles as edges. bug fix in material export and better reuse of some standard text chunks.
fly mode, added acceleration on mouse-wheel and +/- so flicking the mousewheel has more effect and dosnt feel so slugish.
BPySys.py - cleanName, dumb mistake.
2007-04-21 11:23:45 +00:00
Campbell Barton
d76778f0e4 2 new python functions for the NLA.
action.getChannelNames() and action.renameChannel(from, to)

editaction.c - maximum new name length was too short
2007-04-20 23:33:56 +00:00
Campbell Barton
c7b1e5c11d export_fbx.py - support scene start/end frames, fpx, mist settings, better default camera writing.
BPyObject.py - function for getting an objects armature, look at both parent and modifier.
editmesh_add.c and BPyAddMesh.py - check for multires
filesel.c, Append/Link had a bug where files linked in, didnt have the LIB_APPEND_TAG unset, and appending these into a new blend file would link instead.
BKE_library.h, library.c - utility functions for flagging listbases flag_all_listbases_ids and and flag_listbase_ids
2007-04-20 18:48:30 +00:00
Campbell Barton
60b3268c32 adding a python function for cleaning strings (for filenames and export names) BPySys.py - used fotr obj and fbx export.
view.c - missed one smoothview/camera.
Brigg's hide object patch didnt change the object selection flag, other minor changes also.
2007-04-19 20:58:09 +00:00
Campbell Barton
238ab04297 update for exporting material settings, everything was exporting green,
now use spec,diffuse,ambient,alpha,shadeless settings as well as some others that match
2007-04-19 17:27:18 +00:00
Campbell Barton
341ba1e28b Export object loc,size,rot rather then apply the matrix to the mesh. 2007-04-05 17:55:07 +00:00
Campbell Barton
417498a865 added multilayer vertexColor support to fbx and removed videoscape_export.py 2007-03-31 12:23:46 +00:00
Campbell Barton
f40d675437 added named multilayer UV Layer export. 2007-03-29 17:51:32 +00:00
Campbell Barton
cfdef7a88a ICVS: ----------------------------------------------------------------------
import OBJ dosnt raise a Py Error when no image is given for a material
export FBX works much better, tested 179 models and dosnt crash on any now. tested import export with large scene, 375,000 tri's.
Mesh.py doc note about UV coords,,
editmesh_add minor typo
2007-03-29 14:35:01 +00:00
Campbell Barton
bcaea04fde fixed a bug was writing 1 extra UV index, thus crashed the FBX SDK 2007-03-29 06:01:03 +00:00
Campbell Barton
c8d53d8620 FBX Exporter, blender can write meshes with materials, textures and UV coords.
Armatures bone weights and animation not supported yet.
2007-03-28 07:08:18 +00:00