Commit Graph

6053 Commits

Author SHA1 Message Date
36bedb3d7e Bugfix #4363
In windows, without temp path set, the 'save buffers' render option crashes.

I've coded a blenlib BLI_is_writable(char *filename) to check for such
cases. This is not much needed in Blender, since the open() command is
checked for. However, file saving happens deep inside the C++ exr lib, and
it throws an exception crash when a file cannot be written.
2006-06-19 13:53:00 +00:00
03449818b3 Added a note about Draw.ColorPicker needed Draw.Register to have a non None event function. 2006-06-19 13:21:44 +00:00
cbe9fc4e44 Compositor: the default now doesn't include a Viewer node anymore, was too
confusing.
2006-06-19 12:47:37 +00:00
0953e9add4 Bugfix #4355
Group appending issue: the rules for how this works were still confusing.
In some cases you want the objects in the scene itself, in others not.

New method:

- when you append a group directly (shift+f1 -> group -> name(s)) it
  will both append the group and link objects to the current scene
- in all other cases it will only append a group itself.
  (means, you can then use "Add group" to see it).
2006-06-19 12:29:35 +00:00
2a2c5e7f4e Bugfix #4354
Fix for old (post 2.3) annoyance in UI; on redraw of the entire buttons
window, the active button (with highlight) was detected wrong. Was just
a matrix calculation on wrong moment. :)

Also: fixed tooltip for transparent material "add" option. It was talking
about "Glow", a confusing description.
2006-06-19 11:21:42 +00:00
f03ea10cee Fixed a mistake (probably mine) with the menu numbering, closing bug 4360 2006-06-19 10:51:19 +00:00
5f5ee11fcb Seems a large commit, but I also changed function names to match the new
naming convention for Compositing:

- Render Result node -> Render Layers node (name only appears in Add menu)
- Compositor image -> Viewer Node image

I've also added a version patch (2.41 saved files only) to rename existing
"Compositor" Images.
2006-06-19 08:45:11 +00:00
92522f4202 * Added and tweaked some missing menu items 2006-06-19 03:31:30 +00:00
ec8448b88d bugfix/workaround for problem with hard-coded collision margins being too large. 2006-06-18 22:10:00 +00:00
dcbcc12582 NULL check needed for RE_vertren_get_rad() when going over radio results...
Thanks Auralis for finding it!
2006-06-18 19:11:52 +00:00
2ca99a5e09 Scripts:
- Jean-Michel Soler updated the svg to obj module used by Paths
Importer (thanks!)
- user request: added option to control whether user prefers per face
(uv face select "TwoSided" toggle) or per mesh ("Double Sided") single /
double face info in ac3d exporter.

BPY:
- Blender_ShowHelp() was now crashing Blender when called for the
second time, due to EXPP_dict_set_item_str decrementing the reference
count of an object passed as argument to Blender_ShowHelp() (so not
owned by that function).
2006-06-18 19:05:51 +00:00
29b78eba6f Fix #4352
Sequencer render bug: if you use the same Scene as current Scene as a strip
(yes yes!) then ANIM didn't work. Render single frame worked.
2006-06-18 13:36:24 +00:00
2a67e98359 Bugfix #4352
More Sequence render fixes:

- on load of .blend file, with Sequencer invoking a sequence render, the
  header window matrix was not set, giving "Insane icon" prints
- option "Do Sequence" had no re-display call in end
2006-06-18 12:27:06 +00:00
94e23fe939 Bugfix #4351
ESC wasn't supported for sequence-based rendering yet.
Solved it with correctly initializing the sequence render with all
render callbacks, including render updates (which it didn't do yet).

Cleanup:

- Bug in ghostwinlay code: the get_mbut() function reads from the window
  struct if a mouse is pressed. However, when you press the mouse in the
  sequencer, which causes a render, this value was hanging because then
  the active window was a render window.

- The new render display options (image window) didn't work for sequence
  render OK. There was a recursion even, because a sequence draw command
  calls a render, which in turn now calls redraws.
2006-06-18 11:38:34 +00:00
7784ea53bf Also for new 'to image window' rendering, drawing of float buffers while
rendering now is full 32 bits. This gives drawing issues in some cards,
like ATIs.

Copied the function used for renderwindow to glutil.c, and used now in the
image window.
2006-06-17 17:07:49 +00:00
e7af9c4839 Bug #4348
Animated groups, being linked and dupli-grouped in other file, didn't
correctly calculate particles inside the group.
2006-06-17 15:14:43 +00:00
Ken Hughes
f478c9eca3 ===Python API===
Bugfix #4347: deleting vertex 0 incorrectly deleted all triangle face, since
check for v4==0 wasn't being done.
2006-06-17 14:08:15 +00:00
9b79c57f38 fixed Bullet bug: constraints didn't merge simulation islands. 2006-06-17 13:55:59 +00:00
19832a0639 Solved bad design decision in Node Editor:
The buttons uiBlock was stored in a Node, for retrieval of node buttons,
however that won't work when multiple windows show same Nodes.
Now implemented more correct unique Block names (as all over in UI), and
use that name to retrieve buttons with API call uiGetBlock().
2006-06-17 13:04:09 +00:00
b159b27329 Bugfix 4346
Node Shaders: the code checking for all required texture coordinates did
not test Groups inside a tree, so textures didn't render properly always.
2006-06-17 12:26:28 +00:00
16bce562d0 Fix for Compositor, Image node: reads now from Movie files as well.
(support was there already halfway, needed to add button and an anim check)
2006-06-17 11:40:50 +00:00
4e078c1a73 Bugfix in the patching for Stucci texture: the version code assumed that
the MTex (mapping for texture) always had a texture... which should be
tested of course. My bad!

(Thanks Plumi studio for report!)
2006-06-17 10:34:05 +00:00
5a4dc67281 Cleanup of UI for new renderpipeline
- removed "Unified" button, replaced with "HD" preset for 1920x1080 output
- removed the unused "Pass" options
- removed the unused "Strands" render-layer option

Because the internal render pipe supports this already; added two more
render-layer options:

- "Sky", to enable/disable sky render in a layer (this was part of "Solid"
  before, not so correct... to ensure previously saved files work, the
  "Sky" option is set by default when "Solid" was set. The version patching
  will do this temporally always, until we've bumped up version to 2.42
- "Edge", to enable/disable edge render in a layer. Nice for compositing.

Also in this commit: fixed warnings for exported functions for the new
Node Editor pull-down menus.
2006-06-17 10:25:07 +00:00
8918232465 This is a modified version of patch #4200
http://projects.blender.org/tracker/index.php?func=detail&aid=4200&group_id=9&atid=127

It adds platform depenant prefix to function calls
(extern on non windows platforms more complicated on windows)
So that windows plugins can reference functions inside of blender.

there is a small TODO still...
Make release should build the helper library required under windows and modify
how they build the plugins:
dlltool --input-def plugin.DEF --output-lib libblenerplugin.a --dllname blender.exe
and the pulgins should be made with:
gcc -c (pluginname).c
gcc -shared -o (pluginname).dll (pluginname).o libblenderplugin.a

Kent
2006-06-16 20:00:00 +00:00
3593d0684a Plumiferos fix-fix :)
Code to allow "Env" material to mask out ztransp gave bad AA on edges of
solid faces, when transparant was behind it.

Recoded "Env" to use index -1 in the polygon index buffer, and restored
code that caused the bad AA.
2006-06-16 19:16:27 +00:00
Chris Want
f642d54c18 When ffmpeg format is selected, make 'Video' and 'Audio' panels
as tabs of the format panel (was annoying how the format panel
would jump far to the right after selecting format' Thanks ao2
for noticing.

Note: as self-appointed code weenie, I should point out that the
ffmpeg code has a lot of tab/space indenting mixed in nasty
ways -- this should be fixed.
2006-06-16 15:43:50 +00:00
7aeba4fd0f Preview Texture for Stucci works again.
NOTE: stucci didn't return 'intensity' since blender 1.0, something that
alsways caused headaches all over (all other textures do per definition).
But, allowing stucci to return 'intensity' would break old files.

To make it work for preview, I had to solve this once. Done with a version
patch, so old files (including current 2.41!) won't read with color channel
active for Stucci textures.

(Preview.blend I saved as a 2.42 file btw!)
2006-06-16 15:31:32 +00:00
Ken Hughes
8400859f64 ===Python API===
Change to displayMode attribute to support the new render window options, and
correct description in the documentation.
2006-06-16 14:40:26 +00:00
f29e554214 This prevents to assign the built-in Images "Render Result" or "Compositor"
as texture to UV Face. Crashes in render, because memory then is undefined.
2006-06-16 13:58:45 +00:00
3356c4ba2f The new "transmissivity" option for ray-transparent now can be controlled.
By default it is disabled (depth 0.0), so rendering is as usual.

The meaning of "depth" and "falloff" will be extensively shown in the
release log pages. Coming soon!

(Patch provided by Ed Halley)
2006-06-16 13:11:21 +00:00
a33798d697 Bugfix #4341
The code added to ensure Image textures in nodes use the correct mapping
settings (UV, repeat, etc) crashed when editing non-osa cases.
2006-06-16 12:33:35 +00:00
333eae5b03 Bugfix #4343
The (SHIFT+F4) databrowser showed the library file (added some months
ago) which didn't work for extremely long directory names well.
I've recoded it, so it now only shows the .blend name, not entire path.
2006-06-16 12:17:35 +00:00
21c90425c0 Silly screens code in Blender... trying to cleanup stuff only breaks other
things! :)

Anyhoo, commits yesterday for preview panel fixes in Compositor broke the
new fullscreen render output feature. The damn curarea again yes!
2006-06-16 10:17:56 +00:00
e7b0f1f071 Bugfix #4332
Pressing ALT+W (save videoscape) in editmode gave error menu, but then the
Specials menu. Had to add a 'return 0'. Year zero bug...
2006-06-16 09:28:51 +00:00
cf9e420ad3 * Added header pulldown menus for the Node Editor. Also tweaked colours and some
of the menu organisation, consolidating the redundant 'Generators' with 'Input'.
2006-06-16 04:32:39 +00:00
f4b4a2bb50 bugfix for overwriting memory when copying library name into too short char[] 2006-06-15 19:29:25 +00:00
0b8cfd4042 Undo pushes for buttons could get cancelled out with a call to read the
queue 'external'. Happened for example in Node editor.
2006-06-15 17:25:10 +00:00
d5b3e75652 * Added a better mouse pointer for the eyedropper tool (thanks Bart) and also
some 2d scroll pointers
2006-06-15 14:22:59 +00:00
006800cd09 Halos rendered with 'line' option could deliver overflow alpha values,
needs to be clipped.
2006-06-15 13:00:28 +00:00
ba5880aa73 === preview icons ===
- changed preview type of halo materials
- halo materials are also shown with alpha=255 like in preview window
2006-06-15 11:23:51 +00:00
680eed3758 Background rendering didn't work anymore!
- STUPID mistake from me in setting the waitcursor...
- icons for UI got freed, without checking if it existed (crash in end)
- call to close mainwindow didn't check if window existed

note:
I usually test the "blender -b" case, which should start blender,
initialize all, free all, and print "blender quit" to signal all is fine.
2006-06-15 11:15:25 +00:00
ecb204fa7c Bugfix #4338
When Edge render was choosen, the zbuffer values were altered, causing a
halo render to go wrong.
2006-06-15 10:10:27 +00:00
6deb0cf41a Small fixes in 3d window preview render, discovered while making regression
files for it :)

- on load, the rendering was done twice
- changing area size didn't correct the render
2006-06-15 09:44:52 +00:00
d3a5f98823 Bug fix, reported by lukep at mailing list. Blender doesn't craash, when
metaball is selected. Wrong recreating of existing Bounding box was reason
 of crashes.
2006-06-15 09:35:09 +00:00
Chris Want
ed00ef33c4 Changed some references to 'size' to now refer to 'scale'. If anybody
sees a reference to size, as it pertains to a 3D object, please let
me know.
2006-06-15 04:13:26 +00:00
d0fb19bbe5 Fixed a bug where the start of the wave was not drawn, also added verbose commenting and cleaned up the wave allignment. 2006-06-15 01:19:10 +00:00
0604c3a4ec BUG #4323:
Help->System->Benchmark (the Tkey benchmark) returned timings  even if
user cancelled the pupmenu. Was just missing a check
for -1 in toets.c -- wonder how old this one was... Reported by Wim Van
Hoydonck.

Scripts:
- Updated Jean-Michel's hotkeys script for Blender 2.42.
- Followed Pieter Visser's suggestion and added version info to the menu
names of the older collada scripts (v1.3.1).

Thanks guys!

Note for builders: nevermind if you already compiled 2.42RC1, these
updates are not critical at all and can be left for the release or RC2.
2006-06-14 21:04:53 +00:00
1d44ad8b4c renamed 'Size' to Radius in the logic buttons (This naming was confusing, as the 'size' was only used as 'radius' for a rigid body with 'sphere' shapel. It has no effect on box, convex, cylinder and other shapes.
Don't worry, this is unrelated to recent Size -> Scale renaming.
2006-06-14 21:02:03 +00:00
b535b671b3 interim fix for the low end integrated intel graphic cards
until a better solution is found
2006-06-14 18:04:57 +00:00
c0c7c4ba14 Fixes for preview render in buttons:
- restored type choice compatiblity (plane, sphere, cube)  with 2.41   release (sorry, will break saved files with CVS... my fault, should
  have known.)

- removed lamp choices (lights now are different per preview, no fixed
  choices).

- added checkered plane behind the plane preview. nicer for halos.
2006-06-14 18:04:26 +00:00