Commit Graph

7114 Commits

Author SHA1 Message Date
Ken Hughes
da33f51b76 ===Python API===
Moved .up() and .down() methods from Modifier API to Modifier sequence
API (also renamed them to moveUp() and moveDown() ).  Locating methods
which modify the "parent" structure in objects didn't seem consistent.
2006-06-14 04:41:31 +00:00
090678de66 Bug 4313
Particles: option "even" failed when faces where all exactly same sized,
then it sometimes skipped entire faces.

Just the regular <1.0 that had to be <=1.0
2006-06-13 20:33:45 +00:00
bbc6468b34 Restored the pretty lousy but still popular stars render in blender.
Hope our sky guru can come with something cooler for next release!
2006-06-13 20:00:14 +00:00
adff7aacad bugfix 4324
Old issue... Blender saves jpg RGBA files. That's unsupported in all
programs except Blender, always a source of problems with that feature.

Now it just falls back to saving 24 bits when the "RGBA" option is set.
2006-06-13 18:51:52 +00:00
9028f6cdcd Altering the rules for opening a blender area window for render output.
- if current visible area shows render result; use this
- else: search for largest non-Image area (so it won't use Texture or
  Composite outputs)
- else if only 1 available window it uses that one.

Works for both new options (fullscreen too). Especiall fullscreen works
much better, since it uses an own designated Image Window by default.
2006-06-13 15:50:05 +00:00
f4dcb244f5 Lens flare rendering back.... completely forgot about this antique
feature.

It doesn't render preview yet... for that we have to fix preview system.
2006-06-13 14:51:17 +00:00
Chris Want
0065151ad6 One half of Bug #4320 fixed: The 'linked scale' button in the transform
properties panel now handles negative numbers.

I don't know how to solve the half of the bug related to the tab
key though ...

More info here:
http://projects.blender.org/tracker/index.php?func=detail&aid=4320&group_id=9&atid=125
2006-06-13 05:19:43 +00:00
4aaa44811e Plumiferos crash report:
2006/01/28 commit from Campbell forgot to check for proper pointer:

if(seq->sound->stream==NULL) return;

should be:

if(seq->sound==NULL || seq->sound->stream==NULL) return;
2006-06-12 21:31:02 +00:00
b58998729b Last minute patch from Chris Want
Nkey "Properties Panel" now has Dimension ("Dim") buttons too.
This reads from the actual bounding box value to see the size. Note that
dimensions for animated & deformed objects will change per frame.

(Cleaned up buttons layout for patch, and added support for Curve, Text and
Surface objects)
2006-06-12 20:01:18 +00:00
98b8b876b6 - changed back SHGetFolderPath to SHGetSpecialFolderPath to support older Win98 and Win95 systems without having to redirstribute shfolder.dll
- MINGW should compile too now (was problem when fucntionality was first introduced), tested with MINGW 5.0.2 (scons)
- added -lshell32 for the dependency on MINGW
2006-06-12 19:13:17 +00:00
43326bb686 Another fix to enable painting in a rendering. Paint works, but it's not
persisant (since float buffer is the source, converted to 32 bits for
drawing only)
2006-06-12 19:05:58 +00:00
3458ed4753 Bullet, bugfix: don't simulate when substeps are set to 0 2006-06-12 18:47:56 +00:00
e65df3e89d attempt to fix the release makefiles 2006-06-12 17:15:31 +00:00
00e1187a18 UV/Image Editor: Paint option crashed when using on float images.
Should support this once too... but that's another project.
2006-06-12 15:28:47 +00:00
bad72cec61 New feature! (Well, replacement for the exisiting cumbersome "DispView")
Next to the "DispWindow" there are now two new choices:

- Display render output to Image Editor
- Display render output to Screen-sized Image Editor

Both options won't open a 2nd window anymore, which makes work quite more
smooth even, especially because 'focus' isn't lost. Further it fits in the
'single window UI' paradigm of Blender. Should have been done 10 years ago!

Lastly it might bypass issues with X11... having 2 windows with opengl
context is not always stable in Linux.

This option uses an identical trick as for the Compositor viewer, using an
Image block with a fixed name ("Render Result").

The flow, when invoking a Render, goes as follows:
- first it checks if there's an Image Editor visible displaying the "Render
  Result", if so then it uses that area-window.
   (Use this option for dual-monitor setups for example, a render will always
   go to the same location then)
- else it checks if there's an Image Editor open in general, it then
  assigns that window the "Render Result" Image.
- else: it searches for the largest Area in the screen, and turns that into
  a temporal Image Editor showing render output.

After a render, an ESC will push back the former view, if the Area type has
changed.

Same rules apply for the "Full Screen" option. Here an ESC will always go
back to the regular Screen, and restore Area type if required.

While rendering, the queue for the renderwindow isn't handled yet, so you can
not zoom (nor get full redraws), as for the regular render window.

Existing conflicts:
- in FaceSelect mode, the Image editor enforces to display the face texture
  after rendering again.
- when using an Image window for compositing, you'll lose the Viewer output
  on a render.

Implementation note:
While rendering updates, nothing is drawn in frontbuffer anymore. That's
good news for b0rked OpenGL drivers (and faster). However, for the few
OpenGL cards that don't do a "swap copy" but a "swap exchange" you get
issues... has to be worked on. I'm afraid we have to drop frontbuffer
drawing altogether.

Other fixes:

- Hotkeys NumPad 1, 2, 4, 8 will set zoom levels (was half coded only?)
  Use SHIFT to zoom out (smaller).

- Rendering Tile updates still had draw errors on edges of tiles, in OSA
  only. (Caused by commit 4 days ago)
2006-06-12 14:39:08 +00:00
b0a22902ec - another minor solver update to fix
obstacle fluid surface generation bug
- also contains some code clean ups
  and safer initializations
2006-06-12 12:55:51 +00:00
a0d94e6727 - added fix for fluidsim copying bug
(surface mesh structs werent handled correctly,
  copying is now done in a new function)
2006-06-12 06:18:57 +00:00
Ken Hughes
9262cdbd0e Remove "print sys.version_info" accidentally left in from debugging. 2006-06-12 03:20:29 +00:00
Chris Want
199cece516 In the previous mirror+clipping+extrude commit there was a potential
for a crash since the list of modifiers was being accessed before
testing whether we are actually in editmode (thanks Ben Batt).
2006-06-12 01:59:50 +00:00
Chris Want
2225507623 As discussed at the meeting, the hiding of occluded verts in editmode
is now turned *off* by default (manipulators stay on though).
2006-06-12 01:45:38 +00:00
873e2eaae3 == Python Button Evaluation ==
Users can write any valid Python expression (that evals to an int or float) inside Blender's gui number buttons (preceded by #) and have them evaluated to their actual int or float value.

Button Evaluation has access to the same modules as PyDrivers.

For example:

#1.0*9-2.3
#ob("Camera").LocZ
#1.0/ob("Cube").LocX
#math.sin(math.pi) -- or simply #m.sin(m.pi)
etc
2006-06-12 00:10:00 +00:00
7cad5ce842 Bug #4279: doc browser script broken.
http://projects.blender.org/tracker/?func=detail&aid=4279&group_id=9&atid=125

Thanks Wim Van Hoydonck for report / fix.
2006-06-11 21:35:14 +00:00
3c512562cc === Editing Tools ===
As suggested, adding Page Up and Page Down to the hotkey list to change the size of the circle of selection, using brush select (BB).
This is done to bring it in line with transform's PET size adjustment.

Two hotkeys to rule them all and to the reference manual binds them... :P
2006-06-11 20:19:41 +00:00
c2df22f306 Commit from Alfredo to support yafray sub-rect updating required an
additional initialize for scanline length in Blender.

(Error: only the entire tiles were visibly updated while render)
2006-06-11 19:53:24 +00:00
7840570b16 The "ESC doesn't cancel renders" problem:
Changing from ITIMER_VIRTUAL to ITIMER_REAL solved the issue for all
who tested it (Hos, pidhash and me, at least). Ton said to commit it so
more people can test, but other solutions may still be investigated.

The change is only for POSIX systems (so Windows code was not touched).
2006-06-11 18:29:25 +00:00
761190a14d Fixed bug that the preview icon for world wasn't showing because sky is rendered with alpha=0
Temporary fix - rendering sky with alpha=1 could become render option in the future. Too risky to change now shortly before release.
2006-06-11 16:19:42 +00:00
Ken Hughes
962c81208b ===Python API===
Removed recently added Material API methods getRbFriction() and
getRbRestitution().  Erwin had already added attributes rbFriction and
rbRestitution, and current API design goal is to eventualy replace
all getStuff()/setStuff() with attributes.
2006-06-11 15:35:40 +00:00
11c70ed57f Bugfix #4308
ANIM render with "Do Sequence" set, without sequence strips, crashed.
Addded empty black image allocation.
2006-06-11 11:01:30 +00:00
7c8008da58 Bugfix 4312
Preview render in 3d window could crash when a re-render was invoked before
the render was initialized even, reading a NULL pointer for scene.
Happened on frantic & quick editing.
2006-06-11 10:13:00 +00:00
29bcb903e9 Bug fixes of own collection:
- Selection wasn't possible on center dots in Object mode. I keep adding
it and it keeps disappearing again. Added clear comments in code too.

- Particles: (debug still) print "build particles" happened on each redraw
  when "Display percentage" for particles was set to zero.
2006-06-11 09:43:05 +00:00
cbf1dc9e21 Bugfix #4299
The Scene audio.mixrate variable was zero on creating new scenes, causing
synced playback to fail.
Added initialize in kernel, and patch in buttons drawing to set the value
for wrongly saved files.

(Pixelshading: small correction for more optimal code)
2006-06-11 09:06:07 +00:00
b2157d2fff Bugfix 4304
Another case where the preview icons fail... when images cannot be loaded,
the icons code crashed. Added tests for that.
2006-06-11 08:22:15 +00:00
862ac04494 Remove some more unwrapper debugging code. 2006-06-10 20:35:54 +00:00
56e2aa7001 Fix for bug #4276: LSCM unwrap crash.
Set ABF as default unwrapper.
Disable some debugging prints in unwrapper code.
2006-06-10 20:06:41 +00:00
c4229b0272 ==Sequencer==
Fixed the blur-plugin (and maybe a lot more) crashes by expecting
future float-buffer aware sequencer-plugins to have a bumped PLUGIN_VERSION
number. Since quality and speed is degraded by converting the float
buffer first to byte, performing the effect on bytes and then converting
back again an additional warning is displayed in the effect strip,
suggesting to update the used sequencer-plugins.

Fixed some more crashes along the way.

Float buffer aware sequencer plugins should
- first check, if the output-ibuf has a rect_float
  => perform all operations with floats (input and output)
- if not: perform everything on bytes (intput and output)
2006-06-10 19:56:28 +00:00
Stephen Swaney
43e776690f removed extra qualifier on class memeber bool BOP_Mesh::isClosedMesh(); 2006-06-10 17:50:52 +00:00
d9081db9e0 Thought to be nice for for backwards compat && users... so the old
"Backbuf" image render option is back :)
Nicer coded, using Image texture functions.

If you want 100% reliable pixel to pixel accuracy you have to use
compositing. (Old Backbuf didn't do this accuracy either btw).
2006-06-10 16:30:44 +00:00
Ken Hughes
6d2adf66e5 ===Tools===
Another boolean bugfix: don't add faces which contain only two vertices
(actually, triangles with two identical vertices).
2006-06-10 16:00:38 +00:00
Ken Hughes
7fcc5800ae ===Tools===
Adding back some code to booleans that got lost in the Orange merge.

I've also added back the code which checked that meshes were solid
("manifolds") but have the actual check in
intern/boolop/intern/BOP_Interface.cpp, since from my testing it was
not causing crashes or hangs.  It *can* give odd results depending on
what you're trying to intersect, but seems useful.  Additionally, since
existing bugs in the current code can create non-solid/non-manifold
meshes, seems hypocritical to create a mesh that can't later be used in
another boolean operation.
2006-06-10 15:47:19 +00:00
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
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
ad3290d3d1 Makefile change for OSX plugins release build:
- the .so files are copied to the installation dir plugin/ directory now
  (other platforms copy it to the .blender dir, which doesn't exist there
  for OSX)
- plugin C files got #defines for return values, was old patch I applied,
  but was never committed
2006-06-10 10:47:21 +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
c7471a534e ==Sequencer==
- removed wav_spec, that isn't used at all, fixing a warning message
2006-06-09 20:23:56 +00:00
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
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
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