Commit Graph

8365 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
Nathan Letwory
84a85f2b7e * tweak priority of bullet libs for blenderplayer 2006-11-21 13:19:39 +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
Erwin Coumans
318b98fc9a some fixes, related to object activation in game blender 2006-11-21 11:56:02 +00:00
Nathan Letwory
057a6e3360 * small priority fix. Hopefully helps on more platforms 2006-11-21 10:58:07 +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
Jens Ole Wund
31fd60f94c mscv6 turning off GE 2006-11-21 08:54:36 +00:00
Erwin Coumans
dba9042bb5 added ConeZ/ConeX 2006-11-21 08:22:01 +00:00
Erwin Coumans
2e4e4b4943 CMake enabled game engine+Bullet 2.x. tested only on Mac OS X. 2006-11-21 06:39:19 +00:00
Erwin Coumans
1b09386164 updated CMake files for game engine for Bullet 2.x upgrade 2006-11-21 06:37:01 +00:00
Erwin Coumans
98525b0210 added CMake file for new Bullet 2.x 2006-11-21 06:36:09 +00:00
Nathan Letwory
eb73025c63 ==SCons==
Enable Bullet2 for Scons. This should work for all platforms, but please, test, test,
 test, test, test (ad infinitum)
2006-11-21 06:11:41 +00:00
Nathan Letwory
6c5c74244a whitespace commit 2006-11-21 05:56:41 +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
3026843f23 angular-only hinge updated 2006-11-21 01:09:37 +00:00
Erwin Coumans
eec5ae7d50 angular-only hinge updated 2006-11-21 01:06:23 +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
4bbbabd049 Step 1 of Bullet 2.x upgrade:
Temporarily disabled game engine for CMake

CMake for all platform, scons for Darwin, Linux, BSD3, SunOS5, Win32, and Makefiles should not compile game engine right now.
MSVC needs still disabling of game engine.
2006-11-21 00:17:11 +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
Erwin Coumans
d58670ddd2 catch up with latest Bullet 2.x (not in use yet) 2006-11-21 00:03:56 +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