Nathan Letwory [Tue, 13 Jul 2004 18:25:44 +0000 (18:25 +0000)]
* add opennl and superlu to intern project
Nathan Letwory [Tue, 13 Jul 2004 17:01:58 +0000 (17:01 +0000)]
* Added a release target to SConstruct -> 'scons release':
- after building blender and blenderplayer an archive is created in bin/ containing all necessary files
- you'll need now python2.3 or newer for SConstruct to go through correctly. This is not a problem,
since Blender requires python2.3 now anyway.
- the release target has been done for linux, win32 and os x, other platforms get a
warning message after blender has been built, just no package. See warning message for instructions
- for linux, osx and win32 the blenderplayer target has been enabled for default
- the build is logged to build.log for all platforms except win32. If you want it, you'll need tee.exe from
http://unxutils.sf.net in your path (I put it in C:\\windows) and change the first if check in the
SConstruct accordingly
Brecht Van Lommel [Tue, 13 Jul 2004 11:48:52 +0000 (11:48 +0000)]
Added LSCM UV Unwrapping:
http://www.loria.fr/~levy/Galleries/LSCM/index.html
http://www.loria.fr/~levy/Papers/2002/s2002_lscm.pdf
Implementation Least Squares Conformal Maps parameterization, based on
chapter 2 of:
Bruno Levy, Sylvain Petitjean, Nicolas Ray, Jerome Maillot. Least Squares
Conformal Maps for Automatic Texture Atlas Generation. In Siggraph 2002,
July 2002.
Seams: Stored as a flag (ME_SEAM) in the new MEdge struct, these seams define
where a mesh will be cut when executing LSCM unwrapping. Seams can be marked
and cleared in Edit Mode. Ctrl+EKEY will pop up a menu allowing to Clear or Mark
the selected edges as seams.
Select Linked in Face Select Mode now only selects linked faces if no seams
separate them. So if seams are defined, this will now select the 'face group'
defined by the seams. Hotkey is still LKEY.
LSCM Unwrap: unwrap UV's by calculating a conformal mapping (preserving local
angles). Based on seams, the selected faces will be 'cut'. If multiple
'face groups' are selected, they will be unwrapped separately and packed in
the image rectangle in the UV Editor. Packing uses a simple and fast
algorithm, only designed to avoid having overlapping faces.
LSCM can be found in the Unwrap menu (UKEY), and the UV Calculation panel.
Pinning: UV's can be pinned in the UV Editor. When LSCM Unwrap is then
executed, these UV's will stay in place, allowing to tweak the solution.
PKEY and ALT+PKEY will respectively pin and unpin selected UV's.
Face Select Mode Drawing Changes:
- Draw Seams option to enable disable drawing of seams
- Draw Faces option to enable drawing of selected faces in transparent purple
- Draw Hidden Edges option to enable drawing of edges of hidden faces
- Draw Edges option to enable drawing of edges of visible faces
The colors for these seams, faces and edges are themeable.
Brecht Van Lommel [Tue, 13 Jul 2004 11:42:13 +0000 (11:42 +0000)]
Added SuperLU 3.0:
http://crd.lbl.gov/~xiaoye/SuperLU/
This is a library to solve sparse matrix systems (type A*x=B). It is able
to solve large systems very FAST. Only the necessary parts of the library
are included to limit file size and compilation time. This means the example
files, fortran interface, test files, matlab interface, cblas library,
complex number part and build system have been left out. All (gcc) warnings
have been fixed too.
This library will be used for LSCM UV unwrapping. With this library, LSCM
unwrapping can be calculated in a split second, making the unwrapping proces
much more interactive.
Added OpenNL (Open Numerical Libary):
http://www.loria.fr/~levy/OpenNL/
OpenNL is a library to easily construct and solve sparse linear systems. We
use a stripped down version, as an interface to SuperLU.
This library was kindly given to use by Bruno Levy.
Ton Roosendaal [Mon, 12 Jul 2004 21:40:41 +0000 (21:40 +0000)]
Ack! Fixed something without testing... this broke updates for numbuts
in picker.
Johnny Matthews [Mon, 12 Jul 2004 17:59:42 +0000 (17:59 +0000)]
This commit add the clock wipe effect to the sweep menu in the sequence editor
Alfredo de Greef [Mon, 12 Jul 2004 03:20:31 +0000 (03:20 +0000)]
added support for ortho camera (needs yafray from cvs)
When using xml export, yafray will now render the alpha channel as well when 'RGBA' button in blender is enabled (Plugin does this automatically).
In plugin code, fixed smooth shading bug for non-mesh objects.
Relative paths for textures are now recognized (plugin & xml).
Fixed problem with duplicate objects (plugin & xml).
Really old bug, sun position is now correct (plugin & xml).
World background now can also be a regular image texture (jpeg & tga), but for now always assumes spheremapping, which is not the same as Blender either. In yafray the texture is assumed to be a full 360 (panorama type) map.
convertBlenderScene.c cleanup, the identity transform 'hack' is removed.
THIS AFFECTS ALL EXTERNAL RENDERERS (Aqsis and others) WHICH RELY ON THE RENDERDATA OUTPUT, VERTICES AND LAMPCOORDINATES/VECTORS NOW NEED TO BE TRANSFORMED BACK TO WORLD COORDINATES. See yafray plugin/export code.
Simon Clitherow [Sun, 11 Jul 2004 21:54:18 +0000 (21:54 +0000)]
- changed sequence for finding HOME on Win32. Sequence is now as
shown at http://www.blender3d.org/cms/Installation_Policy.352.0.html
Still TODO: update NSIS installer script to suit the change.
Nathan Letwory [Sun, 11 Jul 2004 20:14:54 +0000 (20:14 +0000)]
* Fixed action conflict (win32):
When also enabling the blenderplayer there would be a action conflict for the resource building.
Ton Roosendaal [Sun, 11 Jul 2004 13:17:03 +0000 (13:17 +0000)]
- Simple optimizing for deflected (collision) particles. It now caches
transformation (from vertex -> world space), used defines for vecadd and
vecsub, and intersects quads more efficient.
Result is about 2 times faster.
- Added draw mode for empty used as forcefield
- added defines VECADD and VECSUB
Ton Roosendaal [Sun, 11 Jul 2004 08:46:26 +0000 (08:46 +0000)]
Tiny cleanup in call for glBitmap. Don't see any error in using it for
drawing vertices... on OSX this works 100%, also in zbuffer mode and with
transparent faces.
Code is simple enough for a linuxer to further test!
Matt Ebb [Sun, 11 Jul 2004 04:44:50 +0000 (04:44 +0000)]
Some tiny dialog message cleaning for easier scan-reading.
Ton Roosendaal [Sat, 10 Jul 2004 21:44:45 +0000 (21:44 +0000)]
Forgot to include glutil.h
Ton Roosendaal [Sat, 10 Jul 2004 21:35:17 +0000 (21:35 +0000)]
Long on the todolist: a patch to have pointsize working on systems that
don't have them larger than 1, since vertices are drawn with it.
It is solved by patching code with minimal confusement. So you can get
automatic patched glPoints with:
bglBegin(GL_POINTS);
bglVertex3fv(vector);
bglEnd();
In glutil.c the wrapper can be found, that checks for maximum Pointsize,
and bypasses it to a glBitmap then.
Johnny Matthews [Sat, 10 Jul 2004 20:19:53 +0000 (20:19 +0000)]
Added B_NOP to events buttons on wipe type effects panel.
Ton Roosendaal [Sat, 10 Jul 2004 19:56:27 +0000 (19:56 +0000)]
Small improvement in detecting which previews need update in Blender.
Now you can have multiple buttons windows open, for example one showing
only a larger material preview, and have it updated correctly. Nice for
setups where you can keep preview shown while scrolling buttons.
Ton Roosendaal [Sat, 10 Jul 2004 17:40:40 +0000 (17:40 +0000)]
Added colorpicker in Panel for:
- Transform properties 3d win, while Vertex/Texture paint is on
- Paint panel in UV window
Note; both use the same GVP struct to store current color in. Also the
function used now to add picker isn't complete... might need further
thinking over. Consult me when you like them in more places.
Wouter van Heyst [Sat, 10 Jul 2004 13:48:12 +0000 (13:48 +0000)]
More closely implement the Installation Policy
<http://www.blender3d.org/cms/Installation_Policy.352.0.html>
- Within those confines 'ERROR: File ".Blanguages" not found' won't show up
again (all such bugs in tracker have already been closed, #745 for reference)
And intrr, if it does, 'cp -a .blender ~' already :P
Of course, this issue should not be fixed on a per file basis (.Blanguages,
.bfont.ttf), but instead return the .blender dir location. Duplicating .blender
finding logic everywhere, sigh.
< jesterKinky> that's what I meant. for now this is ok to continue with, and then in a later stage correct it all in one bigger effort
< jesterKinky> and since you point code at policy url we all can get reminded of how it was supposed to go when cleaning it.
< LarstiQ> jesterKinky: yes, I meant to do a "grrrr, this is the last time I'm not fixing the underlying issue"
< LarstiQ> all your lazy coders are belong to me
< jesterKinky> set us up the superficial bugfix
Ton Roosendaal [Sat, 10 Jul 2004 13:11:22 +0000 (13:11 +0000)]
Added edges in Mesh undo.
Note; whether or not edges are created is derived from original Mesh, the
one still residing in obedit->data while modeling.
Ton Roosendaal [Sat, 10 Jul 2004 12:04:03 +0000 (12:04 +0000)]
Changed weird line in add_primitiveMesh() that caused cursor to flip back
to normal mousepointer while in editmode.
Was in code since 2.25...
Martin Poirier [Sat, 10 Jul 2004 10:33:02 +0000 (10:33 +0000)]
Made effector strenght as big in the negative as in the positive.
Martin Poirier [Sat, 10 Jul 2004 09:17:25 +0000 (09:17 +0000)]
Compressed the two particles effectors loop into one. It was rather stupid of me to do it as two at first, but it was the first thing that came to mind. Fixed now, so it will calculate much faster.
Martin Poirier [Fri, 9 Jul 2004 15:23:49 +0000 (15:23 +0000)]
Fix metaball update bug when mirroring in object mode
Martin Poirier [Fri, 9 Jul 2004 14:39:06 +0000 (14:39 +0000)]
Fixed for forcefield. It needed to add half of the acceleration as speed on each frame it affected.
Cleaned the GUI for effectors: Widen the panel and the buttons. Made the button text more conformed.
Added vortex field for particles. Particles swirl around z-axis of the object. Little hackish, could be made better.
Ton Roosendaal [Fri, 9 Jul 2004 09:21:37 +0000 (09:21 +0000)]
Typing values in color picker got a mixup in but->func() usage... caused
weird values to be set after entering a value. Nicely solved now.
Ton Roosendaal [Fri, 9 Jul 2004 08:15:57 +0000 (08:15 +0000)]
Two little fixes in administrating new Mesh edges. Solves crash when
joining newly created (Added) Mesh with others...
Ton Roosendaal [Thu, 8 Jul 2004 20:38:27 +0000 (20:38 +0000)]
Quite a large one this time... but now we have:
Edges in Mesh
- adds automatic when you use creases. For other situations; call the
void make_edges(Mesh *me) in mesh.c. Of course, once in editmode the
edges are automatically recreated.
- in F9 buttons you can add/remove edges too
- both for Mesh and DisplistMesh, so it speeds up drawing quite some in
wireframe
- render for edges can't work... edges have no material nor tface nor col..
so here still the faces are rendered in wire
Creases in Subsurf
- based on the code by Chris McFarlen
- main changes is that now edges are used, saving quite some data in file
- use SHIFT+E in editmode to set edges-sharpness. values go from 0-1
- in F9 buttons you can set draw-crease mode. It draws now blended from
wire color to edge-select color (as provided in Theme)
Known issue: setting sharpness on 1 cube (subdiv 2) gives weird results
with some values... Chris, can you check?
Further; code cleanups, changing 0 in NULL when needed, no warnings, etc etc
Nathan Letwory [Wed, 7 Jul 2004 08:49:33 +0000 (08:49 +0000)]
* fixed bug in rainbow color for material and world ipoview
* removed 32 channel limit (can now have 50, or of you know what number to change, 999 ;)
* added new IPOs: mirror fresnel and fac, transparency fresnel and fac, and glow factor transparent materials (add)
Brecht Van Lommel [Tue, 6 Jul 2004 22:25:14 +0000 (22:25 +0000)]
Fix compile error: the 'log' function takes only one parameter: changed
log(xo, 2) to log(xo)/log(2).
Johnny Matthews [Tue, 6 Jul 2004 19:07:13 +0000 (19:07 +0000)]
This is the initial commit of a revamp of the sweep effects that goofster committed that was originally a sequence plugin from sirdude.
The changes from the original include the ability to add a blurred edge with a selectable width to the wipe and to rotate the effect.
Has these sweep types included already
-single
-double
-iris
These still need to be coded
-box
-cross
-clock
Ton Roosendaal [Tue, 6 Jul 2004 16:32:44 +0000 (16:32 +0000)]
- Removed new outline drawing from vpaint/faceselect and other paint modes
- fixed tooltip drawing in color picker
Ton Roosendaal [Tue, 6 Jul 2004 12:49:57 +0000 (12:49 +0000)]
Fixes in colorpicker;
- click on palette didn't update button values
- the bottom 'palette' button now restores to old color
- H values scroll allways, also with black or white
Todo still:
- save in file (btw, i changed default colors to my pref :)
Ton Roosendaal [Mon, 5 Jul 2004 22:15:27 +0000 (22:15 +0000)]
Colorpicker variant 2; One large field for S and V, and slider for H, like
Gimp has for example.
The previous picker is still as code there... ongoing experiments.
Ton Roosendaal [Mon, 5 Jul 2004 20:45:41 +0000 (20:45 +0000)]
Picker made slightly larger, and removed confusing "copy to" and "paste
from" buttons.
Now a click in palette is default: update the active color.
If you want to store in palette: hold CTRL while click.
This isn't optimal either, but at least better.
Ton Roosendaal [Mon, 5 Jul 2004 17:48:47 +0000 (17:48 +0000)]
Fixed NUM button code that it doesn't return halfway, but nicely proceeds
to end of the function to handle the exit requirements.
(returns where added for patch that makes NUM buttons into textbut on a
click in center)
Ton Roosendaal [Mon, 5 Jul 2004 10:56:13 +0000 (10:56 +0000)]
Cleaned up pop-up menus for F10; edge settings and framing menu.
Ton Roosendaal [Mon, 5 Jul 2004 10:22:41 +0000 (10:22 +0000)]
- oh, the protype for XORcircle...
Ton Roosendaal [Mon, 5 Jul 2004 10:22:00 +0000 (10:22 +0000)]
- clipped selection circle in colorpicker to prevent it drawing outside
the color plane
- removed warnings from glutil.c, made circleXOR call become float instead
of short
- fixed error in drawing text of buttons in pop-up menus, when zoomed small
Ton Roosendaal [Mon, 5 Jul 2004 09:21:22 +0000 (09:21 +0000)]
Changed redraw of picker not to include the background, prevents flashing.
Nathan Letwory [Mon, 5 Jul 2004 09:15:02 +0000 (09:15 +0000)]
* Added IPO for displacement, translucency and raymirror
* Cleaned out IPO #defines
Ton Roosendaal [Mon, 5 Jul 2004 08:48:17 +0000 (08:48 +0000)]
New: color picker!
With a click on the 'COL' buttons (the ones showing RGB) a menu pops up
with three colorpicking fields and a palette.
The fields are the three planar intersections of a HSV cube, each allowing
choosing in the field without the field changing.
The palette is 'modal' unfortunately (couldn't find a simple working other
method) where the button "paste to color" denotes the state that click in
palette copies to edited color, and "copy to palette" means the active
color is copied into the palette...
Todo:
- saving of palette in file
- decide whether ESC leaves without changes...
Matt Ebb [Mon, 5 Jul 2004 07:52:32 +0000 (07:52 +0000)]
Directly edit number fields with a click instead of having
to use Shift-Click.
As before, clicking on the left side of a number field decreases, clicking on the right side increases, but clicking in the centre, on the text itself, starts editing the
value directly. Other behaviour like dragging left and right
is unchanged.
Joseph Gilbert [Sun, 4 Jul 2004 19:57:41 +0000 (19:57 +0000)]
- py docs update
- getMatrix(), properties for object class, some examples
Nathan Letwory [Sat, 3 Jul 2004 22:01:04 +0000 (22:01 +0000)]
* ensure winblender.res gets build too.
Ton Roosendaal [Sat, 3 Jul 2004 18:39:19 +0000 (18:39 +0000)]
Made static particles working with a deformed Mesh, both for Lattice as
for Armature. Note: only works for subsurfed Mesh now!
Change in drawobject.c: Halo option on subsurf Mesh now draws points.
but using the original vertices...
Willian Padovani Germano [Sat, 3 Jul 2004 17:28:15 +0000 (17:28 +0000)]
Interface:
- added submenu "Scripts" in both View3D->Object and Mesh menus.
Put them on top (it's better to follow some guideline, so users don't have to search for "Scripts" submenu in a different position in each menu), feel free to change.
- added button 'previous win' to SpaceScript, makes accessing buttons win, for example, much faster. Maybe all spaces could have this button.
BPython:
- added Window.EditMode(), to check, enter and leave edit mode. Scripts that change mesh data need this to leave edit mode before making changes to the active (G.obedit) mesh, of course.
- updated script bevel_center to use the above function and also popup an error msg if the active obj is not a mesh.
- doc updates, minor fixes.
Forgot to mention in my previous commit that I also updated the "-P" command-line option (for running script files) to be able to run already loaded Blender Texts, too. So, if you have a script called 'Text' in foo.blend, you can run it with blender foo.blend -P Text .
Ton Roosendaal [Sat, 3 Jul 2004 14:18:21 +0000 (14:18 +0000)]
Three in one:
- textures: added support for new mixers (div, diff etc) to work on the
other map-to channels too, like ref or spec
Also it works on lamp and world textures
- brought back uncommented line of code that was removed by leon, to have
particle motion based on textures
- recoded the glPylonOffset hack to be nice function, this for future
testing.
Willian Padovani Germano [Sat, 3 Jul 2004 05:17:04 +0000 (05:17 +0000)]
New scripts:
- hotkeys, obdatacopier and renameobjectbyblock, all from Jean-Michel Soler (jms);
- bevel_center by Loic Berthe, suggested for inclusion by jms;
- doc_browser, by Daniel Dunbar (Zr)
Thanks to them for the new contributions!
(I included doc_browser at 'Misc' because only users interested in script writing would actually use it, but it could also be under 'Help'. Opinions?)
BPython related:
- Added scriptlink methods to object, lamp, camera and world.
- Object: added object.makeTrack and object.clearTrack (old track method).
- sys: made sys.exists(path) return 0 for not found; 1 for file, 2 for dir and -1 for neither.
- doc updates and fixes.
- made ONLOAD event work. G.f's SCENESCRIPT bit was being zeroed in set_app_data.
- Blender: updated functions Load and Save to support the builtin importers and exporters besides .blend (dxf, videoscape, vrml 1.0, stl, ...)
- Draw: added mouse wheel events.
- Scene: added scene.play to play back animations (like ALT+A and SHIFT+ALT+A). Makes a good counter, too, when the 'win' attribute is set to a space that doesn't "animate".
The scene.play() addition and the fix to ONLOAD scriptlinks is part of the work for a Blender demo mode. It already works, but I'll still add support for Radiosity calculations and fix a thing in main(): it executes onload scripts too early (BIF_Init), giving funny results in alt+a animations and renderings when firing up Blender. Loading after the program is up has no such problems. When I finish I'll post examples of demo mode scripts.
Ton Roosendaal [Fri, 2 Jul 2004 22:29:06 +0000 (22:29 +0000)]
Added new operators for "MapTo" panel as suggested & partially coded by
Kent Mein. So next to the mix, mult, add, sub we have now:
- Div: divides by texture color
- Screen: is like Mult, but works opposite (makes lighter)
- Diff: the difference between texture color and material
- Light: if texture is lighter it shows (per component)
- Dark: if texture is darker it shows (per component)
Next step: add this for specular and mirror, and the other channels...
I commit it now because it also fixes error in previous commit.
Ton Roosendaal [Fri, 2 Jul 2004 20:49:08 +0000 (20:49 +0000)]
Fixed rendering of image textures with alpha... it gave ugly dark outlines.
Please note the following:
- pictures need to be saved as 'premul' sky render if you want to use it
in Blender as texture
- but for alpha-over in sequencer it has to be 'key alpha'...
This inconsistancy needs to be solved.. for example as option for both
texture as sequencer.
Ton Roosendaal [Fri, 2 Jul 2004 13:51:33 +0000 (13:51 +0000)]
Added new exported render calls in stubs... so player compiles again!
Ton Roosendaal [Fri, 2 Jul 2004 12:44:32 +0000 (12:44 +0000)]
Bug #1411
"inserting keys in editmode didnt work on newly created Meshes"
Found out the error was in code committed by Hos in december, when
he added feature to copy newly added vertices (or remove) when editing
vertex keys. In his commit he already noted "please test" :)
Error was that newly created meshes didn't give a correct first key. For keys
to work in 2.32 and 2.33 you have to leave editmode at least once, or
insert keys outside of editmode.
The fix was fairly simple, just checking for an empty first key.
Ton Roosendaal [Thu, 1 Jul 2004 18:06:27 +0000 (18:06 +0000)]
Forgot to add code for copying/paste functionality Materials. With new
ColorBand data added in Material that needs to be tackled corectly.
Ton Roosendaal [Thu, 1 Jul 2004 16:15:22 +0000 (16:15 +0000)]
Report #1401
Division by zero in calculating render coords... only happens for
Wire material AND having face-less edges. Then the normal is zero, and
some calculations can't happen correctly.
(error in rendercore.c, other files committed was because of removed and
cleaned up enters)
Matt Ebb [Thu, 1 Jul 2004 09:31:12 +0000 (09:31 +0000)]
Corrected a misleading confirmation message when deleting a bone ("Erase selected bone", not "Erase selected armature")
Ton Roosendaal [Wed, 30 Jun 2004 21:59:12 +0000 (21:59 +0000)]
Fixed draw error in panels, the header was overdrawn with panel background.
Only visible when panels are not transparent.
Ton Roosendaal [Wed, 30 Jun 2004 18:54:09 +0000 (18:54 +0000)]
NEW: Ramp shades for diffuse and specular
http://www.blender3d.org/cms/Ramp_Shaders.348.0.html
Material color and specular now can be defined by a Colorband. The actual
color then is defined during shading based on:
- shade value (like dotproduct)
- energy value (dot product plus light)
- normal
- result of all shading (useful for adding stuff in the end)
Special request from [A]ndy! :)
Kester Maddock [Wed, 30 Jun 2004 13:41:19 +0000 (13:41 +0000)]
Switch to using floats instead of shorts for normal data - they're supposed to be faster.
Also use shorts instead of ints for the index data, since index arrays are limited anyhow.
Kent Mein [Tue, 29 Jun 2004 20:34:10 +0000 (20:34 +0000)]
Two stupid fixes for warnings:
First one was for drawview.c I gave some types to things that didn't have them
example
-static void view3d_panel_background(cntrl) // VIEW3D_HANDLER_BACKGROUND
+static void view3d_panel_background(short cntrl) // VIEW3D_HANDLER_BACKGR
For edit.c I added a newline to the end of the file.
Weee
Kent
Jiri Hnidek [Tue, 29 Jun 2004 17:10:13 +0000 (17:10 +0000)]
- added octal tree node optimalization of MetaBall polygonisation
polygonization of 512 MetaBalls:
- version 2.33a: 76 s
- current cvs version 8 s
- button "Never" is added in button window: Metaballs are polygonized only during render time (it is useful for particle animation) http://e-learning.vslib.cz/hnidek/misc/bowl_metaballs.blend
Ton Roosendaal [Mon, 28 Jun 2004 11:14:58 +0000 (11:14 +0000)]
Metaball normals were flipped again... thanks jiri for pointing me to it...
Alejandro Conty Estevez [Sun, 27 Jun 2004 20:10:20 +0000 (20:10 +0000)]
Finally, fixed the evil dll problem. It works now
on my win32 box with my tests without crashing.
But be aware! There may be more of them watching
us, waiting for a moment of distraction, nobody
is safe.
Ton Roosendaal [Sun, 27 Jun 2004 14:05:08 +0000 (14:05 +0000)]
added fflush(stdout) for printf updates while calculating particles
Ton Roosendaal [Sat, 26 Jun 2004 18:18:11 +0000 (18:18 +0000)]
The revised patch from Leon for new particle effects.
New is that objects can have a force field, and Meshes can even deflect
(collide) particles. This is in a new sub-menu in Object buttons F7
The full instructions where on the web, Leon mailed it me and I will put
it in CMS tomorrow. For those who like to play with it now, here are demo
files:
http://download.blender.org/demo/test/
Quite some changes where in the integration though... so previous created
particle deflectors will not work. Changes to mention now are:
- gravity is renamed to 'force field'
- force field and deflector options are in Object now, not in Mesh
- the options also have its own struct, doesnt add to Object by default
- force fields are possible for all object types, but only work on center.
So empty objects are typical for it.
Work to do:
- add draw method in 3d win to denote forcefield objects
- check on the UI (panel with different size?)
- add 'recalc' button in deflector panel
Ton Roosendaal [Sat, 26 Jun 2004 18:03:57 +0000 (18:03 +0000)]
Changes in code to allow double sided energy, but it's not possible
to activate it. Added comment in code how to enable it for those who
like to play (search for translu)
What doesnt work - according to me not satisfying - is fact that radiosity
hemicubes alias badly on short distances, so interior light doesn't spread
well.
Joseph Gilbert [Sat, 26 Jun 2004 14:38:56 +0000 (14:38 +0000)]
- added support for getting worlspace and localspace matrices from objects through python. Add cvars matrixWorld/matrixLocal.
- credits to Campbell Barton
Kester Maddock [Sat, 26 Jun 2004 09:15:41 +0000 (09:15 +0000)]
Minor Fixes:
Better use of booleans for python
#include fixes for Windows
Python Doc fixes
Use the farthest vertex as the face position when z sorting faces. (Camera is on -z axis!)
Alejandro Conty Estevez [Thu, 24 Jun 2004 21:17:52 +0000 (21:17 +0000)]
minor changes to sync with yafray cvs interface, getting closer
to the clean msvc build.
Ton Roosendaal [Thu, 24 Jun 2004 15:12:45 +0000 (15:12 +0000)]
The other fix for drawing XOR lines, now for dragging window edges too.
Main 'improvement' is it not using the gl_util function, but drawing it all
itself, and thus minimizing the amount of flush calls (factor 4).
Willian Padovani Germano [Thu, 24 Jun 2004 15:03:08 +0000 (15:03 +0000)]
Scripts:
- Added KlopUtils by Carlos Lopez and Batch Object Name Edit by Campbell Barton (thanks both!)
BPython:
- Fixed things I recently broke in Blender.sys, added Blender.sys.join(dir, file)
- doc and other minor updates
Ton Roosendaal [Thu, 24 Jun 2004 14:53:00 +0000 (14:53 +0000)]
Screen edge split routine now uses 4 times less glFlush calls.
Is a testing commit... might be removed or further worked out.
Willian Padovani Germano [Thu, 24 Jun 2004 09:43:13 +0000 (09:43 +0000)]
BPython:
- Added function Blender.Save(filename) to save .blend files.
- Added scriptlink-related methods (get, clear, add) to Scene and Materials. Will still add method remove and add these methods to World, Object, Camera and Lamp.
- Updates and small fixes in docs.
Nathan Letwory [Thu, 24 Jun 2004 07:29:15 +0000 (07:29 +0000)]
* missing include paths added for debug configuration
Nathan Letwory [Thu, 24 Jun 2004 07:02:55 +0000 (07:02 +0000)]
* updated the msvc 7 projectfile of yafray for the plugin support
Roel Spruit [Wed, 23 Jun 2004 22:11:57 +0000 (22:11 +0000)]
Added another Sequence effect: the wellknown Glow effect.
Ton Roosendaal [Wed, 23 Jun 2004 18:48:55 +0000 (18:48 +0000)]
Feature requests:
- usage of relative paths "//" now can be controlled with a button in the
fileselect header
- relative path support added for linked Library files
Note: in oops window you can see the library file names, select the last
icon button in header to show the blocks.
Simon Clitherow [Wed, 23 Jun 2004 18:43:25 +0000 (18:43 +0000)]
Committing the NSIS installer script changes used for the 2.33a release.
- numerous bug fixes and improvements, that are far too numerous
to mention here!
- In addition, the new python scripts have been added to the file list,
bringing it up-to-date (for now!).
Roel Spruit [Wed, 23 Jun 2004 18:22:51 +0000 (18:22 +0000)]
- Added correct Writing/Reading of the new Sweep sequence effect (Thanks Ton, where would I be without you)
- Sweep effect updates after you change the type of sweep now.
Nathan Letwory [Wed, 23 Jun 2004 14:56:30 +0000 (14:56 +0000)]
* Syntax error on line 1050 prevented scons from starting the compile process.
* Corrected some indenting
Kester Maddock [Wed, 23 Jun 2004 12:13:09 +0000 (12:13 +0000)]
Fix a compile error in data conversion: double declaration of some vertex attributes.
Kester Maddock [Wed, 23 Jun 2004 01:12:11 +0000 (01:12 +0000)]
Fix for reflection mapping unlit faces: normals were not being sent, hence reflection maps weren't being rendered properly (bf-bug #1385)
Set the diffuse material colour - lighting brightness should match blender better. (bf-bug #1385)
Ton Roosendaal [Tue, 22 Jun 2004 14:35:35 +0000 (14:35 +0000)]
Report 1387 (todo)
Added consistant zoom in ipo, oops, sound, sequencer, nla, action. This
conforming the new user setting too (cont, dolly, scale).
Ton Roosendaal [Tue, 22 Jun 2004 12:59:53 +0000 (12:59 +0000)]
Fixed another oldie; when loading file the totals counter (as displayed in
info header) didn't update. Also removed convention it counts from active
window-layer, now it uses scene layer.
Ton Roosendaal [Tue, 22 Jun 2004 12:02:19 +0000 (12:02 +0000)]
Little feat request: the rendertime disappeared from header after a
rendering; now it's a permanent part of it.
Jacques Guignot [Tue, 22 Jun 2004 11:38:58 +0000 (11:38 +0000)]
added a new function to the World module : GetActive(), which returns the world associated to the scene, or None if no such world exists
Jiri Hnidek [Mon, 21 Jun 2004 20:32:07 +0000 (20:32 +0000)]
- Scripts:
small update of ideasman's obj import/export scripts (added support for smooth faces)
Ton Roosendaal [Mon, 21 Jun 2004 17:58:53 +0000 (17:58 +0000)]
Report #1391
The work i did end of may on render normals (displacemap especially)
caused refraction code to work wrong... took a while to find out, but
just removed a couple of lines too much.
Added clear comment there what it is, and what danger of removing is!
Ton Roosendaal [Mon, 21 Jun 2004 16:07:50 +0000 (16:07 +0000)]
Report #1376
Rayshadow didn't use lamp option 'layer' correctly. Objects not in
lamp-layer now also don't get shadows (nor light).
Ton Roosendaal [Mon, 21 Jun 2004 14:40:31 +0000 (14:40 +0000)]
Fix: creating a Mesh primitive UV Sphere, used a remove doubles to get
rid of the seam (it's a Spin command!). The threshold value for remove
was set on 0.01, giving too easy errors. Now its 0.0001
Willian Padovani Germano [Mon, 21 Jun 2004 12:01:23 +0000 (12:01 +0000)]
- Scripts:
Campbell Barton updated his Wavefront OBJ scripts and Ben Omari updated his DirectX 7 and 8 ones (thanks both). The other listed scripts had minor updates to accomodate the menu changes.
- Scripts in menus:
renamed Tools to Object, Generators to Add, and Modifiers to Mesh (Metaball, Curve, Surface can be added later), to integrate better in the interface.
- Fixed a bug in Blender.sys.makename: last letter of file extension was being cut out.
Alejandro Conty Estevez [Mon, 21 Jun 2004 08:17:05 +0000 (08:17 +0000)]
These are changes sent by Luis_F who got this working on win32. Only applies
to that platform and fixes a problem findind yafray dll's
Ton Roosendaal [Sat, 19 Jun 2004 18:23:22 +0000 (18:23 +0000)]
Bug fix 1326
When changing subsurf level, in shaded mode, and with Mesh that has more
users... the shaded displist of the other meshes are corrupt, potentially
causing crash.
And: small improvement in select-outline: when drawtype-extra Wire is set,
it skips it. Not needed, looked a bit ugly.
Ton Roosendaal [Sat, 19 Jun 2004 17:35:37 +0000 (17:35 +0000)]
Fixed error in previous commit, that skipped drawing non-basis Mballs.
Thanks Jiri for pointing me to it!
New: removed frontbuffer draw of selected object for solid/shaded mode.
It serves no purpose anymore.
Ton Roosendaal [Sat, 19 Jun 2004 14:37:25 +0000 (14:37 +0000)]
Tooltips:
- lowered tooltip-update delay loop to 0.02 sec (was 0.05), which showed
up 'trails' while going over pulldowns with tooltips
- changed tooltip calculation for size, it was drawing the labels far too
large (height). Made sure text prints in middle too.
- by default tooltips print 12 pixels below button now
Ton Roosendaal [Sat, 19 Jun 2004 12:25:28 +0000 (12:25 +0000)]
Popular request: the floating panels (NKEY) now close on a 2nd NKEY command.
This for all current NKEY menus by default. Can be standard for each hotkey
controlled Panel from now on; use toggle_blockhandler() for it.
Another popular request: hotkey enabled Panels now optionally reopen on
the previous location, instead of under mouse. This option "Pinned" is a
user option now. Optional for later; have it as per-panel option... dunno!
The last request, close on mouse-exit, won't be implemented, this intrudes
with Panel consistancy, and is pretty OK solved with NKEY-NKEY now.
Ton Roosendaal [Sat, 19 Jun 2004 09:35:23 +0000 (09:35 +0000)]
- added Font object to have outlines on Solid draw + selection
- Font object didn't support draw xtra wire yet
- removed drawing the circles from MBall object, except in editmode
- little cleanup in draw_object() call, it had a weird exception for
mball drawing
Roel Spruit [Fri, 18 Jun 2004 22:53:06 +0000 (22:53 +0000)]
added a new Sequence Effect: Sweep.
this consists of 22 different ways to sweep from 1 strip to another. For you windows lovers: it's like "Blinds" in Powerpoint :)
- in the NKEY menu you can choose which type you want perform, vertical, horizontal, in/out etc. it's too much to decribe.
Credits for this go to Kent 'Sirdude" Mein who coded the sequence plugin I stole the code from.
To allow certain sequence effects to have settings, I also added a "varstr" void pointer to the Sequence DNA, that can point to a special struct for each effect. This is similar to how plugins are handles.
more neat effects to come....
Roel Spruit [Fri, 18 Jun 2004 21:13:33 +0000 (21:13 +0000)]
I thought I added this include path for yafray to the msvc files already......o well, here it is again. it couldn't find RE-callbacks.h
Johnny Matthews [Fri, 18 Jun 2004 20:04:39 +0000 (20:04 +0000)]
This patch makes the vertex loop select tool only select edges which are part of 2 faces, this cleans up some incorrect selections the tool was making around areas in the mesh where faces had been deleted.
closes bug 1343
guitarGeek
Johnny Matthews [Fri, 18 Jun 2004 17:50:49 +0000 (17:50 +0000)]
This is a bandaid for a logic error in select_vertex_loop() that prevents an infinite loop in some cases. A fix for the logic error will come when I find the error :)
guitarGeek