Commit Graph

11685 Commits

Author SHA1 Message Date
Brecht Van Lommel
5b4376a137 Bugfix for depsgraph error leading to lagging, caused by local
constraint ipo drivers and proxies.
2008-02-14 19:08:24 +00:00
Ton Roosendaal
58046762f8 1) Revert previous commit, rendering negative won't work that simple...
Needs much more attention.
2) Fix for zcombine node: 
   - it skipped execution when no image rgba out was used
   - didnt work for FSA yet
2008-02-14 18:56:14 +00:00
Ton Roosendaal
3c2adb1801 Allows negative light to result in negative diffuse and 'combined'
when you have world exposure set. (it used to clip it in 0-1, now it
mirrors the values)
2008-02-14 18:00:58 +00:00
Joseph Eagar
4b784f4311 stupid me! if you move var declarations sometimes you have to add
assignments outside of the var declarations!
2008-02-14 15:14:01 +00:00
Joseph Eagar
09cb8a9f42 in my tiredness I didn't declare some vars at the top of the block. 2008-02-14 14:57:41 +00:00
Joseph Eagar
ac5d28a13c Added another 2 checks for if an image has the premul flag set, 1 in the image
compositor node, another in render_realtime_texture.  Note that multilayer images 
in the image compositor node do not respect the premul flag (though I did write 
commented out code for it).

As far as I can tell, the premul option never worked for multilayer images in the
image node, so I'm a little nervous about making it work properly there.

ton, any comments?
2008-02-14 13:36:59 +00:00
Joseph Eagar
6907bcc79b Reverted the change of auto-turning on premul for images from last
commit.  I still think this is a good idea, but needs more discussion.

Basically, the way the premul option worked before is it actually
changed the image data to be premul (for each pixel it multipled r,g,b by a) when
loading an image.  So if a user wanted his image to be key, yet
still work in the renderer (which expects premul) he'd be stuck.
Also, it was kindof confusing how if you painted something in the image,
then saved it with premul on, when next you loaded the image it'd have
changed (especially since the image editor painting seems to paint in
key, not premul).
2008-02-14 12:44:27 +00:00
Campbell Barton
4eb064a001 Object drawing was setting switching glDepthMask(GL_FALSE); even when no particles were drawn.
Added an annoying message when people press the F key to say FaceSel mode was removed.
2008-02-14 12:34:54 +00:00
Joseph Eagar
139b612b09 The "premul" option for images had a very bad implementation. It
basically flagged the image so that on next load/reload, the image
data would be converted to premul.  This was very confusing to the
user, as it meant premul wouldn't take effect will the image was
reloaded, and it would also change the image data, which the user
might've been painting.

To fix this, I've removed this behaviour and instead made the premul
option apply at render time.  During render while evaluating an image
texture, if the image has the premul flag set then the premul operation
is done on the texture result data, thus not touching the image data
at all.

Also, I've made premul be turned on by default.
2008-02-14 12:19:37 +00:00
Joshua Leung
4339c32c6c Bugfix #8283: PyConstraints menu problems
The menu listing the scripts available for use was not working correctly for newly created PyConstraints. This was caused by a missing initialisation for the 'active' index.
2008-02-14 10:42:53 +00:00
Campbell Barton
4cb91914c9 make the file and image selector convert relative paths. 2008-02-14 10:18:18 +00:00
Joshua Leung
3f03fff557 == Shift-G - Select Grouped menu in PoseMode ==
In PoseMode, the Shift-G menu now presents options for selecting bones in the same layer or the same bone-group.
2008-02-14 06:31:40 +00:00
Joshua Leung
5beaeb9f4b == Custom Bone Colours - Per Group Colour-Sets ==
Now it is possible to define a custom colour set per bone group. This allows rigs to look consistent across different computers with different themes. As such, the bone-groups buttons have been reshuffled to present the settings in a better way.

Colour sets are now selected from a menu with descriptive names, instead of using a slider. Choose the 'Custom Set' entry to use a custom set of colours for the active group. The sets of theme colours have been retained, and can be used directly, or as the basis for a new custom colour set (when any one of the colour controls is touched). 

For bone-groups that haven't had any custom colour set used yet, a default 'test' set is used. This uses bright versions of the RGB colours.
2008-02-14 05:00:23 +00:00
Janne Karhu
b4f975b91a Particles' angular velocity mode "velocity" was actually just a duplicate of "spin" without any angular velocity, so it was removed. 2008-02-13 21:06:37 +00:00
Willian Padovani Germano
b58274abef == BPython API ==
Fixing mistake in Blender_ShowHelp() function: argument to Blender_Run() should be passed directly as a string, not encapsulated in a tuple (aka "s", not "(s)").
2008-02-13 20:42:36 +00:00
Janne Karhu
7109955904 It seems my fix for bug 8274 broke hair, so reverting that and opening the bug again in the tracker :) 2008-02-13 18:57:28 +00:00
Janne Karhu
cc64c96c51 Fix for bug: [#8274] Particle System cannot be persuaded to recalculate
-The exact time for a particle being unborn or alive needed some adjusting
2008-02-13 15:33:37 +00:00
Brecht Van Lommel
eecd818304 Fix for bug #8206: crash with 0 particle hairs and softbody for the
particle system.
2008-02-13 14:40:43 +00:00
Brecht Van Lommel
ffa0fd2f2e - Fix for bug #8264: SSS turned off by "default" render settings button,
I also added a button to control enabling/disabling SSS for render.
- Fix for potential halo sorting crash.
- Add a newline at the end of a file to remove gcc warning.
2008-02-13 14:29:06 +00:00
Campbell Barton
bc9848f7e6 Added a global string to be used for the tempdir. since the user preference is not loaded in background mode and the user preference is not validated and has no fallback.
'btempdir' is set with BLI_where_is_temp() - This tries to use U.tempdir but falls back to $TEMP or /tmp/
2008-02-13 13:55:22 +00:00
Matt Ebb
e26b5aa9c4 * fix for [#8085] Glare node crashes on inputs with < 4 colour channels
I had this assigned to Alfredo for a while, but he hasn't replied to the tracker at all, so I suspect he's not around. I'll commit this now to prevent crashes.

Some of the code in the glare node assumed that all buffers will be 4 channel RGBA, when in fact it was possible to give it a VEC3, such as a spec pass with no alpha, which would crash it. This fix just duplicates the input to a new temporary RGBA buffer to work on, if it's not already RGBA.
2008-02-13 13:36:35 +00:00
Matt Ebb
08d54e71ea * "Drag Immediately" transform user preference.
It's already supported within transform, was previously known as 'tweak mode' and for some odd reason was a compile time option. This brings it to a user preference (in 'Edit Methods' section).

Basically it means that you don't need the extra click at the end to confirm a drag-move transform, if you're already dragged, you can just let go of the mouse rather than needing to click again. It's a lot more comfortable when you're used to using other applications as well as blender, and much more sensible for tablets.

This started life as patch #7144 by Ed Britton, but this implementation has been changed considerably.
2008-02-13 13:26:46 +00:00
Brecht Van Lommel
78c3692b2e Fix for bug #7863: AO made normal map baking unnecessarily slow.
Fix for bug #8226: approximate AO doesn't bake.
2008-02-13 13:25:19 +00:00
Brecht Van Lommel
b12793fb4f Render Simplification
This adds a few settings to control global render quality, for faster
renders when tweaking lighting etc. The implementation is not so great,
and this should really be part of a proper render profile and preset
system. So for now it's a hidden Peach feature, enabled by setting rt
to 1. Before the next release, I'll either remove or improve it.

Settings are:

- Maximum subsurf level
- Child particles percentage
- Maximum shadow map samples
- AO and SSS quality factor
2008-02-13 11:18:08 +00:00
Daniel Genrich
3192263367 Cloth: changes in editmode will influence the velocity by 10% now, changed/add some update calls for the implicit function 2008-02-13 10:44:36 +00:00
Brecht Van Lommel
5c7f41118c Bugfix: approximate AO with pixel cache & osa now should have fewer
black pixels.
2008-02-13 10:44:12 +00:00
Joshua Leung
0f68741217 == Action Editor - Insert Key+ "Active Group" ==
"Insert Key" menu in Action Editor (IKEY) now has a new option: "In Active Group". This only inserts keyframes in the active action group (if available).
2008-02-13 06:43:31 +00:00
Ken Hughes
60378a306c Python API
----------
Added missing lamp.falloffType attribute.  Also fixed typo in Render docs.
2008-02-12 19:29:12 +00:00
Nathan Letwory
df0d81f3c7 * fix provided by Stefan Birgmeier (qwequ777): int pos may lead to crashes on 64-bit systems. PyDict_Next takes a Py_ssize_t, not an int (tsk tsk). 2008-02-12 18:56:32 +00:00
Brecht Van Lommel
c5f84c6684 Bugfix for use of unitinialized values when drawing hair dupli particles. 2008-02-12 17:24:15 +00:00
Campbell Barton
714d532b8e Pointcache for unsaved files is saved in /tmp/blendcache_untitled/... instead of not generating pointcache at all, be careful since the temp path can be NULL or missing.
This is messy because the files can be left there when blender quits, however saveBuffers and sessions alredy do :/ Some cleanup function needs to Blender that deals with this!
2008-02-12 17:11:45 +00:00
Janne Karhu
a6f33fc444 Fix for bug: [#8271] Changes to the texture settings for particle attributes are not updated
- Material buttons code didn't set particles update flag
- Small change to how particle emit time is interpreted from textures, now the "time" texture output can actually be used for something
2008-02-12 16:36:03 +00:00
Brecht Van Lommel
66e69965b1 Bugfix: when defocus node had nothing to do and just passed on the buffer,
it didn't correctly deal with pointers, gave a crash in some circumstances.
2008-02-12 15:34:26 +00:00
Janne Karhu
f695c1524c Fix for bug: [#8269] Particle / Vizualization / Draw / Disp reduces rendered particles
- Hair didn't update the visibility flag of each particle
- Changing the disp value gave a too strong update call to particles
- Changed disp value behavior for dynamic particles a bit, now all particles are always calculated for uncached frames so that every particle gets it's data cached. Now the disp value actually does what it's supposed to do, it alters the amount of particles DISPlayed in viewport, but doesn't change the simulations. (With old particles it was possible to only calculate the disp amount of particles too as everything was always recalculated from scratch anyways, but now that particles are more complicated and cached etc. it's not an option anymore.)
2008-02-12 15:26:20 +00:00
Campbell Barton
3974a0a3c1 Added python access for baking
http://www.blender.org/documentation/246PythonDoc/
http://www.blender.org/documentation/246PythonDoc/Render.RenderData-class.html
http://www.blender.org/documentation/246PythonDoc/bpy_api_2_46.zip
2008-02-12 14:47:55 +00:00
Janne Karhu
c371346601 Fix for bug: [#8247] Hairs that are added in particle mode act and render unpredictably when soft body is activated
-softbody BodyPoint indexes were created with a lag of one leading to use of wrong softbody points for particles when creating path cache
-interpolation points for softbody hair weren't chosen optimally when not yet at the end of a hair
2008-02-12 13:38:07 +00:00
Daniel Genrich
a21c765f4b Cloth: Fix order in collision loop -> solving selfcollision could result in new cloth-object collisions, adjust 'collision quality' for the number of loops taken 2008-02-12 12:02:39 +00:00
Daniel Genrich
bbaec35734 GUI fixes: some minor gui tweaks for collision modifier 2008-02-12 11:31:22 +00:00
Daniel Genrich
e82484b0bb Cloth: New: *simple* (OpenMP enabled) Selfcollisions available 2008-02-12 11:04:58 +00:00
Janne Karhu
695ea7230a Fix for bug #8245. 2008-02-12 00:34:53 +00:00
Matt Ebb
5c13a35d63 * Fix for crash, drawing particle systems with 'col' set to draw strands in material colour, but no material (null pointer). 2008-02-11 23:24:16 +00:00
Martin Poirier
798d8ebf26 == Warning/Bug Fix ==
Bone extension string was not long enough for new extensions .bot and .top. This was surely causing some stack memory to be overwritten...

Warning reported by JMS on french newsgroup.
2008-02-11 22:18:41 +00:00
Daniel Genrich
bb715a93b9 Cloth: 1. Speedup of collisions (up to 50%, see new dancing ballerina stats here: http://www.dldw.de/tmp/index.php?file=i_cloth-kdop-dancingb.jpg ; 2. changed vertex paint reset behaviour to only reset cloth if vertex group is really used 2008-02-11 20:40:22 +00:00
Campbell Barton
c82e9d0cc2 sometimes a posebones BONE_TRANSFORM would be set and cause RelaxPose to add unexpected keyframes. 2008-02-11 19:53:04 +00:00
Campbell Barton
79c0360e88 IDP_CopyGroup wasn't copying the length, thanks Caedes for finding this one 2008-02-11 18:26:19 +00:00
Janne Karhu
e706fc522b Fix for bug #8186. 2008-02-11 17:24:03 +00:00
Janne Karhu
61d84eeb2d Fix for bug #7857. 2008-02-11 14:38:30 +00:00
Daniel Genrich
69e6a6cbc9 Pointcache: Fixed non-availability when blend file was loaded from command line and also another case where you startet from an unsaved blend and switched to a saved one; Cloth: Fixid mass init, little speedup for collisions; Collision Modifier: More generalized it 2008-02-11 13:30:52 +00:00
Brecht Van Lommel
fdbfd7e3a8 Bugfix: render crash with env material setting and ISB. 2008-02-11 13:04:52 +00:00
Campbell Barton
f33faa8f5f python scriptlink for ObjectUpdate and ObDataUpdate, Redraw events are not practice in many real world cases, this can give more specific updates.
Discussed with Caedes, Brecht and Ton, can rework if needed.
2008-02-11 12:01:14 +00:00