Ian Thompson
04fb0c6f79
First commit and merge from trunk for testing.
...
Merge: 14970-14988
2008-05-26 23:04:37 +00:00
Andre Susano Pinto
4383743ace
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)
2008-05-26 21:57:53 +00:00
Campbell Barton
3b4873250e
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.
2008-05-26 12:50:00 +00:00
Daniel Genrich
391c7615d1
-= Collisions =-
...
1. fix for collisions (were working better with selfcolls enabled, now generally better)
2008-05-26 10:36:14 +00:00
Campbell Barton
0a90a52442
* 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.
2008-05-26 09:50:46 +00:00
Daniel Genrich
cb378cbceb
-= Cloth =-
...
1. Fix selfcollisions (reported by nudelZ)
2008-05-26 09:39:32 +00:00
Andre Susano Pinto
ad2fecf266
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.
2008-05-25 15:43:18 +00:00
Andre Susano Pinto
cc98ef4012
Merge from trunk
...
svn merge -r 14843:14954 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-25 13:53:58 +00:00
Daniel Genrich
fcea4573dd
-== Cloth / kdop ==-
...
1. Bugfix for crash on enabling cloth on object
2. Correcting kdop nth element sorting function (fix provided by André Pinto)
2008-05-25 13:15:54 +00:00
Daniel Genrich
10dde9b7d7
Merging revisions 14838-14945 of https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-23 20:36:05 +00:00
Daniel Genrich
4bf01e8162
Commit of selfcollisions using new kdop design. Should result in nice speedup.
2008-05-23 20:20:14 +00:00
Campbell Barton
b46bdbcd0f
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.
2008-05-23 09:58:33 +00:00
Brecht Van Lommel
7bae2af95c
Fix for bug #11698 : mesh deform modifier not working on extruded curves.
...
The modifier work on the tesselated result rather than the curve itself.
2008-05-22 17:06:46 +00:00
Brecht Van Lommel
abb247ac35
Fix for bug #11743 : incorrect transformation for particle group
...
visualization DupliGroup option.
2008-05-22 14:08:13 +00:00
Brecht Van Lommel
be1cb6e5e2
Fix for bug #11758 : crash cancelling hair softbody bake.
...
Fix for bug #11966 : crash in hair softbody with hair amount 0.
2008-05-22 13:58:16 +00:00
Campbell Barton
c526b1b2df
memory corruption error fix when changing orderU/Vs with curves, this could crash blender or make odd display lists.
...
the problem was that the buttons would use the first nurb if there was no 'lastnu', but the makeknots function only checked for lastnu. this meant the knots would not get re-allocated on
values would be written outside the array.
2008-05-18 18:44:02 +00:00
Ton Roosendaal
3effe8060d
Fix in mball last May 15th causes a hang (eternal loop) in mball.c,
...
a division by zero was not handled
(weird though, only shows in OSX PPC. no optimize, debug build.)
2008-05-18 13:57:47 +00:00
Campbell Barton
d3f7fba472
fix for [ #11691 ] No checks in curve code for "Number of points <= Order U"
...
added checks for a nurbes orderu being larger then pntsu.
This has the same effect as the curve having only 1 point. (its display list is not generated
but it is still added but a dummy displist with zero points is made)
memcpy was also being used where the memory overlaped (probably worked in most cases but this is incorrect and valgrind complained), use memmove
instead.
2008-05-17 22:37:34 +00:00
Joshua Leung
bb6c67cc73
Bugfix #11717 :
...
Rendering (Internal/OGL) would crash when StampInfo was on and adding info about the active camera, if there was no camera in the scene.
2008-05-17 00:35:30 +00:00
Willian Padovani Germano
bbe32118ef
== Nodes ==
...
- "Memoryblock free: attempt to free NULL pointer" messages related to the Material node (Add->Input->Material). Deleting it and quitting Blender would bring 2 or 3 of these warnings. Trivial fix (check if NULL) in blenkernel/intern/node.c, though Nodes devs may be interested. Found while testing to fix the following bug:
== PyNodes ==
- Bug #11715 reported by Alexanter Feterman:
http://projects.blender.org/tracker/?func=detail&atid=125&aid=11715&group_id=9
Adding a Dynamic node and setting it to a pynode script would crash Blender if no Material Node (MatNode) was present.
Thanks Alexander for reporting and Brecht for assigning it to me.
2008-05-16 20:57:06 +00:00
Brecht Van Lommel
7df859fb95
Fix for bug #11389 : edgesplit modifier crash after subsurf when
...
no edges were being split.
2008-05-15 20:07:07 +00:00
Brecht Van Lommel
a6e18574b8
Fix for bug #11650 : removing uv layers in editmode did not work correct.
...
Fix for bug #11661 : bake to viewport uv layer instead of render uv layer.
2008-05-15 19:40:09 +00:00
Jiri Hnidek
ba6c6854ed
Last bug fix of #10999 . This should finaly work (tested by jesterking).
2008-05-15 19:30:30 +00:00
Andre Susano Pinto
c4937891ea
Merge from trunk
...
svn merge -r 14760:14843 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-14 20:01:22 +00:00
Andre Susano Pinto
859a05864c
I'm considering using bvhtree for shrinkwrap but the build was considerable slower than kdtree
...
as so i've made some improvements
So basicly theres no shrinkwrap improvements for now...
2008-05-14 18:25:23 +00:00
Daniel Genrich
b64eeda588
svn merge -r 14810:14838 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-14 16:14:40 +00:00
Daniel Genrich
4d8b5587b8
Pre merge commit (includes commented moving stuff)
2008-05-14 16:09:56 +00:00
Brecht Van Lommel
7806a44134
Minor particle system fixes:
...
- Changed some tooltips.
- Refresh with reactors and shared particle settings.
- Copying of child particles.
2008-05-14 13:30:36 +00:00
Brecht Van Lommel
f44c22e69c
Fix for bug #11128 : render window shows undithered image.
2008-05-12 17:41:03 +00:00
Brecht Van Lommel
916120b98c
Fix for bug #11114 : boids physics went wrong when the distance between
...
particles was exactly 0.0, for example with emission from verts.
2008-05-12 17:30:32 +00:00
Jiri Hnidek
c471b6db74
Bug fix of #10999 . mbproc->start was useless.
2008-05-12 16:22:49 +00:00
Daniel Genrich
db3712a2d8
svn merge -r 14721:14810 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-12 12:24:52 +00:00
Brecht Van Lommel
2c9e8e7593
Fix for bug #11140 : explode modifier could run out of memory quite
...
quickly because it allocated a totvert*totvert size array, now uses
edgehash instead.
2008-05-12 11:48:55 +00:00
Peter Schlaile
97dd2fe33e
== FFMPEG ==
...
Added (disabled) MKV support. Might come handy later, if someone finds
out, why it instantly crashes after 2 frames.
Made it impossible to set min_rate higher than max_rate in render buttons
panel.
2008-05-12 09:01:15 +00:00
Ken Hughes
e9706d6f0d
Move variable declaration, wouldn't compiler with MSVC (reports by jms).
2008-05-11 22:51:56 +00:00
Peter Schlaile
c8673be3d6
== FFMPEG ==
...
Add ffmpeg expert option (meaning _all_ ffmpeg option) to render dialog
using properties.
Also adds: H264 preset, that doesn't screw up output.
2008-05-11 20:40:55 +00:00
Campbell Barton
a2528b4123
fix for [ #11136 ] Segmentation fault when copying objects with hairs
2008-05-11 11:34:39 +00:00
Campbell Barton
f7173498f3
missed modifier.c last commit, made explode copy some settings.
...
added back zr's depth buffer wire stuff, but only when wire is being drawn over solid mode. normal wire objects will still display correctly.
2008-05-09 15:21:23 +00:00
Brecht Van Lommel
7e93f5569d
Fix for bug #10475 : added more dependencies for physics systems
...
with deflectors and fields for proper dependency graph updates.
2008-05-09 13:04:36 +00:00
Brecht Van Lommel
6a97a2ab33
Fix for bug #8919 : uv shadow mesh doesn't update without 3d view
...
open. Made it so that the dependency graph besides the visible
layers, also updates the edited object.
2008-05-09 12:39:56 +00:00
Andre Susano Pinto
53e08925b5
Merge from trunk
...
svn merge -r 14692:14760 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-09 11:57:52 +00:00
Brecht Van Lommel
8d6857b915
Fix for bug #10894 : objects used as particle duplis couldn't be
...
transformed properly anymore if they had ipo's, same issue also
fixed for dupliframes.
2008-05-09 10:26:49 +00:00
Jiri Hnidek
5d8178a120
Potential bug fix of #10999 .
2008-05-08 21:33:15 +00:00
Brecht Van Lommel
205d06f5f4
Fix for bug #11002 : particle ipo clump did not allow negative values
...
like the button in the user interface.
2008-05-08 08:41:56 +00:00
Daniel Genrich
a68c03e409
Reason of all this work: Commiting my work-in-progress on reviewed collision system (better + general access to kdop, uses less memory, put it into BLI_* namespace and usage defined like existing BLI_kdtree_*). Deleted old kdop.c
2008-05-07 20:42:16 +00:00
Brecht Van Lommel
1584d6a006
Possible fix for #9691 : blender failing to allocate memory when rendering
...
particles on windows, now allocates smaller chunks of memory.
2008-05-07 19:25:43 +00:00
Daniel Genrich
57932e1752
svn merge -r 13452:14721 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2008-05-07 17:44:46 +00:00
Brecht Van Lommel
ad5579ec92
Fix for bug #9676 : added warning that particles on multires are
...
not supported on anything else than the first level.
2008-05-07 16:31:49 +00:00
Campbell Barton
bda4e3d19f
* added support for exporting dupli objects
...
* option to export modifier applied objects
* option to export quads as tri's
* added back compress option (will default to enabled if you use .x3dz as the extension)
2008-05-07 15:38:40 +00:00
Andre Susano Pinto
50acbe29d1
Normal projection:
...
+added option to remove faces where all vertices got unprojected
Nearest surface point
+15% faster closest point on point-tri function
(archived by projecting the point on tri-plane and solving the problem on 2D)
(its still using bruteforce on triangles.. I'll add the right data structure later)
2008-05-07 12:45:02 +00:00