blender.git
12 years agoMerge from trunk
Andre Susano Pinto [Tue, 3 Jun 2008 19:27:46 +0000 (19:27 +0000)]
Merge from trunk
svn merge -r 15064:15104 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agoRemoved BLI_kdopbvh
Andre Susano Pinto [Tue, 3 Jun 2008 19:20:57 +0000 (19:20 +0000)]
Removed BLI_kdopbvh

12 years agoCollision commit code cleanup for nicer compile
Daniel Genrich [Tue, 3 Jun 2008 19:06:54 +0000 (19:06 +0000)]
Collision commit code cleanup for nicer compile

12 years agoCollisions: Commit of collision cleanup, put kdop-bvh structure into BLI_kdopbvh...
Daniel Genrich [Tue, 3 Jun 2008 18:48:54 +0000 (18:48 +0000)]
Collisions: Commit of collision cleanup, put kdop-bvh structure into BLI_kdopbvh (just like kdtree interface now), huge speedup for selfcollisions, also better normal collisions (merge from cloth branch)

12 years agoA few compiler warning fixes. Those in BME_customdata.c were more serious.
Joshua Leung [Tue, 3 Jun 2008 10:04:42 +0000 (10:04 +0000)]
A few compiler warning fixes. Those in BME_customdata.c were more serious.

12 years agoBugfix #13603:
Joshua Leung [Tue, 3 Jun 2008 10:00:09 +0000 (10:00 +0000)]
Bugfix #13603:

Action Editor Copy/Paste didn't trigger a depsgraph update for the active object (if the action was applied to it).

12 years ago== REDCODE ==
Peter Schlaile [Tue, 3 Jun 2008 06:42:13 +0000 (06:42 +0000)]
== REDCODE ==

got #endif position wrong, breaking compile without redcode, sorry.
(Thanks to jms for pointing that out)

12 years agoincrease the level you can zoom out (andy's timelapse videos were a pain to edit)
Campbell Barton [Tue, 3 Jun 2008 01:01:47 +0000 (01:01 +0000)]
increase the level you can zoom out (andy's timelapse videos were a pain to edit)

12 years ago== REDCODE ==
Peter Schlaile [Mon, 2 Jun 2008 22:02:26 +0000 (22:02 +0000)]
== REDCODE ==

Forgot to free redcontext in IMB_free_anim...

12 years ago== redcode ==
Peter Schlaile [Mon, 2 Jun 2008 21:39:45 +0000 (21:39 +0000)]
== redcode ==

Disabled by default now on all platforms besides Linux.

12 years ago== RED one (redcode) ==
Peter Schlaile [Mon, 2 Jun 2008 21:35:57 +0000 (21:35 +0000)]
== RED one (redcode) ==

This adds redcode (the file format of RED one, R3D) support to blender.
Seems to work fine with the footage I found on the web, but keep in
mind, that because of the unoptimized nature of libopenjpeg, frame
decoding isn't that fast.

It is also a rather challenging task, to make 4k-float-footage realtime :)

12 years ago-> More Bmesh Custom Data stuff
Geoffrey Bantle [Mon, 2 Jun 2008 20:52:40 +0000 (20:52 +0000)]
-> More Bmesh Custom Data stuff

Some more Bmesh custom data functions and
structures. This still does not do anything
yet because the various conversion functions
don't bother making use of the new custom data
functions. Hooking them up should be fairly
simple though.

Also note that the custom data code is mostly
copy/pasted from the existing custom data
functions for editmode with a few modifications.
Duplicating code like this isn't nice, but I
felt it was better to keep things for Bmesh
'standalone' for the moment and take only what is
immediatly needed instead of creating
a tangle of interdependant code.

12 years agoPatch #11000 approved: [new function] KX_GameObject::alignAxisToVect() Align an objec...
Benoit Bolsee [Mon, 2 Jun 2008 17:31:05 +0000 (17:31 +0000)]
Patch #11000 approved: [new function] KX_GameObject::alignAxisToVect() Align an object's axis to a given vector

12 years agoAdded missing newline for error print in Py-button expressions
Joshua Leung [Mon, 2 Jun 2008 02:54:33 +0000 (02:54 +0000)]
Added missing newline for error print in Py-button expressions

12 years agoCompiler warning fixes (unused vars).
Joshua Leung [Mon, 2 Jun 2008 01:02:08 +0000 (01:02 +0000)]
Compiler warning fixes (unused vars).

Notes:
- edgehash.c still has some weirdo code causing warnings on lines 80 and 117
i.e.  if (v1<v0) v0 ^= v1 ^= v0 ^= v1;
- material.c (in pyapi) apparently doesn't seem to be making use of some functions for glossy stuff

12 years ago-> Fix for last few commits
Geoffrey Bantle [Sun, 1 Jun 2008 18:43:22 +0000 (18:43 +0000)]
-> Fix for last few commits

New memory allocator broke compilation on
GCC/Linux. Fixed

12 years ago-> Beginning of Custom Data support for BMesh
Geoffrey Bantle [Sun, 1 Jun 2008 18:02:29 +0000 (18:02 +0000)]
-> Beginning of Custom Data support for BMesh

Now that new allocator is in place, Custom Data
can be effeciently added to BMesh. The plan is to
make all data not directly related to topology
Custom Data and allow callers to decide precisely
what information a mesh should have in order to
make the best tradeoff between memory usage/speed.

Right now not much to look at, just some structure
definitions and commented out code. More to come
soon...

12 years ago-> New memory allocator for Bmesh
Geoffrey Bantle [Sun, 1 Jun 2008 17:15:03 +0000 (17:15 +0000)]
-> New memory allocator for Bmesh

Added a new pooling allocator for Bmesh based upon
the pool allocator availible in the Boost C++ library
as described here:

http://www.boost.org/doc/libs/1_34_0/libs/pool/doc/concepts.html

Each pool allocates elements of a fixed size, so every
element type in a mesh gets its own pool. For instance
verts occupy a different pool than edges. Each pool
is comprised of multiple arrays of a fixed size and allocating
/freeing elements is simple as removing or adding a head
to a linked list. Since the list of free elements is interleaved
throughout the unused space in the arrays, the overhead
for storing the free list is only 1 pointer total per pool.

This makes building/destroying bmesh structures much faster
and saves quite a bit of memory as well.

12 years agofunctionality fix
Campbell Barton [Sun, 1 Jun 2008 16:13:04 +0000 (16:13 +0000)]
functionality fix
Originally the only way to run scripts automatically was with scriptlinks, which could be disabled for loading untrusted blend files.
Since then PyDrivers and PyConstraints would run even when G.f&G_DOSCRIPTLINKS was disabled.
Gensher, Theeth and Ianwill agree its acceptable to reuse the flag for other areas python runs automatically.

PyNodes still have no way to be disabled, (todo before 2.46a)

12 years ago== FFMPEG ==
Peter Schlaile [Sun, 1 Jun 2008 14:37:09 +0000 (14:37 +0000)]
== FFMPEG ==

Shouldn't crash any more in the case that
a) invalid video options were selected
and
b) audio multiplexing was active

[#13311] video_stream NULL when writing ffmpeg

(did'nt crash for me though, but added extra protection :) )

12 years agobugfix (typo) [#13587] Python API Material.sssFront broken
Campbell Barton [Sun, 1 Jun 2008 13:18:26 +0000 (13:18 +0000)]
bugfix (typo) [#13587] Python API Material.sssFront broken

12 years ago-Fix for bug #13067
Geoffrey Bantle [Sun, 1 Jun 2008 01:56:35 +0000 (01:56 +0000)]
-Fix for bug #13067

Bevel tool was hanging on certain geometry where the edge
to be beveled was shared by two faces that had more than
one edge in common and caller was not checking return
status of Bmesh eulers. Fixed.

12 years agobugfix for own error
Campbell Barton [Sun, 1 Jun 2008 01:49:11 +0000 (01:49 +0000)]
bugfix for own error
[#13588] Python API Material.sssRadiusBlue broken

12 years agoMerging revisions 15020-15073 of https://svn.blender.org/svnroot/bf-blender/trunk... cloth
Daniel Genrich [Sat, 31 May 2008 21:23:57 +0000 (21:23 +0000)]
Merging revisions 15020-15073 of https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agobugfix for own error
Campbell Barton [Sat, 31 May 2008 19:08:12 +0000 (19:08 +0000)]
bugfix for own error
glitch when typing in / would ask the user to make a new directory. the last shash was being removed, then the "" path didnt exist and
asked to create it.

12 years agobufgfix for [#13584] SIGSEV in fluid bake with large amount of small fluid objects
Campbell Barton [Sat, 31 May 2008 19:01:14 +0000 (19:01 +0000)]
bufgfix for [#13584] SIGSEV in fluid bake with large amount of small fluid objects
the maximum number of objects (255) wasnt being checked, added a check before baking.
also changed bakeing to use G.scene->base rather then G.main->objects since these can be in other scenes, from linked
groups, or used only by python so they should not be used for baking. it also meant having a domain in 2 scenes would fail with an error.

Nils, could be good to have a dynamic number of bakeable objects.

12 years agobugfix
Campbell Barton [Sat, 31 May 2008 16:22:07 +0000 (16:22 +0000)]
bugfix
* [#13394] Sequencer: if internal strips have handles selected, dragging the metastrip changes the meta length
* Extend did not work correctly on metastrips when the nested seq's are out of the meta's frame range, added an argument to seq_tx_get_final_left/right
that returns the frame clipped by metastrip(s) if any.

12 years agobugfix for own error, introduced when running scripts were saved with the blend file.
Campbell Barton [Sat, 31 May 2008 12:12:03 +0000 (12:12 +0000)]
bugfix for own error, introduced when running scripts were saved with the blend file.
a script error with a script that has an interface would not stop the interface from running again immediately, causing an annoying
error message loop.

12 years agoAdded culling on normal projection.
Andre Susano Pinto [Sat, 31 May 2008 01:25:24 +0000 (01:25 +0000)]
Added culling on normal projection.
Now renderdemon is happy ;)
and now shrinkwrap can be used for bulging :)

12 years agoMerge from trunk
Andre Susano Pinto [Fri, 30 May 2008 20:33:33 +0000 (20:33 +0000)]
Merge from trunk
svn merge  -r 14954:15064 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years ago== PyNodes ==
Willian Padovani Germano [Fri, 30 May 2008 20:04:52 +0000 (20:04 +0000)]
== PyNodes ==

Bug #13277, reported by Juho (bebraw) Vepsalainen (thanks!) - a typo made pynodes w/o input socket definitions fail with an out of range error when accessing the output sockets in the script.

12 years agoThis is patch [#9057] Updated doc string to match current defines
Kent Mein [Fri, 30 May 2008 19:52:42 +0000 (19:52 +0000)]
This is patch [#9057] Updated doc string to match current defines

also submitted by gsr

It just updates a comment to correct values.

Kent

12 years agoThis is patch [#9053] More concrete makesdna reporting
Kent Mein [Fri, 30 May 2008 19:46:48 +0000 (19:46 +0000)]
This is patch [#9053] More concrete makesdna reporting
Submitted by gsr

It just makes the printf's all different so you can tell where the problem
is.

Kent

12 years agoFix crash with hidden bezier handles
Martin Poirier [Fri, 30 May 2008 09:05:09 +0000 (09:05 +0000)]
Fix crash with hidden bezier handles

See Cambo, that's why we have module owners.

12 years agobugfix
Campbell Barton [Fri, 30 May 2008 01:59:15 +0000 (01:59 +0000)]
bugfix
* scene.object.context and scene.object.selected had broken get_item
funcs so scene.object.context[i]  returned the wrong object.
* aligning the view to an object (numpad*key), did not disable the
ortho view grid.
* long standing problem where opening a relative image would fail with
no message. BLI_convertstringcode was returning a path with /../../'s
that need to be cleaned before the path could be read, the path was also
invalid from unix shell so its not a blender path reading problem.

12 years agoReverted win installer to give 'current user' option only for Application Data.
Simon Clitherow [Thu, 29 May 2008 21:12:11 +0000 (21:12 +0000)]
Reverted win installer to give 'current user' option only for Application Data.
Added shfolder.lib linking for win9x SHGetFolderPath() support.

12 years agoTransform Orientations
Martin Poirier [Thu, 29 May 2008 19:10:09 +0000 (19:10 +0000)]
Transform Orientations

Edit Bone and Pose Bone can now be used as transform orientations

Also fix a bug with CTO comming from non-uniformally scaled meshes.

12 years ago-= Collisions =-
Daniel Genrich [Thu, 29 May 2008 14:23:08 +0000 (14:23 +0000)]
-= Collisions =-
Getting some weird results on moving fast edges. This is a backup commit, will try another thing

12 years agoAnother bugfix for Fill Bone Between Joints. Changed the order that bones are created...
Joshua Leung [Thu, 29 May 2008 06:14:53 +0000 (06:14 +0000)]
Another bugfix for Fill Bone Between Joints. Changed the order that bones are created between 'head'/'tail' points

12 years agoFill Bone Between Joints:
Joshua Leung [Thu, 29 May 2008 01:04:12 +0000 (01:04 +0000)]
Fill Bone Between Joints:

This tool now parents the newly created bone to whichever bone acted as it's 'head' point. It also sets the connected-to-parent flag.

12 years agoBug fix: [#13268] Crash when creating a new particle system
Janne Karhu [Wed, 28 May 2008 23:38:40 +0000 (23:38 +0000)]
Bug fix: [#13268] Crash when creating a new particle system
-Ugh.. sorry about that.. damn default cube with it's default material!

12 years agobugfix for own bug. mousewheel while playing in the sequencer crashes blender.
Campbell Barton [Wed, 28 May 2008 21:15:40 +0000 (21:15 +0000)]
bugfix for own bug. mousewheel while playing in the sequencer crashes blender.

12 years agoFix for bug #13224: vertex parenting didn't work correct with
Brecht Van Lommel [Wed, 28 May 2008 18:11:45 +0000 (18:11 +0000)]
Fix for bug #13224: vertex parenting didn't work correct with
multiple unconnected curves.

12 years agoFix for bug #13230: particle mirror could fail on some faces.
Brecht Van Lommel [Wed, 28 May 2008 17:55:06 +0000 (17:55 +0000)]
Fix for bug #13230: particle mirror could fail on some faces.

12 years agoSmall fix for last AO sphere sampling bugfix, didn't update
Brecht Van Lommel [Wed, 28 May 2008 17:42:03 +0000 (17:42 +0000)]
Small fix for last AO sphere sampling bugfix, didn't update
random sampling code as well.

12 years agoFix for bug: [#11680] "Col" option for particle systems does not work correctly with...
Janne Karhu [Wed, 28 May 2008 17:16:43 +0000 (17:16 +0000)]
Fix for bug: [#11680] "Col" option for particle systems does not work correctly with Mat IPOs
-the feature simply was not coded

12 years agobugfix for baking AO with greater then 16 samples, since it was being clamped in...
Campbell Barton [Wed, 28 May 2008 17:13:15 +0000 (17:13 +0000)]
bugfix for baking AO with greater then 16 samples, since it was being clamped in sphere_sampler but not in ray_ao_spheresamp that calls it. giving uneven art deco
results.

12 years agobugfix
Campbell Barton [Wed, 28 May 2008 00:44:41 +0000 (00:44 +0000)]
bugfix
* python api render() would clamp the endframe to a short.
* python api's render() and renderAnim() would not render compositing because the name they gave to RE_NewRender was NOT G.scene->id.name, added comments to
G.scene->id.name

12 years agoMerging revisions 14946-15020 of https://svn.blender.org/svnroot/bf-blender/trunk...
Daniel Genrich [Tue, 27 May 2008 23:15:08 +0000 (23:15 +0000)]
Merging revisions 14946-15020 of https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years ago-= Collisions -=
Daniel Genrich [Tue, 27 May 2008 22:46:57 +0000 (22:46 +0000)]
-= Collisions -=
1. Test for fast moving edges

12 years ago-= KDOP / Collisions =-
Daniel Genrich [Tue, 27 May 2008 22:42:38 +0000 (22:42 +0000)]
-= KDOP / Collisions =-
1. Fix for face with index=0 not handled

12 years agoEnabled EditMode on shrinkwrap modifier
Andre Susano Pinto [Tue, 27 May 2008 22:39:00 +0000 (22:39 +0000)]
Enabled EditMode on shrinkwrap modifier

12 years ago[#10223] a new object function to add vertex group from an armature
Martin Poirier [Tue, 27 May 2008 20:02:38 +0000 (20:02 +0000)]
[#10223] a new object function to add vertex group from an armature

Patch from Jean-Michel Soler (with slight modifs)

Small BPy feature to help script writers deal with armatures and vertex groups (calls the bone heat method to create and assign groups)

12 years agoFixed a compile error under msvc.
Andre Susano Pinto [Tue, 27 May 2008 18:40:33 +0000 (18:40 +0000)]
Fixed a compile error under msvc.

12 years agoAdded bvh nearest neighbour for nearest surface shrinkwrap
Andre Susano Pinto [Tue, 27 May 2008 18:32:23 +0000 (18:32 +0000)]
Added bvh nearest neighbour for nearest surface shrinkwrap

12 years agoAnother fix for bug #11140: explode modifier was still using more
Brecht Van Lommel [Tue, 27 May 2008 15:36:36 +0000 (15:36 +0000)]
Another fix for bug #11140: explode modifier was still using more
memory than needed.

12 years agobugfix for zero area faces and adding uv layers was not checking if the
Campbell Barton [Tue, 27 May 2008 15:14:35 +0000 (15:14 +0000)]
bugfix for zero area faces and adding uv layers was not checking if the
UV layer existed alredy.

12 years agobugfix, edges with no faces raised an error.
Campbell Barton [Tue, 27 May 2008 13:32:10 +0000 (13:32 +0000)]
bugfix, edges with no faces raised an error.

12 years agoFix for bug #12463: hair didn't draw z-buffered in wireframe mode.
Brecht Van Lommel [Tue, 27 May 2008 13:26:52 +0000 (13:26 +0000)]
Fix for bug #12463: hair didn't draw z-buffered in wireframe mode.
Instead of making it an exception compared to other objects which
don't draw z-buffered either, it now draws without lighting in the
wire color like it did before.

12 years agoFix for #12526: still didn't get dupli transform in envmaps correct.
Brecht Van Lommel [Tue, 27 May 2008 11:05:33 +0000 (11:05 +0000)]
Fix for #12526: still didn't get dupli transform in envmaps correct.

12 years agoFix for bug #12533: color picker didn't always redraw rgb/hsv/hex values.
Brecht Van Lommel [Tue, 27 May 2008 11:01:31 +0000 (11:01 +0000)]
Fix for bug #12533: color picker didn't always redraw rgb/hsv/hex values.

12 years agoremoving this script, should have been removed for 2.46 since the
Campbell Barton [Tue, 27 May 2008 09:46:35 +0000 (09:46 +0000)]
removing this script, should have been removed for 2.46 since the
functionality is avalable in the UV snap menu.

12 years agoFix for bug #12806: compositor nodes with use nodes disabled
Brecht Van Lommel [Tue, 27 May 2008 09:41:43 +0000 (09:41 +0000)]
Fix for bug #12806: compositor nodes with use nodes disabled
didn't properly redraw the node window on changes.

12 years agobugfix for view naming, pressing numpad5 would clear the V3D_OPP_DIRECTION_NAME flag...
Campbell Barton [Tue, 27 May 2008 08:51:47 +0000 (08:51 +0000)]
bugfix for view naming, pressing numpad5 would clear the V3D_OPP_DIRECTION_NAME flag even though it wont switch the view direction.

12 years agoFixed some compile erros under msvc (thanks lguillaume)
Andre Susano Pinto [Mon, 26 May 2008 21:57:53 +0000 (21:57 +0000)]
Fixed some compile erros under msvc (thanks lguillaume)
Fixed object dependency (thanks ZanQdo for pointing it out)
Make some code cleaner
(preparing for adding bvh trees on nearest surface)

12 years agobugfix, copy posebone constraints didnt update properly, canceling transform would...
Campbell Barton [Mon, 26 May 2008 20:43:35 +0000 (20:43 +0000)]
bugfix, copy posebone constraints didnt update properly, canceling transform would not reset the bone back to its original state. need to set teh flag "ob->pose->flag |=
POSE_RECALC", which is alredy done on adding a constraint.
back
to

12 years agobugfix for crasher from Cedric Paille via bf-committers.
Stephen Swaney [Mon, 26 May 2008 15:12:20 +0000 (15:12 +0000)]
bugfix for crasher from Cedric Paille via bf-committers.

12 years agoBug fix
Martin Poirier [Mon, 26 May 2008 12:52:28 +0000 (12:52 +0000)]
Bug fix

Force proportional editing flag off in object mode.

While it didn't have any effect on objects themselves, it could display the falloff mode (Smooth) in the header. The bug was purely cosmetic.

12 years agowhen cyclic is enabled the knots would always be generated with uniform nurbs but...
Campbell Barton [Mon, 26 May 2008 12:50:00 +0000 (12:50 +0000)]
when cyclic is enabled the knots would always be generated with uniform nurbs but after, cyclic nurbs would be incorrect if the bezier or endpoint u/v was set.
also replaced some numbers with constants.

12 years ago-= Collisions =-
Daniel Genrich [Mon, 26 May 2008 10:36:14 +0000 (10:36 +0000)]
-= Collisions =-
1. fix for collisions (were working better with selfcolls enabled, now generally better)

12 years ago* The displist would be uninitialized when nurbs bezieru/v was set and the order...
Campbell Barton [Mon, 26 May 2008 09:50:46 +0000 (09:50 +0000)]
* The displist would be uninitialized when nurbs bezieru/v was set and the order wasnt 3 or 4. add a function that checks nurbs can produce a valid line. check_valid_nurb_u/v
* when check_valid_nurb_u/v fails, no curve is allocated or drawn.
* knotsu/v could be NULL but some functions didn't check for this, make sure this is checked for everywhere.
* The interface didnt change check the order when the bezier u/v flag was set, added functions clamp_nurb_order_u/v that takes into accound the number of points and the bezier u/v flag.

12 years ago-= Cloth =-
Daniel Genrich [Mon, 26 May 2008 09:39:32 +0000 (09:39 +0000)]
-= Cloth =-
1. Fix selfcollisions (reported by nudelZ)

12 years agothe last selected nurbs curve lastnu could become an invalid pointer in places, acces...
Campbell Barton [Sun, 25 May 2008 23:05:13 +0000 (23:05 +0000)]
the last selected nurbs curve lastnu could become an invalid pointer in places, access this via functions now and store an index
rather then a pointer so if it becomes invalid it will just return a NULL pointer.

12 years agoCommit patch #9059 by gsrb3d
Diego Borghetti [Sun, 25 May 2008 21:11:34 +0000 (21:11 +0000)]
Commit patch #9059 by gsrb3d

Unnecesary include path in Makefile.

12 years agoBug fix in X-Mirror for armatures
Martin Poirier [Sun, 25 May 2008 21:05:13 +0000 (21:05 +0000)]
Bug fix in X-Mirror for armatures

When a bone in a mirrored chain wasn't named properly, it would leave the head or tail in an invalid state.

Now it applies the mirror to connected joints that are mirrored.

12 years agopatch [#11491] Fix for bug 11362: Blender.Draw.Image() method does not clip properly
Campbell Barton [Sun, 25 May 2008 16:39:57 +0000 (16:39 +0000)]
patch  [#11491] Fix for bug 11362: Blender.Draw.Image() method does not clip properly
fixing [#11362] Blender.Draw.Image() method does not clip properly
also return silently on zero zoomlevel rather then raising an error, only raise an error on negative values.

12 years ago== Sequencer ==
Peter Schlaile [Sun, 25 May 2008 16:07:32 +0000 (16:07 +0000)]
== Sequencer ==

Fixes
[#12106] Memory leak in sequencer (>10MB/frame)

in parts: inner contents of meta strips are freed up after calculation
making more room for the cache.

Actually have to think of a mechanism, that remembers, which output
frames are asked for and caches only those.

12 years agoMerge BVH tree fixes from cloth branch
Andre Susano Pinto [Sun, 25 May 2008 15:47:54 +0000 (15:47 +0000)]
Merge BVH tree fixes from cloth branch
svn merge -r 14954:14963 https://svn.blender.org/svnroot/bf-blender/branches/cloth/blender/source/blender/blenlib/BLI_kdopbvh.h
svn merge -r 14954:14963 https://svn.blender.org/svnroot/bf-blender/branches/cloth/blender/source/blender/blenlib/intern/BLI_kdopbvh.c

12 years agoAdded BVH nearest neighbour code, for now only works in 6-dop and finds the node...
Andre Susano Pinto [Sun, 25 May 2008 15:43:18 +0000 (15:43 +0000)]
Added BVH nearest neighbour code, for now only works in 6-dop and finds the node with the nearest bounding volume.
I'll work on making it more generic.
So far it querys faster than kdtree, but building the tree is slower.
And bvhtree NN uses an heuristic based on the last match.

Shrinkwrap (OBCube)24578 over (OBSuzanne)31658
kdtree
build: 30.000000ms
query: 1360.000000ms

bvhtree
build: 140.000000ms
query: 490.000000ms

Shrinkwrap now uses bvhtree (binary tree, 6dop) for nearest vertex.

12 years ago[#11124] Hide Threshold button when Constant QMC sampling enabled
Martin Poirier [Sun, 25 May 2008 14:39:55 +0000 (14:39 +0000)]
[#11124] Hide Threshold button when Constant QMC sampling enabled

Patch by Olivier Saraja

12 years agoApply BGE patch 11137: Render objects with negative scaling correctly (as in Blender)
Benoit Bolsee [Sun, 25 May 2008 14:37:39 +0000 (14:37 +0000)]
Apply BGE patch 11137: Render objects with negative scaling correctly (as in Blender)

12 years ago-== kdop ==-
Daniel Genrich [Sun, 25 May 2008 14:34:03 +0000 (14:34 +0000)]
-== kdop ==-
1. fix crash on collision

12 years ago[#11119] Tool tips correction
Martin Poirier [Sun, 25 May 2008 14:32:59 +0000 (14:32 +0000)]
[#11119] Tool tips correction

Patch by Olivier Saraja

12 years agoApply BGE patch 12799: Fix quad buffer stereo mode for Windows
Benoit Bolsee [Sun, 25 May 2008 14:32:26 +0000 (14:32 +0000)]
Apply BGE patch 12799: Fix quad buffer stereo mode for Windows

12 years agoMerge from trunk
Andre Susano Pinto [Sun, 25 May 2008 13:53:58 +0000 (13:53 +0000)]
Merge from trunk
svn merge -r 14843:14954 https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agofor for [bf-blender-Bug Tracker][11843] 3DS importer imports broken meshes
Campbell Barton [Sun, 25 May 2008 13:48:36 +0000 (13:48 +0000)]
for for [bf-blender-Bug Tracker][11843] 3DS importer imports broken meshes

12 years agoMerge bvh tree from cloth branch
Andre Susano Pinto [Sun, 25 May 2008 13:44:55 +0000 (13:44 +0000)]
Merge bvh tree from cloth branch

12 years ago-== Cloth / kdop ==-
Daniel Genrich [Sun, 25 May 2008 13:15:54 +0000 (13:15 +0000)]
-== Cloth / kdop ==-
1. Bugfix for crash on enabling cloth on object
2. Correcting kdop nth element sorting function (fix provided by AndrĂ© Pinto)

12 years agoBGE patch: rename rayCastToEx() to rayCast() - better name
Benoit Bolsee [Sat, 24 May 2008 22:50:31 +0000 (22:50 +0000)]
BGE patch: rename rayCastToEx() to rayCast() - better name

12 years ago-> FLT import: Zero area N-gon bug fix
Geoffrey Bantle [Sat, 24 May 2008 18:43:02 +0000 (18:43 +0000)]
-> FLT import: Zero area N-gon bug fix

FLT importer would throw errors when importing ngons with
zero area. These faces are now ignored

12 years agoBGE patch: add rayCastToEx(), an extended version of rayCastTo() for use in game...
Benoit Bolsee [Sat, 24 May 2008 18:06:58 +0000 (18:06 +0000)]
BGE patch: add rayCastToEx(), an extended version of rayCastTo() for use in game script

12 years agofix for [#12797] FBX Exporter Exports Incorrect Matterial EmissiveFactor and DiffuseF...
Campbell Barton [Sat, 24 May 2008 12:22:53 +0000 (12:22 +0000)]
fix for [#12797] FBX Exporter Exports Incorrect Matterial EmissiveFactor and DiffuseFactor
- own error, swapped diffuse and emit factors

12 years agofix BGE bug #8646: unusable anaglyph settings
Benoit Bolsee [Sat, 24 May 2008 08:34:04 +0000 (08:34 +0000)]
fix BGE bug #8646: unusable anaglyph settings

The best rules for stereo rendering are now applied to Blender. Here is the new situation:
1) The focal distance is now settable through the GUI: select the camera (each camera can have a different setting) and go to the camera data (F9): the "Dof Dist" and "Dof Ob" can be used to set the focal distance for that camera. The "Dof Ob" is interesting because it sets the focal distance so that the center this object will appear at the surface of the screen when running the game.
2) The eye separation is automatically set to focal_distance/30, which is considered to be a reasonable value. If you need a different value, you can always use Python scripting.

Notes:
- If you switch camera during the game, the focal distance will also change unless you have set the focal distance by scripting, in which case it overwrites the focal distance setting of all cameras.
- If you don't set the focal distance in the camera data or by scripting, the default value will be used. The default value corresponds more of less to the near clipping plane which means that all the objects will be very far with little 3D effect.
- If you don't set the eye separation by scripting, it is automatically computed as focal_distance/30, regardless on how the focal distance was set.

12 years agoMerging revisions 14838-14945 of https://svn.blender.org/svnroot/bf-blender/trunk...
Daniel Genrich [Fri, 23 May 2008 20:36:05 +0000 (20:36 +0000)]
Merging revisions 14838-14945 of https://svn.blender.org/svnroot/bf-blender/trunk/blender

12 years agoCommit of selfcollisions using new kdop design. Should result in nice speedup.
Daniel Genrich [Fri, 23 May 2008 20:20:14 +0000 (20:20 +0000)]
Commit of selfcollisions using new kdop design. Should result in nice speedup.

12 years ago== PyNodes ==
Willian Padovani Germano [Fri, 23 May 2008 16:31:02 +0000 (16:31 +0000)]
== PyNodes ==

Fixing bug #11737 reported by Daniel Salazar (Zanqdo, thanks!): assigning as pynode a text that failed to parse as a pynode script, then deleting that text would crash Blender.

http://projects.blender.org/tracker/?func=detail&atid=125&aid=11737&group_id=9

12 years agoTypos and whitespace tweaks
Joshua Leung [Fri, 23 May 2008 11:12:03 +0000 (11:12 +0000)]
Typos and whitespace tweaks

12 years agoFix for bug #12526: object instancing didn't restore matrices
Brecht Van Lommel [Fri, 23 May 2008 10:06:06 +0000 (10:06 +0000)]
Fix for bug #12526: object instancing didn't restore matrices
correct for envmap, could give objects rendering in the wrong
position.

12 years agofix for "[#11004] Adding ram sound and alt-U causes ram to look like HD sound and...
Campbell Barton [Fri, 23 May 2008 09:58:33 +0000 (09:58 +0000)]
fix for "[#11004] Adding ram sound and alt-U causes ram to look like HD sound and can lead to crash"

Missing call sound_initialize_sounds, cant be added BKE_reset_undo since its in blenderkernel.

12 years agoFix for bug #12473: crash converting old particle system from
Brecht Van Lommel [Fri, 23 May 2008 09:23:57 +0000 (09:23 +0000)]
Fix for bug #12473: crash converting old particle system from
a linked file.