Commit Graph

5966 Commits

Author SHA1 Message Date
Ton Roosendaal
3d47bb56fa Small fix: the compositing "Preview" option in UV/Image editor should only
work when compositing output is shown.
2006-06-10 15:18:47 +00:00
Ton Roosendaal
29d393eb1f Small tweak in adding mesh primitives (was patch, but that code wasn't
working) to ensure that circle/sphere/tube primitives are with radius 1.0
instead of radius sqrt(2)
2006-06-10 12:53:58 +00:00
Alexander Ewering
9e9a8dbca5 Fixed an almost one-decade long annoyance: Text objects with "TextOnCurve"
now scale correctly.

Formerly, they just used to scale away from the curve into nirwana. Now,
they nicely follow the curve while scaling. Both the curve and the text
objects themselves can be scaled.

This will of course break compatibility with files that used this "bug".
Acceptable? I guess :-)
2006-06-10 12:00:13 +00:00
Chris Want
012ea6265f ==Mesh modeling==
A modification of how 'Extrude Region' behaves on the line of
symmetry when a mirror modifier is used. If 'Do clipping' is
selected, and there is an edge selected on the line of symmetry
that is connected to a selected face, that edge no longer gets
extruded into a face lying on the symmetry line. In pictures,
here is how the old behavior compares to the new behavior:

http://bebop.cns.ualberta.ca/~cwant/mirror_extrude_region

I think this new behavior is consistent with what most users of
the mirror modifiers would want, but if not please say so!

Also: Test, test, test!
2006-06-10 04:48:56 +00:00
Ken Hughes
ca7ce0cc0a ===Tools===
Earlier fix for curves and text without extrude or bevel only extruds
one curve/character.  This seems to fix it but Ton should double-check.
2006-06-09 23:01:22 +00:00
Peter Schlaile
c7471a534e ==Sequencer==
- removed wav_spec, that isn't used at all, fixing a warning message
2006-06-09 20:23:56 +00:00
Peter Schlaile
f78be8bdcd ==FFMPEG==
Added support for XVid and H264-codecs in codec-selection. (only work, if
ffmpeg is compiled with XVid and/or H264-support. Failure in doing so
results in an error message that codec can't be selected.)

Both are written always to AVIs since raw-h264-files created by ffmpeg
can't even be opened by itself...

Video render options are reset to sane defaults (=DVD preset) on startup now.

Don't expect quicktime-support to be very exciting, since ffmpeg can't really
multiplex quicktime files. (Tried several codecs with the ffmpeg-commandline
tool,... sigh)

Timestamp crash on Debian-Sarge version is fixed.
2006-06-09 19:48:50 +00:00
Andrea Weikert
bfe1d7c53e === warnings cleanup ===
cleaned up some bad warnings and ugly stuff from not being careful enough in last commit.

especially these were dangerous:
interface_icons.c:716: warning: `return' with no value, in function  returning non-void
interface_icons.c:779: warning: implicit declaration of function  `waitcursor'
header_image.c:757: warning: implicit declaration of function  `BIF_preview_changed'
2006-06-09 17:23:15 +00:00
Chris Want
d04ad8dbc6 Made the default cube of the default blend have *all* vertices selected
in edit mode, rather than just the vertices of the front face.
Please test.
2006-06-09 16:48:55 +00:00
Ton Roosendaal
9acd066925 Bugfix #4286
Using spherical lightprobes for AO didn't filter the samples at all.
Image textures in Blender support this, so was simple to add, although
the filtering might need tweak :)
2006-06-09 16:10:12 +00:00
Matt Ebb
67dc5585cb * Added an 'eyedropper' tool in the colour picker. With the colour picker open,
you can click on the 'Sample' button, to sample any colour on the Blender
screen. This is really useful in the compositor, and would probably be good for
sampling footage in any eventual chroma key nodes that may be made, too.

LMB to pick the colour, ESC or RMB to cancel.
2006-06-09 16:01:27 +00:00
Matt Ebb
e8ce6c02d3 * removed an unused variable warning. my bad. 2006-06-09 15:56:29 +00:00
Matt Ebb
5b756f7b8a * preview.blend fixes
The preview.blend now shows raytracing/transparency, and also turns on and off
the fake shadow based on the 'shadbuf' setting.

Also included an updated preview.blend file to accomodate this.
2006-06-09 15:55:27 +00:00
Ton Roosendaal
27bea32b70 Bugfix #4284
Curves Widget: The endpoint condition for calculating the interpolation
had an error, moving too quickly to a constant value (for extending).
2006-06-09 13:04:21 +00:00
Ton Roosendaal
e18e59ee67 Bugfix #4295
Composite: Z Combine node, output socket "Z" didn't do anything, removed it
2006-06-09 12:45:09 +00:00
Ton Roosendaal
77223515a9 Bugfix #4298
Uncommitted the feature I added for Plumiferos to be able to render
animated render-borders (which effectively means every frame can be a
different size).
For several reasons;

- it will crash movie rendering (when image sizes differ)
- it forced code to do a full initialize each frame, also for setting the
  renderwindow (which popped up on each frame)
- the render pipeline was not designed with per-frame python changes in
  mind for image sizes... it uses an "Initialize" stage which is only
  called once for an entire sequence.

That latter might be an omission, but for that I better code a new API
call (for use in Python) so a re-init can be enforced.

The old functionality (animated render borders) will still work when you
render in background, using small steps like blender -s 1 -e 5 -a etc.
2006-06-09 12:21:15 +00:00
Ton Roosendaal
c595112d3d Bugfix #4288
The new Image icon system didn't take care of float images yet, causing
crashes.

Andrea: I also cleaned up some of the syntax...
- try to stick to NULL for pointer values (not 0), reads nicer
- pointer declarations like: int* a, b; is confusing... use: int *a, b;
  it wasn't consistant in code either... :)
2006-06-09 12:00:28 +00:00
Ton Roosendaal
908389b787 Bugfix #4293
And more particle issues... the attempts to allow particle systems to be
part of duplicators (groups especially) isn't easy to get working!
This commit solves regular animated particle systems... they rendered on
the wrong location, using wrong object transform.
2006-06-09 11:15:52 +00:00
Campbell Barton
ed5c132db1 fixed the logic for some of the ifs and remove a unused var 2006-06-09 05:14:16 +00:00
Campbell Barton
c0d594fca5 Fixed a bug when holding down shift before there was any motion.
Doubled the speed of rotation
2006-06-09 04:32:21 +00:00
Ton Roosendaal
2e9b33faa4 Increased sizes of strings in filesel.c
Extreme cases (also old bugs with corrupt relative paths) didn't survive.

Like this string:
"//../../../../../../../../../../../../../Users/yomomma/Documents/../../../../../../../../../../../../../Users/"
2006-06-08 19:55:29 +00:00
Ton Roosendaal
0950a40411 Plumiferos report: Appending objects with ipo drivers, didn't expand to
include the driver object.
2006-06-08 19:26:08 +00:00
Peter Schlaile
af3f454cd8 ==Sequencer==
Added patch by Matt Ebb, that enhances the sequencer GUI in several ways:
- It looks a lot better
- Strip colours are themeable.
- The drawing code is more readable.
- The background of the timeline makes now distinguishing the channels easier
  by alternating between different shades of gray.
- Handle-scaling is clamped to min and max-values, making it possible to
  grab strips at large zooming levels more easily.
- Preview-images can be panned by dragging it with the middle mouse button.
  Home-Key resets the position.
- Since some people can't grab the meaning of "C 0", it is renamed to "Chan: 0"
- Effect strips have slightly different colors to distinguish them better.

Additionally:
- fixed an off by one error in Matt's patch
- Scene-rendering saves CFRA to avoid jumping current-scene on scrub
  (might be academic fix, since most likely it only happens if you add
  the sequencer-scene to the timeline... But nevertheless it bugs you on
  testing the GUI ;-)
2006-06-08 19:05:58 +00:00
Campbell Barton
f6854b4d8e Replaced old fly mode for a fly mode that works in all 3 view types - ortho, perspective and camera (cheating, but its still usefull)
This one uses the 3d perspective view rather then the camera, and is nicer and easier to control then the old fly mode. it also gives some help in the header.
Shift+F to try it.
2006-06-08 18:10:41 +00:00
Ton Roosendaal
863ab755ba Bugfix: "Shaded drawmode" didn't support vertex colors in materials yet. 2006-06-08 10:57:23 +00:00
Geoffrey Bantle
4a1d4653da -> Fix for bug #3867
Face loop cut was failing on meshes with hidden parts. Also modified edge
ring selection code in editmesh_mods.c to ignore hidden parts of mesh.
2006-06-08 05:41:57 +00:00
Joseph Gilbert
4c802a0a78 *bugfix
-another quick fix. Runtime checks complain that a unused reference being returned from a function.
2006-06-07 15:09:07 +00:00
Joseph Gilbert
8e631bd4b6 *bugfix
-uninitialized variable being returned from a function
2006-06-07 15:04:14 +00:00
Joseph Gilbert
649273e89c *Bugfix
- uninitialized variable used during division.
2006-06-07 15:01:40 +00:00
Peter Schlaile
174cf92473 ==FFMPEG==
This fixes again some segfaults on error conditions.
It also gives some reasonable error-messageboxes if chooses the wrong
DV-format-options.

More to come...
2006-06-07 12:53:51 +00:00
Matt Ebb
efca4752d8 * Updated the preview render scene .blend
- Improved lighting and background (also turned off shadows, unnecessary and
a potential slowdown in generating the preview)

- UV unwrapped the sphere and monkey models, so you can actually see something
useful when a texture is mapped to UV

- Added a 'hair' preview option (reused sphere icon will be eventually
forthcoming)
2006-06-07 08:23:35 +00:00
Kent Mein
2222e4cbc1 Made it so avi code handles "dropped frames"
some avi's have 0 sized chunks that we were not handling properly.
(Need to basically rewind the avi to previous frame in this case)

http://www.cs.umn.edu/~mein/blender/avi/examp.avi has 25 frames,
4,7 and 9 are "dropped frames"

blender use to crash on these now it displays the frame before it assuming
there is one.

Kent
2006-06-06 18:55:55 +00:00
Ton Roosendaal
8bc6697978 Fix in commit I did of May 29
To enable python to change border while render, I moved the initialize
call inside of the main loop that went over the frames.
Forgot to do move the movie-initialize call as well... which now got
called with zero'ed values.

Thanks Peter Schlaile for the poke!
2006-06-06 18:45:55 +00:00
Ken Hughes
e77112f76b ===Python API===
added len() operator for MFaces, which returns number of MVerts.
2006-06-06 18:14:31 +00:00
Campbell Barton
721de110b2 Added Py_DECREF since PySequence_GetItem adds a reference where as PyTuple_GetItem borrows it.
Thank ken.
2006-06-06 17:28:39 +00:00
Campbell Barton
46329e5ab0 made it so a meshes uvsel could be set with any sequence, not just a tuple. 2006-06-06 17:04:00 +00:00
Alfredo de Greef
f82ffb2e1e Updated the 'library linked data' code to use the render object table as
suggested by Ton.
2006-06-06 16:56:47 +00:00
Ton Roosendaal
8741e7d06d Bugfix #3664
Curves and Text without extrude or bevel, didn't allow to set 'width'
anymore. Code got removed in too rigid cleanup for 2.40 modifiers.
2006-06-06 10:09:44 +00:00
Alfredo de Greef
f832e30669 Added support for linked objects from libraries which can have names that
are already defined locally, probably does not work fully yet.
Added extra 'threads' parameter as requested by Lynx3d.

Optimized drawing of rendered tiles, so that the entire image doesn't have
to be redrawn every time a tile is complete.
The blender code that handles this part was not yet complete and could only
draw (sets of) scanlines. I extended the renderwin_progress() function in
renderwin.c to handle a given subrectangle.
This code needs review!
For the limited test I did it seems to work at least...
2006-06-06 01:57:07 +00:00
Peter Schlaile
4467c26337 == Sequencer & IPOs ==
This code enables IPO-pinning for Sequence-strips again, by working
around the missing libdata in blenloader/intern/readfile.c.

Bad hack(tm). Maybe we find a way, to make Sequence-strips true libdata?

It also fixes two places in IPO-editing where frame-locking wasn't handled.
2006-06-05 19:04:19 +00:00
Ton Roosendaal
e7ee6c3ec4 Stupid me... commit for support of viewer Node in Groups broke adding
new viewer nodes. Wrong use of variable.
2006-06-05 16:46:13 +00:00
Ton Roosendaal
67d5d686f4 Bugfix #4275
Edit Mesh: "Add duplicate" failed when used in mixed edge/face select mode,
you then can make incoherent vertex selections. Nicely solved.

Also, related, uncommitted fix I did 6 months ago for EM_selectmode_set().
It is supposed to deliver full consistant selection, for all combos of
selection modes.
2006-06-05 16:39:50 +00:00
Matt Ebb
4612605786 * Woops, a debug printf slipped through. Removed. 2006-06-05 16:01:00 +00:00
Matt Ebb
1fcae2e0f7 * Cut, Copy and Paste for buttons now also works while editing button text.
Hotkeys Ctrl/Command (Mac) X, C, and V will cut, copy and paste the selected
  text to and from the 'buttons clipboard'.

  This clipboard is still not that good since it doesn't even use the same
  storage as the blender text editor, let alone the host OS. But I guess that
  sort of thing should be tackled inside of GHOST. Any takers? :)
2006-06-05 15:52:42 +00:00
Ken Hughes
a57bb6bee1 Bugfix #4081: support for OpenBSD platform for scons. Big thanks to Nathan Houghton for this contribution. 2006-06-05 15:52:26 +00:00
Andrea Weikert
10bc192604 - small fix: image icons are now drawn without the white background 2006-06-05 13:08:54 +00:00
Andrea Weikert
e5218ce9aa - added saving of the image previews to the .blend file to prevent having to load the full images for the image previews
- new struct PreviewImage in DNA_image_types can in the future be moved to struct ID for storing previews for all types
2006-06-05 11:07:15 +00:00
Ton Roosendaal
6d98cce4a6 Blend method fixes by Fred van Essen.
Also renames "Lightness" to "Value".
2006-06-05 09:55:39 +00:00
Alfredo de Greef
6f0d7e8d1f bugfix #4072 added support for strandmapping, done by exporting the
strand texcoords as orco coords, so yafray doesn't have to be adapted for this.
bugfix #4254 added support for dupligroups, but might not work completely
correct yet at this point, more testing needed.

Also added some missing parts from the code apparently removed at some time.
Mainly having to do with dupliverts, cam.info for aspect ratio/ortho mode/etc.
Header stats (render window) should now work again too.
Fixed missing last tile draw of render window.
Added the missing const_cast in the win32 part of the xml export code.
2006-06-05 02:24:12 +00:00
Matt Ebb
ac27f21b36 * Made the emphasis on every 10th 3D View grid line brighten instead of darken,
if the grid colour is brigher than the background colour (so it increases
contrast in all situations)
2006-06-05 02:17:24 +00:00