blender.git
14 years ago==python scripts==
Willian Padovani Germano [Wed, 18 Jan 2006 02:20:48 +0000 (02:20 +0000)]
==python scripts==

Updated bvh to armatures script by Jean-Baptiste Perin (thanks).

14 years agofixed seam tearing with edge collapsing, should be last commit ;)
Campbell Barton [Wed, 18 Jan 2006 00:22:22 +0000 (00:22 +0000)]
fixed seam tearing with edge collapsing, should be last commit ;)

14 years agoAdded Mesh menu access for b-brush sculpter.
Campbell Barton [Wed, 18 Jan 2006 00:14:33 +0000 (00:14 +0000)]
Added Mesh menu access for b-brush sculpter.

14 years agoMoved script. Minor updates to subdivision and adaptive meshes.
Campbell Barton [Tue, 17 Jan 2006 23:50:06 +0000 (23:50 +0000)]
Moved script. Minor updates to subdivision and adaptive meshes.

14 years agomoving to bpydata because it cant be accessed from the menus
Campbell Barton [Tue, 17 Jan 2006 23:47:45 +0000 (23:47 +0000)]
moving to bpydata because it cant be accessed from the menus

14 years agoChanged the URL to be the Image filename sans path, not the image name.
Campbell Barton [Tue, 17 Jan 2006 22:13:25 +0000 (22:13 +0000)]
Changed the URL to be the Image filename sans path, not the image name.
Sped up intentation writing a bit..
Many more changes need to be applied here...

14 years ago==python scripts==
Tom Musgrove [Tue, 17 Jan 2006 21:04:12 +0000 (21:04 +0000)]
==python scripts==

slight updates and cleanups to vrml97 and x3d exporter,  the ability to do gzip compression has been added.  The redundant vrml exporter has been removed.  Thanks Bart

14 years agoFixed crash in pupmenu for image icons
Andrea Weikert [Tue, 17 Jan 2006 17:23:44 +0000 (17:23 +0000)]
Fixed crash in pupmenu for image icons

* Scaled down image can be smaller than icon - bad memory access
* Also needed to copy float buffer for exr images
* rectcpy only copied first row

There probably is some unnessary copying, will check with a little more time.
For now better be safe since it's no huge amount of mem that is copied.

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 16:32:09 +0000 (16:32 +0000)]
==python api==

epyDoc for insertShapeKey

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 11:34:33 +0000 (11:34 +0000)]
==python api==

tex2uvbaker and hotkeys update by jms

14 years agoSpeed up for edge list's
Campbell Barton [Tue, 17 Jan 2006 11:05:45 +0000 (11:05 +0000)]
Speed up for edge list's
Remove doubles on mouseup to minimizie editMode cycling.

14 years agoAdded edge collapsing when adaptive geometry enabled.
Campbell Barton [Tue, 17 Jan 2006 09:58:24 +0000 (09:58 +0000)]
Added edge collapsing when adaptive geometry enabled.

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 09:20:37 +0000 (09:20 +0000)]
==python api==

clarification of Blender.Mesh.Mode() tip

14 years ago==python api==
Tom Musgrove [Tue, 17 Jan 2006 06:47:48 +0000 (06:47 +0000)]
==python api==

patch from jean-michel soler (jms) - .insertShapeKey()

Python API, a function to insert a shape key in an object . It works on Mesh, Lattice curve ans surface .
Example of use :

import Blender
OBJECT=Blender.Object.GetSelected()[0]
OBJECT.insertShapeKey()

a docstring to follow soon

14 years ago==Python API==
Ken Hughes [Tue, 17 Jan 2006 06:18:43 +0000 (06:18 +0000)]
==Python API==
Added Mesh.Modes() function, which allows scripts to get/set the selection
mode settings for meshes.  This was necessary in order for the mesh tools
such as triangulate, remove doubles, etc., to work properly.

14 years agoFixed a problem with non mesh objects
Campbell Barton [Tue, 17 Jan 2006 06:14:52 +0000 (06:14 +0000)]
Fixed a problem with non mesh objects
Stopped seams from tearing away with xclip enabled.

14 years agoPatches submitted by Michael Reimpell to get/set relative key selection, and
Ken Hughes [Tue, 17 Jan 2006 06:12:53 +0000 (06:12 +0000)]
Patches submitted by Michael Reimpell to get/set relative key selection, and
to get the current value of the IPO shape key.  There are still some issues
to discuss as to whether methods/attributes should be used and what they
should be named, but this will (or should) be addressed in the upcoming API
rewrite.

14 years agoafter much suffering, got GE build and work almost cleanly on Os X
Jean-Luc Peurière [Mon, 16 Jan 2006 22:27:30 +0000 (22:27 +0000)]
after much suffering, got GE build and work almost cleanly on Os X
(with make, need to confirm with scons)

after cleaning the changes are in fact minimal, but the situation
is still quite a bit hackish.

Game engine coders, there is also quite a number of warnings that
need to be fixed.

current situation is that everything seems to work, but GLSL shaders
spew a lot of errors on console and blender may crash on exit when
a GLSL shader was used. ARB stuff works fine.

14 years ago==python scripts==
Tom Musgrove [Mon, 16 Jan 2006 21:42:53 +0000 (21:42 +0000)]
==python scripts==
updated version of bevel center by Loic Berthe

14 years agoFix for useing with modifiers, dosent check for subsurf flag when copying vgroups.
Campbell Barton [Mon, 16 Jan 2006 21:28:09 +0000 (21:28 +0000)]
Fix for useing with modifiers, dosent check for subsurf flag when copying vgroups.
Leaves all new objects selected.
Faster and cleaner operation- naming etc.

14 years ago* commented the version number check for empty display types so they are properly...
Matt Ebb [Mon, 16 Jan 2006 20:11:40 +0000 (20:11 +0000)]
* commented the version number check for empty display types so they are properly read on current files. This can be uncommented before this is released (a la camera stuff last time)

14 years agofixed a runtime problem with stl container usage, as reported on bf-committers mailin...
Erwin Coumans [Mon, 16 Jan 2006 19:34:52 +0000 (19:34 +0000)]
fixed a runtime problem with stl container usage, as reported on bf-committers mailing list

14 years agoclean up some warnings in bpy code
Stephen Swaney [Mon, 16 Jan 2006 17:55:03 +0000 (17:55 +0000)]
clean up some warnings in bpy code

14 years ago* added missing file
Joseph Gilbert [Mon, 16 Jan 2006 16:37:00 +0000 (16:37 +0000)]
* added missing file
- for some reason mesh_data types file was not in project

14 years ago*fixes global redefinitions
Joseph Gilbert [Mon, 16 Jan 2006 16:34:08 +0000 (16:34 +0000)]
*fixes global redefinitions
- added some extern keywords

14 years agoAlligned bone pose copy buttons (noticed in orange screenshot)
Campbell Barton [Mon, 16 Jan 2006 11:57:04 +0000 (11:57 +0000)]
Alligned bone pose copy buttons (noticed in orange screenshot)
Also found that Proportional edit button starts allign but dosent end align. Didnt chgange incase this is intended??
Take a look header_view3d.c:4390

14 years ago* Tiny tweak to button alignment after Campbell's commit.
Matt Ebb [Mon, 16 Jan 2006 11:27:50 +0000 (11:27 +0000)]
* Tiny tweak to button alignment after Campbell's commit.

Campbell, most of the changes you made seem ok, but you do have to be careful since it's not just about looking good, it's also about grouping things meaningfully. We did some thoughts on more concrete guidelines for this here: http://mediawiki.blender.org/index.php/BlenderDev/UIAlignRulesGuides

14 years agoAdded user interface to OBJ import.
Campbell Barton [Mon, 16 Jan 2006 06:33:55 +0000 (06:33 +0000)]
Added user interface to OBJ import.
With options.
('Material (*.mtl)', IMPORT_MTL, 'Imports material settings and images from the obj\'s .mtl file'),\
('All *.obj\'s in dir', IMPORT_DIR, 'Import all obj files in this dir (avoid overlapping data with "Create scene")'),\
('Create scene', IMPORT_NEW_SCENE, 'Imports each obj into its own scene, named from the file'),\
'Geometry...',\
('Edges', IMPORT_EDGES, 'Import faces with 2 verts as in edge'),\
('Smooths all faces', IMPORT_SMOOTH_ALL, 'Smooth all faces even if they are not in a smoothing group'),\

14 years agoHopefully clear up the last of the obj import bugs.
Campbell Barton [Mon, 16 Jan 2006 05:28:34 +0000 (05:28 +0000)]
Hopefully clear up the last of the obj import bugs.
* 8% speedup by using list comprehension.
* Slightly better smoothing group import.
* Handles bug in python that puts spaces before every line with '\r\n' line endings.

14 years agoBPython:
Willian Padovani Germano [Mon, 16 Jan 2006 03:51:32 +0000 (03:51 +0000)]
BPython:

- minor: added missing theme options (bone_solid, bone_pose, strip,
strip_select) to Blender.Window.Theme and also updated accordingly
(version info) the script that saves themes as scripts and the module's
doc.

14 years agoFixed Window.Editmode(0) so that it only calls undo_push_mesh() when
Ken Hughes [Mon, 16 Jan 2006 02:06:02 +0000 (02:06 +0000)]
Fixed Window.Editmode(0) so that it only calls undo_push_mesh() when
U.undosteps is nonzero.  Also added optional parameter to avoid pushing
undo info alltogether if desired.

14 years ago==python scripts==
Tom Musgrove [Sun, 15 Jan 2006 20:05:28 +0000 (20:05 +0000)]
==python scripts==
slight bug fix update to ply importer by Bruce Merry

14 years agoIn fixing for negative indicies I broke positive indicies. Fixed. not helped by the...
Campbell Barton [Sun, 15 Jan 2006 17:56:40 +0000 (17:56 +0000)]
In fixing for negative indicies I broke positive indicies. Fixed. not helped by the fact the files I had for testing were 32 and 70 meg..
ALso modified the MTL loader for Object.Get's new ValueError.
- Should be good for release now.

14 years agoRemoved printfs in setPoints(), add proper exception handling.
Ken Hughes [Sun, 15 Jan 2006 17:14:58 +0000 (17:14 +0000)]
Removed printfs in setPoints(), add proper exception handling.

14 years agolast of the cosmetic fixes with aligning buttons in the path setting/info win prefs...
Campbell Barton [Sun, 15 Jan 2006 14:47:16 +0000 (14:47 +0000)]
last of the cosmetic fixes with aligning buttons in the path setting/info win prefs area.

14 years agoMesh sculpting event handeler script,
Campbell Barton [Sun, 15 Jan 2006 14:44:09 +0000 (14:44 +0000)]
Mesh sculpting event handeler script,
see http://www.elysiun.com/forum/viewtopic.php?t=56101 for details,

14 years agoAligned all remaining non-aligned header buttons, (was looking yuck with rounded...
Campbell Barton [Sun, 15 Jan 2006 13:30:56 +0000 (13:30 +0000)]
Aligned all remaining non-aligned header buttons, (was looking yuck with rounded theme, hope this doesn't mess you up Broken)
Aligned filesel buttons|text entry- looked arse also.
Added tooltips for filesel text entry- "Type in dir to create" and "+/- increment" or somthing like that.
- Cam

14 years agomore graphics patches from Snailrose,
Erwin Coumans [Sun, 15 Jan 2006 11:34:55 +0000 (11:34 +0000)]
more graphics patches from Snailrose,
remove constraint fixed,
Bullet timestep now subdivides Blender game engine timestep, so it runs 60 hertz,
SphereShape reverted to old style, so no support for non-uniform scaled spheres for now,

14 years agoBugfix #3731: User reported that cyclic IPO curves reported the wrong value
Ken Hughes [Sat, 14 Jan 2006 22:05:16 +0000 (22:05 +0000)]
Bugfix #3731: User reported that cyclic IPO curves reported the wrong value
in the BPy API for the "end point".  It was a minunderstanding of what
happens with cyclic Ipos, but we updated the documentation to make this
clearer in the future.

14 years agoBug fix: #3684
Martin Poirier [Sat, 14 Jan 2006 20:52:39 +0000 (20:52 +0000)]
Bug fix: #3684

When grabing a camera in camera view, the constraint center wasn't the center used for initgrabz, so it messed up a lot.

14 years agofix previously fixed error msg.
Stephen Swaney [Sat, 14 Jan 2006 19:05:33 +0000 (19:05 +0000)]
fix previously fixed error msg.

14 years agoObject.Get( name ) was throwing an AttributeError.
Stephen Swaney [Sat, 14 Jan 2006 02:13:15 +0000 (02:13 +0000)]
Object.Get( name ) was throwing an AttributeError.
Change to throw more correct ValueError when name
is not found as per IRC discussion

14 years agoCam Barton discovered the setter for me.faces[i].col was missing.
Ken Hughes [Fri, 13 Jan 2006 17:22:53 +0000 (17:22 +0000)]
Cam Barton discovered the setter for me.faces[i].col was missing.

14 years ago* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error...
Joseph Gilbert [Fri, 13 Jan 2006 16:19:11 +0000 (16:19 +0000)]
* [ #3746 ] Calling getPose on a mesh object generates "RuntimeError: Pose - Error: PyPose_FromPose: Internal Error Ocurred"
- added returns where appropriate.

14 years ago*head/tail addition
Joseph Gilbert [Fri, 13 Jan 2006 15:53:22 +0000 (15:53 +0000)]
*head/tail addition
- forgot to add the ability to get pose head/tail positions
- no setters (yet) as they are calculated

14 years agoOrange: Display types and variable size for Empties.
Matt Ebb [Fri, 13 Jan 2006 15:50:32 +0000 (15:50 +0000)]
Orange: Display types and variable size for Empties.

This is using instructions from Ton, so hopefully the implementation is ok.
This is really needed here where we are using all sorts of wacky scales, and
empties look too big or too small. Of course we don't want to scale the
empties because there are often things parented to them.

New options are in edit buttons for empties to control the display style
and the size. New styles are easy to add, too. Just needs useful ideas and
minor effort from anyone who wants to.

Support for copying these values has also been added to the Copy Attributes
->Drawtype menu command.

14 years ago*bone.children fix
Joseph Gilbert [Fri, 13 Jan 2006 15:27:23 +0000 (15:27 +0000)]
*bone.children fix
- fixes bone.children to return direct bone children
- added bone.getAllChildren() to allow previous behavior

14 years agoFixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are...
Campbell Barton [Fri, 13 Jan 2006 15:26:15 +0000 (15:26 +0000)]
Fixed bug in importing OBJ files with negative indicies (UV and VERTS, normals are ignored)
Have alredy tested 100's of obj files and cant believe this is the first I have found with negative coords.
May fix the UI before 2.41, Importing a whole dir isnt very user friendly. and may want to support sequence import.
- Cam

14 years agoBugfix as provided by 'stealth apprentice' on the bf-comitters list.
Ton Roosendaal [Fri, 13 Jan 2006 12:14:13 +0000 (12:14 +0000)]
Bugfix as provided by 'stealth apprentice' on the bf-comitters list.
Function get_constraint_target() should catch the case when a constraint
has unknown type, to prevent a pointer to become unitialized.

14 years agoAnother bug fix for reference counting in extend methods.
Ken Hughes [Fri, 13 Jan 2006 07:11:30 +0000 (07:11 +0000)]
Another bug fix for reference counting in extend methods.

14 years agoSubsurf UV crasher fix - thanks Malefico and Matthew for test files.
Brecht Van Lommel [Fri, 13 Jan 2006 06:56:32 +0000 (06:56 +0000)]
Subsurf UV crasher fix - thanks Malefico and Matthew for test files.

14 years agomake clear that 'concave mesh' is really for static triangle mesh. too many people...
Erwin Coumans [Fri, 13 Jan 2006 01:00:35 +0000 (01:00 +0000)]
make clear that 'concave mesh' is really for static triangle mesh. too many people try to make it moving, it is for landscapes/static environment.

14 years ago==python scripts==
Tom Musgrove [Fri, 13 Jan 2006 00:24:23 +0000 (00:24 +0000)]
==python scripts==
added xfig exporter by Dino Ghilardi

ply import and export in previous commit were by Bruce Merry

14 years ago==python scripts==
Tom Musgrove [Thu, 12 Jan 2006 21:33:42 +0000 (21:33 +0000)]
==python scripts==
added ply import and export, extensively tested on files from

http://www.cs.virginia.edu/~gfx/Courses/2001/Advanced.spring.01/plymodels/

they give correct results for both import and export, however they could use some speed optimization for large mesh

14 years agobugfix: #3738 Armature bones returns none instead of key error
Stephen Swaney [Thu, 12 Jan 2006 21:21:41 +0000 (21:21 +0000)]
bugfix: #3738  Armature bones returns none instead of key error

BonesDict was returning None instead of throwing a KeyError
when key not found.
Also fixed a few compile warnings about struct initialization.

14 years agoOptimization -frerun-cse-after-loop (included with -O2) was
Chris Want [Thu, 12 Jan 2006 18:34:07 +0000 (18:34 +0000)]
Optimization -frerun-cse-after-loop (included with -O2) was
causing render to crash on cygwin with gcc 3.4.4. Changed
declaration of shadepixel() argument "int facenr" to volatile.
Can anybody recommend a more elegant solution?

14 years agoOrange:
Ton Roosendaal [Thu, 12 Jan 2006 15:46:29 +0000 (15:46 +0000)]
Orange:

- cleanup of color curves code; goes at least twice faster now!
  (includes black/white point stuff)
- When using 'Curves' in image window on a byte rect, it creates a (temp)
  float rect to operate on. So curves work for regular pictures too now.

14 years agoconvert IMB_rectop to IMB_rectcpy since IMB_rectop has been retired in
Kent Mein [Thu, 12 Jan 2006 15:36:02 +0000 (15:36 +0000)]
convert IMB_rectop to IMB_rectcpy since IMB_rectop has been retired in
orange.

Kent

14 years agoKen's 64bit patches weren't merged over to orange for some reason.
Kent Mein [Thu, 12 Jan 2006 15:27:20 +0000 (15:27 +0000)]
Ken's 64bit patches weren't merged over to orange for some reason.
This fixes that.

I'm going to see if there are other things that weren't merged over
as well.

Kent

14 years agoFixed a segfault in zooming out on long wave files- 6min+
Campbell Barton [Thu, 12 Jan 2006 13:34:55 +0000 (13:34 +0000)]
Fixed a segfault in zooming out on long wave files- 6min+

Was using shorts which couldent code with viewing many samples at once.

14 years agoRenamed clean_mesh.py to mesh_cleanup.py
Campbell Barton [Thu, 12 Jan 2006 12:39:14 +0000 (12:39 +0000)]
Renamed clean_mesh.py to mesh_cleanup.py
Rewrote to use Kens Mesh module, much faster, cleaner and nicer UI. - Another use for PupBlock.

14 years agoClean-up of some reference counting issues with delete() methods. Also
Ken Hughes [Thu, 12 Jan 2006 07:51:19 +0000 (07:51 +0000)]
Clean-up of some reference counting issues with delete() methods.  Also
further relax the input types for edge.extend() and face.extend() so that
single lists or tuples are accepted without errors.

14 years agorenamed some variables to make the timing in the game engine less confusing+minor...
Erwin Coumans [Thu, 12 Jan 2006 06:30:01 +0000 (06:30 +0000)]
renamed some variables to make the timing in the game engine less confusing+minor improvements in this area.
enabled game engine for scons

14 years agoAdded tri2quad script finds all possible quads to be made from selected triangle...
Campbell Barton [Thu, 12 Jan 2006 05:28:47 +0000 (05:28 +0000)]
Added tri2quad script finds all possible quads to be made from selected triangle pairs, then joins the best first until the error limit is reached.
Just Updated and faster 8.5sec to 0.6sec for 2k triangles in my test.
Also my fav new function PupBlock for the UI input!

14 years agoFixed a bug in boxpack that archimap not to clear data between uses, and become progr...
Campbell Barton [Thu, 12 Jan 2006 03:34:37 +0000 (03:34 +0000)]
Fixed a bug in boxpack that archimap not to clear data between uses, and become progressivly slower.
Updated Archimap to set UV's aslists (dont need to convert to tuples anymore)

14 years agooverlooked IMB_imbuf.h was already included inside an extern "C" section.
Erwin Coumans [Thu, 12 Jan 2006 01:37:33 +0000 (01:37 +0000)]
overlooked IMB_imbuf.h was already included inside an extern "C" section.

14 years agouncommented include "IMB_imbuf.h", it is needed?
Erwin Coumans [Thu, 12 Jan 2006 01:15:09 +0000 (01:15 +0000)]
uncommented include "IMB_imbuf.h", it is needed?

14 years agoBPy: Mathutils fix: bug #3737
Martin Poirier [Thu, 12 Jan 2006 01:11:42 +0000 (01:11 +0000)]
BPy: Mathutils fix: bug #3737
Vector.resize4D() didn't put 1 in the 4th component (the scale factor), as it did in 2.37.
While this is more "correct", it is much less usefull. Also, matrix.resize4x4 puts a 1 there too,
so might as well revert and be consistent.

14 years agore-enable game engine by default, for 2.41 preparation
Erwin Coumans [Thu, 12 Jan 2006 00:57:28 +0000 (00:57 +0000)]
re-enable game engine by default, for 2.41 preparation

14 years agoScons fix:
Martin Poirier [Thu, 12 Jan 2006 00:07:08 +0000 (00:07 +0000)]
Scons fix:

new BPy Pose files weren't added to Sconscript

14 years agoOrange: Ortho camera now gives correct z values for buffers too.
Ton Roosendaal [Wed, 11 Jan 2006 23:15:48 +0000 (23:15 +0000)]
Orange: Ortho camera now gives correct z values for buffers too.

14 years agoOrange;
Ton Roosendaal [Wed, 11 Jan 2006 22:36:31 +0000 (22:36 +0000)]
Orange;

Until now, the zbuffer was written straight from the internal zbuffer,
which has values that are inverse-proportional (like 1.0/z) which makes
it very hard to use it for postprocess, like zblur or other composit effects
that require Z.

Based on info from ILM, the values stored for Z in exr files is the
actual distance from a camera. I think that's about time to migrate to that
convention!

By default now, after render, the z values are converted to floats. This
saves in exr files now, but not in the Iris Z files. That latter was a
blender-only anyway, so might be not a real hassle to drop. :)

You can see the difference in the image window, but notice the range now
is linear mapped from camera clipstart to clipend.

Note; I just discover that ortho Z values need a different correction...

14 years agoremove Constraint.h since it doesn't exist.
Kent Mein [Wed, 11 Jan 2006 21:58:37 +0000 (21:58 +0000)]
remove Constraint.h since it doesn't exist.

Provided by Letterrip.

Kent

14 years ago- override the temporary disabling of KETSJI and OPENAL for FreeBSD.
Hans Lambermont [Wed, 11 Jan 2006 21:11:07 +0000 (21:11 +0000)]
- override the temporary disabling of KETSJI and OPENAL for FreeBSD.

14 years agoForgot the pose file.... :p
Joseph Gilbert [Wed, 11 Jan 2006 20:48:46 +0000 (20:48 +0000)]
Forgot the pose file.... :p

14 years ago*pose docs
Joseph Gilbert [Wed, 11 Jan 2006 20:44:24 +0000 (20:44 +0000)]
*pose docs
- some pose python documentation

14 years ago- sanitize spacings and tabs a bit. It's still not completely clean though.
Hans Lambermont [Wed, 11 Jan 2006 20:25:04 +0000 (20:25 +0000)]
- sanitize spacings and tabs a bit. It's still not completely clean though.

14 years ago*vc7 project file update
Joseph Gilbert [Wed, 11 Jan 2006 19:42:58 +0000 (19:42 +0000)]
*vc7 project file update
- adds pose to python project

14 years agoProbably need these....
Joseph Gilbert [Wed, 11 Jan 2006 19:41:01 +0000 (19:41 +0000)]
Probably need these....

14 years ago*pose code for python
Joseph Gilbert [Wed, 11 Jan 2006 19:40:06 +0000 (19:40 +0000)]
*pose code for python
- adds object.getPose
- ability to manipulate poses /posebones
- fixes a overflow bug in matrix sequence accessor
- adds code to get vec/roll from mat3
- few internal fixes to NLA
- ability to set bone matrices

14 years agoAt least FreeBSD needs to know where to find gl.h
Hans Lambermont [Wed, 11 Jan 2006 19:31:15 +0000 (19:31 +0000)]
At least FreeBSD needs to know where to find gl.h

14 years agoOrange: more float buffer support;
Ton Roosendaal [Wed, 11 Jan 2006 18:39:19 +0000 (18:39 +0000)]
Orange: more float buffer support;

- Image textures use float colors now, when present. Works for mipmap too,
  and for AO skycolor (probes)
- Backbuffer option uses float buffers too. Note that rendering OSA will
  resample the backbuffer, filtering it... will need to be solved with the
  new composit stage
- LMB sampling in image window now shows float color too

+ bugfix in imbuf, filtering for float buffers had an error.

14 years agoA few Mesh fixes:
Ken Hughes [Wed, 11 Jan 2006 18:37:47 +0000 (18:37 +0000)]
A few Mesh fixes:
* edge and face extend() methods now add edges and faces in the order given
  by their parameters.  Note that if duplicate edges or faces are specified,
  the order is preserved but the dups are removed, so indices won't match.
* allow extend(), findEdges() and faces.uv to accept lists or tuples
* fix bug in mesh.verts.extend() which didn't correctly check argument types

14 years agoExclude labels from grouping. - Clever numbuts look nicer with rounded theme.
Campbell Barton [Wed, 11 Jan 2006 16:55:31 +0000 (16:55 +0000)]
Exclude labels from grouping. - Clever numbuts look nicer with rounded theme.

14 years agoOrange: Added an option in View Properties panel to disable drawing of 'relationship...
Matt Ebb [Wed, 11 Jan 2006 14:51:24 +0000 (14:51 +0000)]
Orange: Added an option in View Properties panel to disable drawing of 'relationship lines' - i.e. the dashed lines that connect objects in parent/constraint/hook/IK relationships. After talking to the others I rolled the Armature-specific one into the same setting for simplicity's sake. We can see how it goes, always possible to put it back.

14 years agoOrange: Added an option in View Properties panel to disable drawing of 'relationship...
Matt Ebb [Wed, 11 Jan 2006 14:44:23 +0000 (14:44 +0000)]
Orange: Added an option in View Properties panel to disable drawing of 'relationship lines' - i.e. the dashed lines that connect objects in parent/constraint/hook/IK relationships. After talking to the others I rolled the Armature-specific one into the same setting for simplicity's sake. We can see how it goes, always possible to put it back.

14 years agoOrange: ImageWindow goodies
Ton Roosendaal [Wed, 11 Jan 2006 14:20:35 +0000 (14:20 +0000)]
Orange: ImageWindow goodies

- options to show with alpha-over (checkered backdrop), only alpha (BW) and
  when available: the zbuffer.
  Note: it's icons in the header, I just re-used existing ones, no time now
  for fancy design. :)

Also: recoded the way alpha-only draws, also in renderwindow. Mucho faster!

Oh, and sampling the buffer with LMB now displays z values in float range
of 0.0 to 1.0. Note that we still save signed int in files for Z...

14 years agoattempt to avoid nameclashes (although it is already in a namespace) -> extension...
Erwin Coumans [Wed, 11 Jan 2006 13:31:45 +0000 (13:31 +0000)]
attempt to avoid nameclashes (although it is already in a namespace) -> extension names renamed from glXXX to blXXX.

14 years agoOrange: tested all EXR demo images from openexr.com, found two issues;
Ton Roosendaal [Wed, 11 Jan 2006 10:41:04 +0000 (10:41 +0000)]
Orange: tested all EXR demo images from openexr.com, found two issues;

- images with a so-called "data window" (have negative start coordinate)
  did not read correctly
- negative colors were not clamped yet in imbuf

Now there's still some compliancy issues with zbuffers... you can save
it either as unsigned int or as float, whilst blender renders zbuffer in
signed int. :)

14 years agoFixed a silly bug when copying images.
Campbell Barton [Wed, 11 Jan 2006 10:12:03 +0000 (10:12 +0000)]
Fixed a silly bug when copying images.

14 years agoupdate to obj export:
Campbell Barton [Wed, 11 Jan 2006 09:47:17 +0000 (09:47 +0000)]
update to obj export:
Added options.
pup_block = [\
('Apply Modifiers', EXPORT_APPLY_MODIFIERS, 'Use transformed mesh data from each object. May break vert order for morph targets.'),\
('Selection Only', EXPORT_SEL_ONLY, 'Only export objects in visible selection.'),\
('Edges', EXPORT_EDGES, 'Edges not connected to faces.'),\
('Normals', EXPORT_NORMALS, 'Export vertex normal data (Ignored on import).'),\
('Materials', EXPORT_MTL, 'Write a seperate MTL file with the OBJ.'),\
('All Scenes', EXPORT_ALL_SCENES, 'Each scene as a seperate OBJ file.'),\
('Animation', EXPORT_ANIMATION, 'Each frame as a seperate OBJ file.'),\
('Copy Images', EXPORT_COPY_IMAGES, 'Copy image files to the export directory, never everwrite.'),\
]

Obj import was updated to import edges (2 vert faces), will update some more later.

14 years agoMSVC6 projects for happy GE compiling
Jens Ole Wund [Wed, 11 Jan 2006 09:13:59 +0000 (09:13 +0000)]
MSVC6 projects for happy GE compiling

14 years agobullet in the orange branch seems to be merged incorrectly. updated to the latest...
Erwin Coumans [Wed, 11 Jan 2006 06:24:18 +0000 (06:24 +0000)]
bullet in the orange branch seems to be merged incorrectly. updated to the latest version

14 years agoFixed bug in do_clever_numbuts not displaying tooltips.
Campbell Barton [Wed, 11 Jan 2006 04:03:19 +0000 (04:03 +0000)]
Fixed bug in do_clever_numbuts not displaying tooltips.
Comment:
Clear all events so tooltips work, this is not ideal and
only needed because calls from the menu still have some events
left over when do_clever_numbuts is called.
Calls from keyshortcuts do not have this problem.

14 years agoFor windows, NAN_NO_KETSJI was always set to false (as a result of
Chris Want [Wed, 11 Jan 2006 03:23:47 +0000 (03:23 +0000)]
For windows, NAN_NO_KETSJI was always set to false (as a result of
some strange merging). Unfortunately, Bullet doesn't build correctly
for gcc under cygwin (some private vs public stuff), so it is
important to be able to disable the game engine in these circumstances.

14 years agoOrange: Added Alpha viewing option in Image window.
Ton Roosendaal [Wed, 11 Jan 2006 00:08:02 +0000 (00:08 +0000)]
Orange: Added Alpha viewing option in Image window.

14 years agoTuesday merger of bf-blender into orange branch.
Ton Roosendaal [Tue, 10 Jan 2006 22:10:14 +0000 (22:10 +0000)]
Tuesday merger of bf-blender into orange branch.

14 years agoOrange: more work on float/exr buffers;
Ton Roosendaal [Tue, 10 Jan 2006 21:41:37 +0000 (21:41 +0000)]
Orange: more work on float/exr buffers;

- EXR now saves and reads Zbuffers correctly
- EXR reading didn't set alpha to 1 yet when no alpha buffer was present

- ImageWindow: the "black point" only checked for the r value... now is OK
- ImageWindow: Curves panal has button "reset"
- ImageWindow: hold LMB drag shows rgba and z values. With SHIFT or CTRL it
  applies black/white point whilte dragging too
- ImageWindow: saving file copied the entire buffer... removed that. Also
  made the header print clear; this save only saves in own file type.

- Curves: zoom and drag now gets clamped by the Clipping value

- Imbuf: duplicate buffer only copied one quarter of to new buffer

14 years agoOrange:
Ton Roosendaal [Tue, 10 Jan 2006 19:23:11 +0000 (19:23 +0000)]
Orange:
Accidentally didn't disable the tests I did for 'translucent raytrace',
a cheapskate SSS method;

http://www.blender.org/bf/rt.jpg
http://www.blender.org/bf/rt1.jpg

It slowed down render too much, was default on... but invisible! It needed
the F10 buttons "rt" to be huge (600-1000)

14 years agoremoved slow list handeling
Campbell Barton [Tue, 10 Jan 2006 17:40:50 +0000 (17:40 +0000)]
removed slow list handeling
faster vert comparisons
replaced spaces for tabs
removed unneeded getData() calls
general cleanup.