Commit Graph

6984 Commits

Author SHA1 Message Date
Ton Roosendaal
7cb76f4bf9 Render Baking candy: while baking, the UV Image window shows the progress
in rendered images, once per second. Also switches to other images.

This happens threaded, so might need a good test :)
2006-11-22 18:45:34 +00:00
Jiri Hnidek
d8f99cf5c2 - eve->tmp.l is used for storing temporary indexes (not prev pointer)
- several for loops were deleted
   - several warnings were removed
2006-11-22 16:44:27 +00:00
Chris Want
0b0c8c9244 =Texture Plugins=
Added a callback instance_init() so that any particular instance of a
texture plugin can initialize data. Updated the clouds2 and tile example
plugins to have a (dummy) call back.
2006-11-22 15:53:46 +00:00
Ben Batt
bb7ad80269 Upgrades to the UVProject modifier:
- New perspective projection capability. If a camera is used as the
   projection object, the modifier detects whether to do perspective or
   orthographic projection based on the camera type. If any other object
   type is used as the projection object, orthographic projection is used.
 - Orthographic projection actually works properly now.
 - The projected UVs are scaled and offset so that the image is centred in
   the projecting camera's view.
 - AspX and AspY inputs have been added to control the aspect ratio of the
   projected UVs.

Also:
 - I have added the Mat4MulVec3Project() function to BLI_arithb.h; this
   function converts a 3-dimensional vector to homogeneous coordinates
   (4-dimensional, with the 4th dimension set to 1), multiplies it with the
   given matrix, then projects it back to 3 dimensions by dividing through
   with the 4th dimension. This is useful when using projection matrices.
2006-11-22 15:09:41 +00:00
Ton Roosendaal
03f4a36d73 Crash in sequencer caused by incorrect checking for 'last seq'. This fix
doesn't make the feature peter added (to set last-seq based on selection)
work... I'll ask him to review code.
2006-11-22 14:43:59 +00:00
Ton Roosendaal
7ca8967824 Bugfix #5282
UV edit option 'constrain to rectange' didn't restore correctly on ESC.
(note, on ESC it doesn't undo the constrainting, in case the edited face
 was not a quad).

Also:

- The UVs pulldown in Image window was far too large, moved the scripts to
  an own sublevel menu
- Previous commit in vpaint.c had warnings
2006-11-22 11:25:39 +00:00
Ton Roosendaal
7267159afb Bugfixes:
- SHIFT+K in weightpaint+faceselect combo crashed (caused by my commit for
  real undo in painting)

- weightpaint+faceselect combo didn't draw correct anymore (caused by
  commit for custom mesh layers)
2006-11-22 10:32:41 +00:00
Brecht Van Lommel
cca16111bf Fix for bug #5280:
Crash transforming UVs with only image window open, new transform snapping
code didn't check if a 3d view exists.
2006-11-22 02:16:29 +00:00
Ken Hughes
2dbed48e24 Python API
==========

Bugfix #4951:  This might be a serious change for python script writers.
-- ob.getMatrix('localspace') did not return the correct matrix when the object
   had a parent; this has been corrected.
-- ob.setMatrix(m) did not work predictably (more correctly, in an easy-to-
   predict manner) when an object had a parent.  The method has been changed
   so that if thee is a parent, it ASSUMES the matrix is "localspace",
   relative to the parent.  The documentation now states this.
-- ob.mat and ob.matrix are now read-only attributes, while ob.matrixLocal
   (which calls Object_setMatrix() ) is now read-write.

Ton is not thrilled (is that a fair summary, Ton? ;-) with this method since
the ob->obmat is calculated from the loc/rot/size attributes of an object.
I'll let him speak on this, but I believe his desire is for this method to be
deprecated in the future and replaced with something else.
2006-11-21 21:15:15 +00:00
Ken Hughes
973e8920f0 Python API
==========

Fix epydoc warnings after IDProperty addition to Material.py
2006-11-21 19:17:13 +00:00
Ken Hughes
ed3559aa8e Python API
==========
Bugfix #4905:  correcting errors and out-of-date NLA API documentation.
2006-11-21 19:00:12 +00:00
Ton Roosendaal
967869fecd Bugfix #5277
Bake-render:
Quad faces still didn't get handled properly, error visible for vertex
color or UV textures.

Also: added error meny when a Bake cannot work because there are no Images
or no Images with buffers
2006-11-21 18:09:32 +00:00
Brecht Van Lommel
4cf4b4d0d2 Fix for loading UVs in linked meshes. 2006-11-21 16:54:00 +00:00
Ton Roosendaal
20e6dc7f57 Bugfix, own collection:
Random seeding is still not perfect in render, especially lack of good
thread support still.

- VectorBlur node was calling seed for each exec, causing other nodes to
  get fixed random too.
- added seed in non-OSA main loop for render
- use BLI_srandom, is better than BLI_srand
2006-11-21 15:52:45 +00:00
Brecht Van Lommel
9f9d99ef8d This adds temporary upward compatibility for TFaces, until the 2.43 release,
by writing the old struct also.
2006-11-21 14:46:17 +00:00
Brecht Van Lommel
17a6338736 Fix for joining meshes with tfaces. 2006-11-21 14:26:25 +00:00
Ton Roosendaal
2447adab7a Bugfix #5258
UV edit: option "project from view 1:1" included object center and clipped
min/max wrong, so off-centered faces didn't get a 1:1 projection.
2006-11-21 13:39:31 +00:00
Ton Roosendaal
a9fef5a292 Bugfix #5270
CurvePaths: if the path has vector handles, or when it's a Poly curve, the
amount of interpolated points on the path was too limited (6 actually).
Now the 'resolu' of the curve defines the amount of interpolated points.

This enables motionpaths or deforming with sharp corners.
2006-11-21 13:07:16 +00:00
Ton Roosendaal
e75a2773fa Bugfix #5265
3D window, preview panel, didn't give correct specular for Ortho.
The view-vector was flipped negative then, so more view-depending
code (like tracing) would go wrong then.
2006-11-21 12:41:07 +00:00
Erwin Coumans
8ad6d7f401 more Bullet 2.x upgrading. fair amount of functionality is now restored, not all yet. 2006-11-21 12:26:05 +00:00
Ton Roosendaal
efde6ecbc4 Fix for commit from Brecht:
2006/11/19 00:07:32 CET
Fix for bug #5250: inaccurate conversion between edit and pose mode bones.

Two very bad bugs:
- replacing atan() with atan2() should also remove the M_PI correction!
  This is the equivalent:
    angle=atan(x/y); if(y<0) angle+=M_PI;
    angle= atan2(x, y);

- the new NormalizedVecAngle2() call was negating an input vector, causing
  calling code to screw up. All arithb.c calls should not alter input.
2006-11-21 10:52:11 +00:00
Ton Roosendaal
823e71e757 RESCUE COMMIT!
Yesterday's commit from Brecht broke armature editmode, damaging armatures
in a way you cannot rescue. This rewinds the main changes. After commit
I'll try to find the error...
2006-11-21 09:26:59 +00:00
Erwin Coumans
1b09386164 updated CMake files for game engine for Bullet 2.x upgrade 2006-11-21 06:37:01 +00:00
Nicholas Bishop
ba32e1e2fa Changed the sculptmode undo system slightly to make it easier to improve/extend. Should be helpful in integrating multires into the undo system better. 2006-11-21 04:03:39 +00:00
Matt Ebb
2d0a83ba09 * Show renderability toggle for all objects, since they might be used
as group duplicators, d'oh!
2006-11-21 03:51:08 +00:00
Matt Ebb
476af8c06a * Dupli objects (dupliverts, dupligroup, etc) now get invisibility based on their
parent object, not the original instantiated objects. i.e, if an object is invisible,
its child dupli objects will be too.
2006-11-21 03:22:34 +00:00
Joshua Leung
0d56a6e319 == Action Editor ==
Just a minor little code cleanup that I partially started in another one of
my commits.

The implementation of the showsliders stuff was pretty ugly with exported
globals (correct terminology?) used to store whether sliders were shown
in the action editor for shapes. This is now a flag in SpaceAction, so the
visibility status of markers is now saved in files.
2006-11-21 02:31:19 +00:00
Matt Ebb
1b24f49513 * Modified version of patch #5109 by Onur Yalazi, 'view camera selector'.
This appears as a new 'Cameras' menu in the 3D View's View menu, containing a
command to set the active object as active camera, and a list of the available
cameras in the scene to choose from.
2006-11-21 01:38:28 +00:00
Matt Ebb
3d29a7c7ef * Tweak to show invisible objects if they are being edited in edit mode 2006-11-21 01:11:59 +00:00
Erwin Coumans
46234f90ce Removed old Blender/extern/bullet, and upgraded game engine to use Bullet 2.x
All platforms/build systems: either upgrade to use extern/bullet2, or disable the game engine until the build is fixed.
2006-11-21 00:53:40 +00:00
Erwin Coumans
3b91d4e30a Step 1 of Bullet 2.x upgrade:
Temporarily disabled game engine for scons and Makefiles (nan_definitions?), this to upgrade to Bullet 2.x

scons for Darwin, Linux, BSD3, SunOS5, Win32, and Makefiles should not compile game engine right now.
CMake and MSVC needs still disabling of game engine.
2006-11-21 00:14:58 +00:00
Jens Ole Wund
731e7e3915 having a nice break/esc behavior on bake
other occasions like ALT_A needs that too
2006-11-20 22:27:05 +00:00
Ton Roosendaal
c57d5bca73 Step one in migrating to use glArray calls in Blender
- Curve/Nurbs/Font/MBall now all draw arrays.
- had to flip abgr to rgba in shaded drawing
- Mesh drawing can't be easily done; the indices for faces are not in
  in one chunk. Also need a way to gether trias/quads, per material.

Speedup results are mixed. Something between 2-4 times. Especially for
text it seems to help.
2006-11-20 21:25:02 +00:00
Jens Ole Wund
208e69abab added dependancy relation between softbodies and collision objects
( move collision objects first )
2006-11-20 19:55:17 +00:00
Brecht Van Lommel
ec8d1b496c Fix for a missing check for NULL face data in test_index_face in my
previous commit.
2006-11-20 19:03:37 +00:00
Nicholas Bishop
aebc00f0b5 Fixed a strange bug that caused gluUnProject to give bad values when the model and view were rotated a certain way, which made sculptmode fail to edit the model. 2006-11-20 18:19:22 +00:00
Chris Want
3fbdcf7211 I see no reason why the blenderplayer shouldn't be built be default
with make on x86_64.
2006-11-20 15:49:41 +00:00
Ben Batt
53eaa3b67a New displacement direction for Displace modifier: "RGB -> XYZ". This means
that vertices will be individually displaced in the X, Y and Z directions
by the RGB components of the texture (R affects X, G affects Y, B affects Z).
This can be used along with e.g. the colour Clouds texture for a jitter effect.
2006-11-20 14:23:41 +00:00
Ton Roosendaal
33f79ebd89 Vertex/Weight Paint now uses the regular global Undo.
Also cleaned up bad global variable stuff in vpaint.c, now only need a
good place to store the paint settings in file still...
2006-11-20 12:08:06 +00:00
Ben Batt
f7c24e1b11 Patch #5181: Option to use an object to determine the startX&Y in the
Wave Modifier

This patch allows the option to use an object to determine the wave modifier's
start X & Y, it also allows for animated objects giving a moving wave
start X & Y.

Thanks to Michael Fox for the patch!
2006-11-20 11:58:48 +00:00
Joseph Eagar
19a4f41172 =ID Properties Python Doc Update=
The epydocs are now updated to have idproperties;
all the modules that have bindings for ID properties
now has docs for them.  E.g Materials have a .properties
members, Image, Texture, Scene, Object, NMEsh, and Mesh.

I realized that .properties was already taken in
Objects, so I renamed it to .idproperties.  There was
also a nasty little problem with an example inside
Object.getType; the entire example was being pasted inside
the return field.  I fixed it by just moving the return
definition to after the example, like it should be.
2006-11-20 11:07:56 +00:00
Ton Roosendaal
a5a83ecd10 Bug: click on new outliner Object restrictions crashed for 'view' option.
Typo in outliner button callback (NULL should be ob).
2006-11-20 09:50:27 +00:00
Ton Roosendaal
a667b79b35 Small usability tweaks in Compositor:
- After making a Group, internal socket values are now copied to the
  group node, so an execute will give identical results
- After ungrouping, the cyclic dependency tagging didn't work well in
  all cases, showing a red noodle line and giving composite errors.
  For time being solved by calling the NodeSort twice.
- Viewer nodes now get previews updated always (used to be only the active)
  Note: this is not for previews inside of groups!
2006-11-20 09:37:01 +00:00
Jens Ole Wund
228b94dc89 softbody bugfix
evil typo causing crashes
2006-11-20 09:19:14 +00:00
Ben Batt
729610d11a Changed the UI of the EdgeSplit modifier, based on broken's feedback from
long ago:
 - "From Angle" is now "From Edge Angle"
 - "From Flag" is now "From Marked As Sharp"
 - The "Split Angle" input is now hidden if "From Edge Angle" is unchecked
 - Changed tooltips to be (hopefully) more helpful
 - Rearranged buttons to accommodate longer labels
2006-11-20 08:08:22 +00:00
Nathan Letwory
65d53b675a add DNA_meshdata_types.h for MTFace 2006-11-20 07:21:20 +00:00
Nathan Letwory
7f49643474 * remove a stray ; and place a declaration before any actual code. msvc8 was falling over these. GCC needs some good spanking for allowing this type of code to
get through by compiling it

/Nathan
2006-11-20 05:51:36 +00:00
Matt Ebb
2cde6d2cd5 * Suggestion from Lazareus in IRC, deselect objects when they are made
invisible in the 3D View, so no unintended commands apply to them
2006-11-20 05:44:30 +00:00
Tom Musgrove
606a386888 =typo fix=
include was "listbase.h"

apparently is supposed to be listBase.h found by Lazareus on irc
2006-11-20 05:24:13 +00:00
Matt Ebb
5428f2eb6c * Object level restrictions in outliner
This adds the ability to restrict an individual object from:
- being visible in the 3D View
- being selectable in the 3D View
- being renderable
with 3 columns of buttons in the outliner.

These restrictions are further down the hierarchy than layers, so for example if an object is in an invisible layer, it will be invisible regardless of whether the object's own visibility setting is on or off. This works on a different conceptual level than layers, being better for more quick interaction (like temporarily making a mesh unselectable while you're posing its armature), rather than so much for scene organisation.

The 3 columns of icons can be turned off in the Outliner View menu.

Along with this is some small cleaning up in interface_icons.c and outliner.c.
2006-11-20 05:12:58 +00:00