Age | Commit message (Collapse) | Author |
|
shadow drawing fix also affected 3d view opengl render, hiding armatures,
now there's separate flags for it.
|
|
Recoded pidhash's recent Pad0 (Lastview) commits (r.16802 and r.16810). It was causing major issues with Ortho perspective + rotating the view with the MMB. Setting G.vd->view to -1 was not such a valid way to do so (and also, this didn't play nicely with smoothview).
This feature should now work correctly, though there are still one or two places where it doesn't always seem totally correct yet.
The basic idea of this feature, is that after going into camera mode (Pad0), pressing Pad0 again lets you go back to the view as you had it before entering camera mode.
|
|
hold down ctrl when rotating the viewport
|
|
* Auto Depth: use the depth buffer for improving pan/zoom/rotate
in large scenes.
* The viewport drawtype for objects in groups now aren't just taken
from the original object, but the minimum together with the parent
drawtype is used.
|
|
compiling I don't know) ;)
|
|
|
|
patch provided by Ettore Pasquini
|
|
viewline() would write past the end of an array
allocated on the stack causing crashes. Fixed this.
Martin, could you take a look at this?
|
|
----------------------------------
Arith:
- axis angle to quat conversion function
- short to float / float to short normals conversion function (eventually, we could go over the go and replace copy/pasted code everywhere)
- ray triangle intersection (to complement the line triangle intersection function)
View:
- viewray / viewline (get near plane point under mouse and ray normal/far point)
Particles:
- extract viewline from brush_add function
|
|
view: noclip version of int and float projection. Also project from behind the view's position and return coherent values for near clipping
transform: use the above functions for 2d center and helpline drawing
NOTE: the result for centers behind the camera (in perspective) isn't 100% perfect in the case of rotations because they always use the centered view vector as rotation axis and not the one aligned with the 2d center. Changing this would not be desirable anyway. At least it's predictible now.
|
|
* scene.object.context and scene.object.selected had broken get_item
funcs so scene.object.context[i] returned the wrong object.
* aligning the view to an object (numpad*key), did not disable the
ortho view grid.
* long standing problem where opening a relative image would fail with
no message. BLI_convertstringcode was returning a path with /../../'s
that need to be cleaned before the path could be read, the path was also
invalid from unix shell so its not a blender path reading problem.
|
|
if vd.dist is null at a wrong time,
retore to last known good value
|
|
|
|
(own fault when replacing magic numbers)
|
|
also removed quat, dquat, and sumohandle from the Object struct since they aren't used anywhere.
|
|
blocks that were previously missed; and b) greatly increase my
ohloh stats!
|
|
using persp as a flag which worked but isnt correct.
|
|
[#8784] orbiting around selection bug + a few kind of a must features (partial fix)
As suggested by Ton, keep last center and use that when nothing selected.
I don't really like it though as it wouldn't work ok when changing scene or when using a different 3D view and is somewhat non trivial to explain (it's not the last selection, it's the last used orbiting center).
|
|
|
|
|
|
patch from André Pinto to stop zoom from redrawing when the mouse didnt move.
|
|
|
|
Undoing in sculpt mode correctly returns to previous pivots now.
|
|
blenderbuttons still bad
not let this compile
|
|
Useful when animating many objects falling at different times (for instance).
|
|
|
|
INIT_MINMAX in a few more places and centerview didnt take into account some bone tips in editmode.
|
|
Fixed bad level calls in sculptmode.
|
|
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
|
|
mentions in svn logs please to commit
for trunk when ready
|
|
by Fahrezal Effendi (exavolt)
This adds an additional preference to the view and controls section, which uses the mouse's position as the centre of the zoom when zooming in the 3D View with Ctrl-MMB or the mouse wheel. It's very nice for big scenes, thanks Fahrezal!
A nice todo would be to add this for 2D views as well.
|
|
* Does not indicate that UV's exist, nor does it add UV's when used.
* Only accessible for texturepaint, vertexpaint and weightpaint from a button in the header (Paint Selection Mask)
* Not accessible from the mode menu, this is only an option that applies to paint modes.
This dosnt effect DNA, face select (G_FACESELECT) can be enabled at any time but is only used when paint modes are enabled.
Other changes
* UKey is uv unwrap in editmode, Ukey for undo was editmode only anyway.
* UVCalc in editmode adds a UV Layer if there is not one alredy.
* texture draw in editmode does not draw the face dots (they are get in the way of texturing)
* some missing updates were added.
* removed manipulator from when paint modes are enabled since the manipulator is not drawn in the 3d view.
|
|
The actual "bug" is much more general than simple viewmove. In fact, any time the center (for viewmove, or transform, or ...) on which initgrabz is called was behind the camera (in perspective, then), all mouse motion where reversed.
What I added is a special handling case that reverts those situation to the default case (center = viewport offset).
This changes the behavior for those case to something much more predictable/useable, but I doubt anyone expected it to work incorrectly, so I'd say that's alright.
This covers other cases than transform and viewmove (which are the only ones I really tested), but I don't expect breakage elsewhere.
If anyone disagrees with the change, feel free to offer a better solution.
|
|
Moving filterNDOFvalues and getndof to editscreen.c/BIF_mywindow.h (this might not be the best spot but it matches table/mouse functions)
Adding missing function definition in include files and fix declaration mixup (void functions used as int, short pointer used as float pointer)
New NDofInput model for transform (reusable externally in the future):
Handles ndof events, accumulates values and enables remapping and rescaling values to fit any axis combinaison into a float[3] (this could be extended in the future, also, it doesn't support out of order axis right now).
Compatible with "gears" (Ctrl key)
New transform context for pure NDof input transform (entered when using Transform mode on the device).
In this mode, transform "transactions" are automatically confirmed when the device returns to its rest position
Rotation on Z triggers a rotation (axis is perpendicular to the screen as usual, constraints works as expected)
Rotation on X/Y triggers trackball rotation
Translation on X/Y/Z triggers translation (doesn't support constraints correctly).
The device can also be used during a "normal" transform operation. In this case, there is no auto confirm but button 1 (right) can be used to confirm while button 2 is used to clear the NDof input (back to mouse input).
NDof support was added to translation, rotation and trackball (as previously mentionned) but also to Tilt (same as rotation) and Push/Pull (move device along Z axis).
This is a bit preliminary work, so everyone should feel free to comment and send suggestions.
NOTE: this commit also merges revision 11523 from the trunk
|
|
|
|
you can now translate or rotate a selected object
in the third method. either in object or edit mode.
Note : the method is not ideal, as we create a full
transform loop for each component of the transform.
However it is this way handled in same way as other
means of input
|
|
return type.
|
|
also update view type so that grid follow
|
|
turntable code should work reasonabilly well now.
fly code need works but is no more insane on Os X.
transform object is not present here.
if you find the movements a bit slow, you can speed
it in the preferences up to 2x in the view & controls
panel.
button1 (left) of the device let you switch between
the 3 modes. button2 let you switch between
unconstrained and dominant mode.
the plugin must be named 3DxNdofBlender.plug
and be placed in a folder named plugins in same
folder as executable
check no scaling is done in the plugin
please check it works ok on 3 platforms
|
|
as this is not working code for me,
and i've not investigated yet why,
i protected it with a define in view.c
line 566 USE_NEW_NDOFMOVE
comment this line to use old code
|
|
work only in non camera mode in 3D view
need the external plug-in to be compiled separately
line 894 of ghostwinlay.c must be replaced with
values adapted at your system
see mailing list for features planned and how
to use
|
|
notes :
it compiles but is non functional
lacks the platform specific changes in ghost ( i cant test windows)
lacks the code for plug-in.
the platform specific code will be added when we sync with Ettore work
the plug-in itself cannot be added here
|
|
- Radius R, G, B sliders had too small number increase on clicking.
- Preview render now renders with higher SSS error setting to speed it up a
bit.
- bug #6664: 3d preview render had artifacts. re->viewdx/dy wasn't set then,
which is needed to estimate the area of each point. Have set this now, not
in the nicest way, there is some bit duplicated code, but I don't want to
refactor existing code with the chance of breaking it at this point.
- bug #6665: grid like artifacts with parts rendering. The two extra pixels
around parts used for filtering were used as well, leading to double points.
|
|
larger.
i.e. if I'm zoomed in working on something zoomed in close with a short near
clipping distance, don't suddenly clip off my work when I enter local view.
|
|
names) BPySys.py - used fotr obj and fbx export.
view.c - missed one smoothview/camera.
Brigg's hide object patch didnt change the object selection flag, other minor changes also.
|
|
should be the last one).
Fix for own error from a wile ago Numpad-Astrix would set to size view of selected faces, rather then front.
|
|
function needed to be used after, reverting this change.
|
|
smooth view now works for change between cameras, smooth view now blends the lens angle too.
|
|
added checks for an error value returned from view3d_opengl_select so as not to act on bad data.
also the error message didnt display because of where it was, delayed the error so it displays right.
|
|
- Dont do anything if no verts or faces are selected (used to zoom into 0,0,0)
- use the centers of dupli objects (should eventually use their bound boxes), much nicer when dealing with many dupli-objects
|