The original obj importer was ok but it gradually got slower
as it had to support quirks of rare files.
This importer supports these quirks without bad workarounds and ~250 less lines.
* Moved from NMesh to Mesh
* Import smooth groups as hard edges
* Import Lines from sketchup (Thanks Wavk)
* Uses less memory
* faster (On a 70meg poser test model, benchmarked from 130sec to 41.2sec)
Not yet supported from the old importer-
* Scaling down to a bounding area
* Importing multiple obj's at once
* Using existing materials in the .blend
* Importing as a group instance.
also make use of meshes faces.extend() indexList option- which means lots of checking can be removed.
indexList is not relyable at the moment so some files wont import but this will be fixed.
locations are: smart, middle, v1, and v2
where smart is an attempt to generate a loc that will collapse without loosing volume.
This can now collapse a subdivided cube properly.
before funky stuff like IPO bezier curve fitting etc are added.
* Fixed problem with zero length bones being removed.
* Sped up import by writing to ipo curves rather then inserting keyframes
* detect linear rate of change and ommit unneeded ipo points.
* cleanup
Added better docscrings
Added a texture baker for procedural textures,
Its able to make a WYSIWYG image from the texture, by using the texmesh property, so texture coords arnt lost up when flattening the mesh.
Use a high res image not to see any seams
Some optimizations and Ctrl will escape the script properly if you want to skip merging the islands.
Thanks to Melchior FRANZ for the report and debug blend
- bake wire
- bake image
- bake vcol
- bake normals
Fitting all the options for these into 1 PupBlock was not good.
An example of 4 different baking made from these scripts
http://members.iinet.net.au/~cpbarton/temp.png
* NMesh to Mesh
* Optimized vertex importing
* Import NGons properly and make them blender FGons
* lots of other small updates
image_bake_from_uvs - ignore meshes without faceUV's
bvh2arm was for importing empties in a BVH, direct bvh armature import should be good for next release. and Iv removed the Old bvh importer anyway.
Will add a slot in the imaeg meny for image scripts, renamed scripts to go there.
Added options to use material colors (can be multiplied with vcol)
Added wire option for UV Export type functionality. (implys no bleeding)
Added Option to render with no oversampling
changed alpha blending
Use a best fit mirror location to match pairs rather then bone names only.
Location matching works well, but name matching method can be added in also if its needed.
usefull for baking radiosity back into an image (with non overlapping UV's) and also has an option for including the texface image, and using normals (instead of colors)
Added BPyRender with a utility function to render off an ortho image from a number of objects.