Commit Graph

6731 Commits

Author SHA1 Message Date
Jens Ole Wund
52c20fecba softbody update -> self collision search takes 1/3 of the time here
this one should work nice -->
http://www.wund.homepage.t-online.de/hidden/sb_col_must_3_0.blend
2006-10-30 22:47:41 +00:00
Peter Schlaile
e8a58eb0f9 == Sequencer ==
Bugfixes: Fixed partially bug #5030
Added patch: #4992 Basic Transforms
 This adds basic transform capabilities (rotate, scale, shift) to the
 sequencer.
2006-10-30 22:28:06 +00:00
Jiri Hnidek
e944ed2f4a - bug fix #5141, blender doesn't crash, when you try to unsubscribe twice
from verse node in outliner
2006-10-30 14:59:30 +00:00
Jiri Hnidek
b17ce5e24a - bug fix: brecht's fixing of warning caused one bug, ... one "break;"
was missing in code ... blender crashed, when it was connected to
   verse server with bitmap node
2006-10-30 12:24:22 +00:00
Tom Musgrove
a991d0d6f2 =rename append=
renamed the file menu item append  to append/link for clarity, thanks to Juho Vepsäläinen (bebraw)
2006-10-29 16:51:50 +00:00
Tom Musgrove
d1e1851722 =render window zoom with mousewheel and pgup pgdwn=
adds additional shortcuts to zoom on the render window, patch by Onur Yalazi (onuryalazi)
2006-10-29 16:31:36 +00:00
Matt Ebb
ddbfb04642 * Changed the Curve Modifier to have it's own X/Y/Z axis deform direction
settings, rather than using the object's TrackX/Y/Z/etc buttons.

 This is good for two reasons: a) having the settings over in the object buttons
 before was terribly unintuitive and hidden, now it's more visible how to
 control the deformation, and b) now if you have more than one curve modifier,
 they can have their own settings, instead of being forced to use the object
 level data.
2006-10-28 16:48:56 +00:00
Matt Ebb
3e0c45440d * Simple patch 5058 from gsrb3d to use constants instead of magic numbers for
theme drawtypes
2006-10-28 13:21:02 +00:00
Ton Roosendaal
129cab4137 New Curves Widget option: curves can get extrapolated extension.
Especially for Compositing it was annoying that colors always got clipped
in the 0.0-1.0 range. For this reason, extrapolated Curves now is the
default. Old saved files still have horizontal extrapolation.

Set the option with 'Tools' menu (wrench icon). This is a setting per
curve, so you might need to set all 4 curves for an RGBA curves widget.
2006-10-27 20:27:13 +00:00
Ton Roosendaal
a7d3a58ba9 Serious bugfix for compositing; using Groups could crash if one of the
input nodes was 'passing on' the buffer (because it didn't operate on the
image). That's for example for Blur with size 0 or for Translate node.
This passed-on buffer then got freed inside the group...

Solution now is just a malloc. Better system should be devised, with
reference counting or so. Thanks Ivan Hoffmann for the sample file!
2006-10-27 19:52:41 +00:00
Kent Mein
76ff13de42 more bugs found thanks to klockwork
all of these are just check a var to make sure it points to something before
using them.

Kent
2006-10-27 18:24:10 +00:00
Brecht Van Lommel
43dc73ce79 Fix for bug #5128:
Missing texture preview update for MinX/MaxX/MinY/MaxY settings
of an image texture.
2006-10-27 17:05:22 +00:00
Nathan Letwory
45c1f23f19 Apply patch #5127 by Joseph Eagar (joeedh)
* This addresses the long command-line problem when building with SCons/MingW on windows through a dosbox (cmd.exe).

My test buildpath was: C:\Documents and Settings\nathan\My Documents\blender\build\win32-mingw
Should be rather long enough, don't you think?

/Nathan
2006-10-27 09:01:42 +00:00
Nathan Letwory
a782b2179b fix for #5135
* potentially a NULL-pointer could be referenced, causing a segfault.
2006-10-27 08:12:18 +00:00
Brecht Van Lommel
dd3d85c77d UV editor:
- When in 2D image paint mode or mesh editmode, draw a shadow mesh
  to more clearly indicate the UV's are not editable.
- While in editmode the UV's displayed are now updated as the mesh is
  edited, whereas before it would draw the UV's of the mesh before
  entering editmode.
2006-10-27 00:43:18 +00:00
Brecht Van Lommel
40d4d86055 Bugfix: alpha values written in image paint were wrong. 2006-10-26 23:42:04 +00:00
Brecht Van Lommel
5376df2689 Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
unintialized variables in the verse code, verse_session.c:451 and
verse_object_node.c:339, those are properly initialized now.
2006-10-26 23:34:44 +00:00
Brecht Van Lommel
47f579f514 Add a stub to make blenderplayer compile with verse enabled. 2006-10-26 22:36:29 +00:00
Kent Mein
7fdf2a2303 more bugs found thanks to klockwork
I basically added some checks to see if we have a buffer before trying to
actually use them.

Kent
2006-10-26 18:58:07 +00:00
Ton Roosendaal
9f77785d7c Coding work while on the trip to london (based on Plumiferos wishlist);
- Icon previews for Images were created always for old files, which made
  browsing (menus) incredible slow. Added a minor change in the flow, so
  icons only get created when the user invokes loading images.
  Andrea; you might check this, probably not al cases are covered yet?

- Compositor: the 'File Output' node now has a min/max frame for which it
  writes files

- Compositor: fixed a very bad bug (even in 2.42a release) that made the
  depsgraph for nodes not work... while editing, only the nodes that change
  should be recalculated, but accidentally all of them were done each time.
2006-10-26 10:13:16 +00:00
Martin Poirier
f0dcd2db75 == Transform ==
Embryon functionnality for snapping.

- Only snaps to grid on translations (grab)
- Transform constraints are supported but header display is wrong.
- Can be turned on/off in the Object/Mesh header menu under Transform Properties (tentative spot, will have to integrate better and in other object type menus too)
- Can be turned on/off during transform with ` (Back Quote, also tentative)

This is, of course, very much Work in Progress.

This implements part of the structural ideas for the transform cleanup I've been juggling around with.
2006-10-25 23:57:00 +00:00
Martin Poirier
2556254e92 == 3D View ==
Customizable Grid Subdivisions

This commit adds a numbut to the View Properties panel that lets you specify how the grid is subdivided.

This affects snapping in translations, obviously.

Default: 10 (behavior doesn't change)

That means people still stuck in feet and inches (shudders) can set it to 12 and have 1 unit = 1 foot.

That also means you can work in "heads" when doing body proportions or whatnot (don't think of it as being limite to "CAD" uses).
2006-10-25 23:34:24 +00:00
Martin Poirier
07ce603299 Cleanup.
Missing include for ListBase. Wasn't a problem until someone try to include this without including ListBase (manually or through something else). Safe now.
2006-10-25 23:19:40 +00:00
Martin Poirier
a3cff50ef6 LocEulSizeToMat4 arith function.
Creates a 4x4 matrix from location, size and euler angles components.

Coded by Joshua Leung (aligorith) for one of his patches. Integrating right now because it's useful in and of itself.
2006-10-25 23:15:09 +00:00
Campbell Barton
80ffbee6f7 was missing a return of len, so scn.objects.context was always returning 0 2006-10-25 13:33:08 +00:00
Ton Roosendaal
9d67a597bc Irregular shadow fix: the MemArena module didn't give callocs, only malloc.
Made nice crashes that way... but not in !@%@$ OSX because it seems to
clear memory unwanted. Solve dit with adding API call in MemArena to default
to callocs.

Also removed malloc() from MemArena, replaced with MEM_mallocN().
2006-10-24 15:17:14 +00:00
Ton Roosendaal
da12c9571b Bug provided by Plumiferos team on conference:
In some cases faces were skipped from rendering, when using multiple
RenderLayers. Was caused by a "don't render" flag hanging. Error was
introduced with the "All Z" RenderLayer option.
2006-10-24 14:14:20 +00:00
Hans Lambermont
b5fbb186df - add -lXi to prevent "undefined reference to `XGetExtensionVersion'..."
- remove obsoleted<=4.0 freebsd compatibility
2006-10-24 13:34:15 +00:00
Ton Roosendaal
f3615cf228 Bugfix: commit of Campbell june 20, for fly mode, didn't check for the
G.vd->camera pointer. If not set, a view change can crash.

Reported & shown by Ivan!
2006-10-23 16:15:23 +00:00
Campbell Barton
e459764b4b I was impossible to set a render window back to being a non render window without changing the TexFace image.
now the cross will unset the render window and use the texface if its there, cross again removes the image as useual.
2006-10-22 12:46:54 +00:00
Campbell Barton
0e569035c7 made mesh getFromObject also copy the meshes flag 2006-10-22 02:43:04 +00:00
Jens Ole Wund
88455e8d5c bug fix
in softbody aerodynamics
(should zero a vector which is only added to in function call)
thanks michael
2006-10-20 23:02:47 +00:00
Jiri Hnidek
137d9e5f29 - bug fix: get rid of "verse client name len: 16 ..." memory of client
name have to be deallocated after calling verse_client_name() function
2006-10-20 10:24:14 +00:00
Campbell Barton
6fcae7b5d4 added TwoSide to texface specials menu
added a menu for texface copy - Ctrl+C in Face Mode
2006-10-19 23:21:54 +00:00
Jens Ole Wund
57f01fdb46 more softbody goodies:
SB collision targets may be picked up from modifier stack
works fine with static targets having subsurf and/or array mofifiers
see-->
http://www.wund.homepage.t-online.de/hidden/Mstack.blend
http://www.wund.homepage.t-online.de/hidden/Mstack_II.blend

however when calulating the SB object dynamics the vertices of the
'deform only' m-stack result are used

so SB <-> SB may look strange
subsuf modifier is applied to SB object after doing SB dynamics
(that is: colliding mesh is subsurfed, SB is not )
subsurfed SB cubes colliding
link --> http://www.wund.homepage.t-online.de/hidden/ColSelfMod.blend

or may give unwanted results
subsuf and array modifier is applied to SB object after doing SB dynamics
link --> http://www.wund.homepage.t-online.de/hidden/ColSelfMod_nobug.blend

last, modifiers that change vertex locations in time (like waves)
suffer from not beeing seen at needed time resolution
(SBs see colliders static in a frame)
well but that's beyond the limits of the current dep-graph use
and needs to be resolved on design level

anyhoo have fun
BM
2006-10-19 22:01:06 +00:00
Nathan Letwory
ba4f678b5c * Verse username for blender avatar can be set in userprefs (System&OpenGL). The name defaults to the old form. 2006-10-19 05:06:41 +00:00
Geoffrey Bantle
e259923340 -> Triangle to Quad bugfix
Last minute bugfixing for last commit introduced a brand new bug causing
Crashes, whoops! Fixed now.
2006-10-18 06:06:15 +00:00
Nathan Letwory
88446eeca4 Patch 5105 by Joshua Leung (Aligorith), slightly modified by me
* Add WITH_BF_YAFRAY, which per default is 'true', so no visible changes for developers (and users).

Set WITH_BF_YAFRAY to 'false', and you'll save some major compile time :) Also handy if you're strapped for memory and compilation fails on yafray compilation due
 to this.

- this commit also has a few whitespace changes and
- made BF_NO_ELBEEM a proper BoolOption. This will be renamed to WITH_BF_ELBEEM in the near future...
2006-10-18 05:45:47 +00:00
Geoffrey Bantle
134e562219 -> Improved Triangle to Quad conversion
Alt-J behavior has been replaced by a port of the Tri2Quad python script
currently in CVS. This method has many advantages over the old behavior.
A simple illustration of how the new method is superior to the old can be
made by triangulating a suzzane and converting it back to quads.

	http://www.umsl.edu/~gcbq44/t2q2a.jpg
	http://www.umsl.edu/~gcbq44/t2q2b.jpg

The algorithm works by considering all possible triangle pairings and then
weighting them according to how appropriate it would be to join. These pairs
are then quick-sorted and those with the highest weighting factor are combined.
The function is quite fast even for dense meshes and usually involves no
noticeable wait-time for completion. For instance the following imported
model took less than 2 seconds to convert on my 1.3ghz PPC powerbook:

	http://www.umsl.edu/~gcbq44/mimitri.jpg
	http://www.umsl.edu/~gcbq44/mimiquad.jpg

It should be noted by the user that this method also discards face pairs
where the two triangles:

-do not share the same material
-do not share the same UV image (texface)
-do not share a compatible set of UV coordinates
-do not share a compatible set of vertex colors
-will form a concave quad or create a non-planar face

Additionally if the edge shared by the pair is marked 'sharp' the pair
will be discarded from the quicksort. In this way the user can gain great
control over the conversion process if they desire as this imported VRML
model of a sneaker illustrates:

	http://www.umsl.edu/~gcbq44/t2qa.jpg
	http://www.umsl.edu/~gcbq44/t2qb.jpg

For the future it would be nice if some of the options for the conversion
process, such as angle tolerance, could be made configurable in the UI.
However it is unclear at this time which options should be made configurable
and where to put them. Feedback on this is appreciated.

Special Thanks goes to Joe Eager for the two macros he contributed to this code
and to Campbell Barton for writing the script this was based on!
2006-10-18 05:18:51 +00:00
Jens Ole Wund
f0fbffcd59 made a nice new softbody II panel on UI to keep things usable (logic wise)
- failed on final alinignment issues may be matt can give a helping hand ? :)
2006-10-17 22:03:32 +00:00
Nathan Letwory
282b0d528d * fix totblock error when quiting blender with sessions open
* add "Disconnect"-menu when RMB on verse server that is connected in
outliner
2006-10-16 15:28:57 +00:00
Jiri Hnidek
6468b1705b - I forgot one ifdef in last commit, I'm sorry 2006-10-16 14:14:49 +00:00
Ton Roosendaal
239b08b8b2 Bugfix #5090
Duplicating a Library-linked Mesh with Library-linked texture Images forgot
to set the texture Image link flag to LIB_EXTERN (LIB_INDIRECT means the ID
is not saved in file).

Error was that a the duplicated Mesh lost texture.
2006-10-16 11:31:09 +00:00
Campbell Barton
045e143189 a Malifico request, Blender.Library now supports loading relative libraries.
Blender.Library.Open('//someblend.blend')

the // at teh start of the path mean that the file will be loaded relaive to the existing blend files path.
2006-10-15 14:00:23 +00:00
Ton Roosendaal
9fa438b4e9 Another shadowbuffer goodie: the "Halfway trick"
http://www.blender3d.org/cms/Shadow_buffer__Halfway.786.0.html

Simply said: by using the average of the nearest and 2nd nearest Z value
in Shadowbuffers you can reduce bias errors very well.
For backwards compatibility it is a new buffer type though.
2006-10-15 11:50:46 +00:00
Campbell Barton
3b0adf0bf4 added shadAlpha access to materials in python 2006-10-15 08:43:59 +00:00
Tom Musgrove
05ee7d9053 =translate hoek to angle=
renamed the dutch variable hoek to angle globally arithb.c changes done by Matt Plough
2006-10-14 23:27:18 +00:00
Jens Ole Wund
03be45c8c0 softbodies again
unnesting aerodynamics from edge collision
cleaning up softbody.c
that is:
removing old todos in comments
adding some new :)
2006-10-14 19:03:06 +00:00
Ton Roosendaal
bc10cf38b9 Irregular shadow bug: mixing up zmin and zmax in optimize caused larger
faces to miss casting shadow.
2006-10-14 15:26:15 +00:00
Ton Roosendaal
11b4d14ab6 Missing initialization of 'shadow alpha' in new materials. Caused by not
copying this file from my laptop I used to code it... :)
2006-10-14 13:50:11 +00:00