Commit Graph

2255 Commits

Author SHA1 Message Date
Matt Ebb
002af38739 Fix for some bad code that MSVC choked on. Thanks
jesterking for pointing it out, I think I'd better go sleep
or something...
2004-08-04 08:02:44 +00:00
Matt Ebb
d1322bfaa8 Tweak to the colour picker after conversation with Ton.
Moved the buttons to the side, so it's:
* consistent with the layout of the floating panel version
and consistent with the vertical R/G/B sliders layout
* using real number fields instead of abused menus :)
2004-08-04 06:52:41 +00:00
Willian Padovani Germano
452c8cf838 Done.
Scripts:
- Jean-Michel Soler probably lost some hours of sleep since Sunday,
  but he managed to send me the updated path import scripts a few
  hours ago.  My tests with Inkscape .svg and .ps and Gimp worked fine.
  He also tested a lot and sent me info about what is already
  supported.  I'll send Ton a doc about bundled scripts including this
  info.  Importers: .ai, .svg, .eps/.ps, Gimp 1-1.2.5 / 2.0.

- Jean-Michel also contributed his Texture Baker script.

- Campbell Barton contributed two new scripts: a mesh cleaner and a
  vloop skinning / lofting script.  He also sent updates to his obj
  import / export ones.

- A Vanpoucke (xand) contributed his Axis Orientation Copy script.

And that makes 8 last minute additions.  Thanks a lot to the authors
and special thanks to JMS and Campbell for their hard work : ).

BPython:

- tiny addition (I'm forced to call it a showstopper bug ;) so JMS's
path import scripts (that actually convert to obj and make Blender
load the .obj curves) can use Blender.Load() and not rename G.sce,
the default filename.  Blender.Load(filename, 1) doesn't update G.sce.
Nothing should break because of this, Load(filename) still works fine.

- Made Blender complain again if script is for a newer Blender version than the one running it.
2004-08-04 06:16:46 +00:00
Ton Roosendaal
54e1f40024 Showstopper bug... found out while preparing demos for siggraph;
WHen you select the yellow keylines in iposwindow (camera.blend regression
suite) it should update 3d window; that didnt work... fixed with simple
redraw.
2004-08-03 21:58:07 +00:00
Ton Roosendaal
05a87bc925 do_version for 2.34; sets outline select by default on on older
files. (testers; note that you cannot save 2.34 yet!)
2004-08-03 21:42:37 +00:00
Johnny Matthews
248404e7a2 This commit changes the sweep effect to be called 'Wipe' in both UI and in backend variable naming. 2004-08-03 19:36:17 +00:00
Wouter van Heyst
d1bbaf18ca - Fix build failure on Linux sparc
Checks for operating systems should be that, and not checks for hardware.
Linux/sparc is a valid combination, using sparc to check for Solaris thus
results in problems on non-Solaris.
2004-08-03 17:05:03 +00:00
Ton Roosendaal
6e7800e349 Fix for 1488
IKEY in buttons window, Editing context, Camera; didn't give the menu.
Just moving an if statement down...
2004-08-02 21:36:44 +00:00
Matt Ebb
060db9e94a Smallest commit ever: Make the OB: text entry field in
transform properties floating panel maximum 19 characters rather than 18, to bring it in line with the
similar field in buttons_editing.c
2004-08-02 13:06:09 +00:00
Jean-Luc Peurière
4b495e5e7b OS X fix:
those who work with visible dock where experimenting slowdown of UI  when
 blender window was overlapping dock.

now :
     - check available space excluding dock
     - create window with a 10 pixels border
     - maximised mode is only 1 click away

This code is fixing only. Will review that when consensus will be found
about how we should create the window.
2004-08-01 22:28:56 +00:00
Alfredo de Greef
c11bb5b7ad Values for spherelight sampling were using incorrect blender lamp parameter. 2004-08-01 22:21:22 +00:00
Nathan Letwory
f1fdc6d608 Under certain circumstances a null-pointer could get dereferenced. Disabling 'dynamic' on an object was one of the situations. Now checking before using.
NULL->m_mass never works, of course :)

Ryan Showalter spotted and located the problem.
2004-08-01 09:00:36 +00:00
Matt Ebb
59765b488e Tiny tweak to the selection mouse button prefs- put the
'left mouse' button on the left side, and vice versa :)
2004-08-01 03:07:56 +00:00
Ton Roosendaal
8224b1b164 - calculation of position within HSVCUBE button (picker) had wrong Y
coordinate, only noticable in Panel versions of picker

- the fix to give Transform properties new name "Paint" can't
  work with this code... this due to fact that panel positions are saved
  in files or looked up on re-open based on their names. Giving the Panel
  a new new name then causes it jump to another position, and back on end
  of painting.
  Needs to be solved in another way. Not feasible for 2.34...
2004-07-31 22:05:46 +00:00
Ton Roosendaal
8c1b11286c Fixed small annoyances with drawing selection circle and paint brush.
With glflush() change as committed before, updates weren't that good
anymore. Solution is actually just flipping drawing order.
2004-07-30 13:59:09 +00:00
Matt Ebb
d2a424b814 Menu item for the sequence editor properties panel wasn't
showing in some circumstances - fixed and simplified.
2004-07-30 10:53:10 +00:00
Ton Roosendaal
fc94d2908c Moved the drawing of size and diagonal of border select into the chunk
that draws the XOR border as well, this prevents unnecessary updates, and
makes sure all drawing uses a single glFlush()

Should solve redraw errors as reported by Goofster
2004-07-30 10:07:47 +00:00
Willian Padovani Germano
7ce069850f First of all thanks Kent Mein for committing the fix to space.c and Peter den Bak for reporting and testing it.
- making Blender not warn about 2.34 scripts, as Ton requested.  Will turn this on again before release;
- small fix to the new helpwebsites and helpsystem additions in BPy_menus.c, should solve problem reported by Jean-Luc Peurière about empty menus on startup;
- updated version info of a few scripts to 2.34, since they use recently added bpython api functions.
2004-07-30 05:18:14 +00:00
Ton Roosendaal
c726751760 Attempt #3 (or so) to solve the "weird buggy" hardness slider updates. :) 2004-07-29 20:50:13 +00:00
Kent Mein
cfbe0f3119 Willian's patch for enabling the menus again.
Kent
2004-07-29 19:10:52 +00:00
Alfredo de Greef
425cfa10eb Reflection caustics did not work, fixed.
Note to users: even when you only want reflection caustics (metals/mirrors)
you have to set a IOR value higher than 1, similar to glass materials.
The higher, the brighter the caustics.

That should be it...
2004-07-29 18:51:17 +00:00
Matt Ebb
6bcf9d5139 Panel layout tweaks courtesy of Chris 'Desoto' Burt, and
Emilie 'hmetalcowgirl' McDavid
2004-07-29 14:12:30 +00:00
Ton Roosendaal
295989f42a Circle select (B+B) had drawing error, a missing segment in the circle. 2004-07-29 13:57:59 +00:00
Matt Ebb
28f0f2d048 Help menu!
Thanks to Willian for integrating the webbrowser module.

Some of the URLs (Python reference, Release notes) will
need to be updated upon release. These are contained in
http://www.blender3d.org/Help/index.php
2004-07-29 12:12:20 +00:00
Stephen Swaney
7ed803f6a8 some code cleanup. minor bug fixage: don't try to free null ptrs.
accidentally ran CurNurb.c thru indent utility  Doh!
2004-07-29 12:00:34 +00:00
Matt Ebb
8ccd19ec18 A hopefully less weird way of doing the selection mouse
button user preference
2004-07-29 05:03:02 +00:00
Matt Ebb
891b749d9f Removed an unnecessary separator in the Object/Mesh->
Scripts menus
2004-07-29 02:35:26 +00:00
Matt Ebb
91d782ece7 Fixed up the layout and language of the
View Properties Panel.

(reminder: http://www.blender3d.org/cms/Language_and_terminology.338.0.html )
2004-07-29 02:25:10 +00:00
Alfredo de Greef
8faca4189a First victim of the hurried work, halo spots always cast shadows.
So removed 'ray shadow' button for that case.
So what I said in the previous commit is not true, with  halo for
spots enabled, shadows are always cast, and cannot be disabled,  sorry...
2004-07-29 00:12:43 +00:00
Alfredo de Greef
e9b0238d0c Major update, all implemented a bit in a hurry, and probably will need bugfixes at some point.
Extended the range of the depth and cdepth parameters as reqested by leope.
Bumpmapping should now be a bit more similar to the Blender render.

Added support for all remaining lightsources in yafray, tried to make use of
as much of the existing Blender parameters as possible.

Blender Lamp: added switch to enable rendering with shadowbuffer ('softlight' in yafray).
All other parameters are similar to the Blender settings, for yafray both the
bias parameter and the shadowbuffer size can be lower than equivalent Blender
settings, since the yafray buffer is floating point. Remember that 6 shadowmaps
are created in this case, so can use quite a bit of memory with large
buffer settings.
When 'ray shadow' is enabled for this lamp type, it is possible to set a light
radius to create a spherical arealight source ('spherelight' in yafray),
when this is 0, it is exported as a pointlight instead.

Blender Spot: as in Blender now supports 'halo' rendering.
Halo spots always use shadowbuffers, so when enabled the buttons for shadowmap
settings will appear. The 'ray shadow' button can still be used to disable
shadows cast onto other objects, independent of halo shadows.
One thing to remember, halo's don't work with empty backgrounds, something must
be behind the spotlight for it to be visible.

And finally, the photonlight:
probably the most confusing (as more things related to yafray), the photonlight
is not a real lightsource, it is only used as a source to shoot photons from.
Since indirect lighting is already supported (and looks better as well)
only caustics mode is supported.
So to be able to use this properly other lightsources must be used with it.
For the photonlighting to be 'correct' similar lightsettings as for the 'source'
light are needed.
Probably the best way to do this, when you are happy with the lighting setup
you have, and want to add caustics, copy the light you want to enable for
caustics (shift-D) and leave everything as is, then change the mode to
'Photon'.
To not waiste any photons, the photonlight behaves similar to the spotlight,
you can set the width of the beam with the 'angle' parameter. Make sure
that any object that needs to cast caustics is within that beam, make
the beam width as small as possible to tightly fit the object.
The following other parameters can be set:
-photons: the number of photons to shoot.
-search: the number of photons to search when rendering, the higher,
the blurrier the caustics.
-depth: the amount of photon bounces allowed, since the primary use is for
caustics, you probably best set this to the same level as the 'ray depth'
parameter.
-Blur: this controls the amount of caustics blur (in addition to the search
parameter), very low values will cause very sharp caustics, which when used
with a low photonnumber, probably lead to only some noisy specks being rendered.
-Use QMC: Use quasi monte carlo sampling, can lead to cleaner results, but also
can sometimes cause patterns.

Since the photonlight has no meaning to Blender, when using photonlights and
switching back to the internal render, the light doesn't do anything, and no
type button will be selected. The lightsource can still be selected, but unless
switching to yafray, no parameters can set.

Apologies to Anexus, I had no time to really do something with your code,
I'll still look at it later, to see if I can improve anything in my implementation.
2004-07-28 22:37:12 +00:00
Ton Roosendaal
fcd19e73df Change in handling of ui_do_buttip(). It doesnt use the global var, but
gets it as argument. Potential fix for windows crash
2004-07-28 21:31:26 +00:00
Ton Roosendaal
268da28875 As requested; the Ramp shaders have same blending operators as were added
for texture blending.

Also made the popups for this blending stuff in more logical order.
2004-07-28 20:20:43 +00:00
Willian Padovani Germano
6b1eb45dda Scripts:
- Campbell Barton updated his sel_same.py script;
- Added to Mesh scripts a call to Window.EditMode(0) to leave editmode before changing meshes.

BPython:
- small doc fixes / updates;
- added a call to undo_push_mesh inside Window.EditMode(0).

Mesh scripts could change the mesh but not the editmesh -- that would then overwrite the changed mesh.  Made all mesh scripts leave edit mode before changing a mesh.
2004-07-28 17:46:29 +00:00
Jean-Luc Peurière
bbdfacfde3 added a nice alert box when blender is run on a mac with less than 8Mb VRAM 2004-07-28 16:47:08 +00:00
Ton Roosendaal
7047817c36 Added crease value in NKey menu editmode 2004-07-28 16:45:00 +00:00
Ton Roosendaal
846da79887 Oops, include file belonging to previous commit...
Plus: moved particle interaction and effect buttons back to a single
Object context. The proposed solution (sub context) has workflow issues,
(adds another click (no hotkey) to view settings)
whilst almost all Object buttons nicely fit in single view still.

This was on todo since first particle commit, actually the idea was to
move particle related issues to a special sub-context, but leave the
effects themselves in the Object main menu. Splitting off Particles from
the Effect system isn't in the scope of what is feasible now.

Also note; the current panel 'particle interaction' actually should be
a generic 'forces and collision' panel, since it's also relevant for
soft body feature (WIP)... that can be changed later.
2004-07-28 15:07:35 +00:00
Ton Roosendaal
76616c266e Added new selection outline as option in View->View Properties panel. And
while working there added 3d cursor there as well.
I admit it isn't the best location ever, but let's do the threaded
discussions after 2.34 is out. :)
2004-07-28 13:21:27 +00:00
Ton Roosendaal
4f9cd88087 Removed unnecessary window-close on subsequent renders. This not only causes
delays and lotsof redraw events for the desktop, it also made it impossible
to drag a renderwindow to a desired position.
Now it only re-opens on render size changes. Maybe enables to have the
window permanent on 2nd monitor for extended desktops?

Note; the 'pref position' preset in F10 still works, but only on window
open of course.
2004-07-28 12:47:50 +00:00
Ton Roosendaal
11ec0170cf Both transparent render and Unified render now behave with old speed
again. Use raytraced material, or set the "full Osa" option if you
like slow rendering, but with nice specular/shading/texture AA.
2004-07-28 12:27:28 +00:00
Ton Roosendaal
95eb490d0d fix for #1479
Caused by commit Kester 7 weeks ago, adding sound actuator always crashes
when no sounds have been loaded. He forgot to put a MEM_Free within the
brackets. :)
2004-07-28 10:01:22 +00:00
Ton Roosendaal
fc362f9538 Added framework OpenGL to link path, to enable the video memory check
in osx ghost now.
2004-07-28 09:31:36 +00:00
Jacques Guignot
2f5c4123d6 fixed a typo in Mathutil.Matrix (inverse --> invert) 2004-07-28 09:00:46 +00:00
Matt Ebb
595be0fed5 Interface drawing tweaks:
* Made the shaded ends of popup menus the right shape,
 when the button is aligned, connected to another button.
 Found by desoto, fix by desoto

* Made the icons inside icon buttons scale up with zoom,
 rather than just sit down in the bottom-left corner. The
 scaling up is rather ugly - consider this a temporary
 measure until we can find a nicer solution, on the
 backburner for 2.35. Found once again by Bugmaster
 Desoto, fix by ton.
2004-07-28 00:21:11 +00:00
Martin Poirier
1564409217 Uncommited dashed lines to indicated 1x1 zoom. While it did look nice and useful, it caused some rather nasty slowdown on some 3D cards. It was decided to push the feature as well as further discussions on it (zooming indicator in corner or others means of showing zoom level) for after 2.34. 2004-07-27 23:24:56 +00:00
Ton Roosendaal
fb40ae6413 Added option to set 'full Osa' on non raytraced scenes. This makes sure
old files still use the old fast OSA, and when you want a specific
material to have specular/shader/texture AA you can set this individual.

When rendering ray_mir or ray_transp or ray_shadow the new OSA will be
effective by default however.

Still todo; make this switch work for transparant faces and unified...
2004-07-27 22:23:45 +00:00
Jean-Luc Peurière
f3beeec296 new window behaviour for macos X computers :
if video card is open GL accelerated and has 16 Mo or more
start window in maximized mode wich is a full screen mode
but keeping access to other windows and sytem menu items

older comps start as usual
2004-07-27 20:40:42 +00:00
Stephen Swaney
58fb16aa13 Add missing funcs to Lamp method table:
getIpo
  setIpo
  clearIpo
Methods were implemented but not in instance method table.
2004-07-27 20:15:57 +00:00
Ton Roosendaal
43c1dcdfe6 Solution for old reports, that ray_transp filtered image textures wrong.
Problem was in calculation of oversampling vectors for correct AA. With
the new AA method, this is less necessary, so the code now doesnt use
mipmapped or filtered images when it is refracted. For reflected rays it
does still use the filter though, there the error is hardly noticable.

For all tests and report .blend files it looks much better.
However, a real mathematical solution is preferable still.
2004-07-27 18:48:27 +00:00
Ton Roosendaal
f9e0731003 What one little missing comma can wreak havoc! :)
Solved crash with choosing World ipo
2004-07-27 15:23:09 +00:00
Ton Roosendaal
4d3cca252c Fixed small calculation error for non-float slider, which defined
whether redraw was needed. This shows on (some) windows cards that the
button continuously keeps updating/flashing.

Since I can't test it here, please confirm :)
2004-07-27 14:26:11 +00:00
Stephen Swaney
0a092a5ffa fix epydoc formatting errors. 2004-07-27 14:18:32 +00:00
Ton Roosendaal
d375a64fbb Removed inadequate cursor grab feature. 2004-07-27 12:25:37 +00:00
Ton Roosendaal
3d6fa14777 Bug fix #1477
Important for everyone to know; buttons with event return code 0 pass on
the button event to other buttons. This was in yafray panels so, causing
buttons unwanted to be pressed when dragging sliders.

The official 'empty' event is B_DIFF, to denote that back and frontbuffers
are different, since the button was updated in front only with a press.
Alternative is B_NOP, which doesnt do anything.
2004-07-27 11:42:50 +00:00
Ton Roosendaal
031b39521a Fix for #1476
This is another extreme old one; from before NaN days even!
Issue is that shadowbuffers have a bias to prevent faces shadowing itself.
To make bias smarter, code was added to adjust bias based on light angle.
This correction allowed a factor of 10 times smaller bias, being in many
cases much too strong, causing frontally lighted faces becoming too dark.

New correction only halves the bias on frontal light, which looks quite
more convincing and pretty.
2004-07-27 11:29:45 +00:00
Ton Roosendaal
db7566fa98 Fix for #1475
Apparently appending or linking from other files didn't call a proper
do_version() patch to initialize new variables correctly. Was result of
the streamgluing stuff in NaN period... fixed.
2004-07-27 11:00:09 +00:00
Willian Padovani Germano
7b943f2a6d Scripts:
- Ben Omari sent an update version of his DirectX8.py, Jean-Michel Soler updated his disp_paint.py and Campbell Barton contributed a new one: sel_same.py (for now it's in the UV menu).  Thanks all, great scripts;
- small updates in some other scripts.

BPython:
- Finished wrapping radiosity functions for the Radio submodule;
- doc updates.
2004-07-27 03:13:45 +00:00
Ton Roosendaal
d0da285547 Fixed small annoyonce that was there for long;
New objects were not created with correct 'ipowin' value, to denote the
default ipo to show. That caused sometimes wrong display with weird empty
menu button in header.
2004-07-26 22:46:56 +00:00
Ton Roosendaal
73f1da749b Nathan's huge ipo patch.
- now more than 31 channels possible for ipos
- added lotsa new channels all over
- Texture block has ipo now too
- recoded getname_ei functions

(Will ask nathan to give release log info when he's back!)
2004-07-26 21:44:55 +00:00
Ton Roosendaal
0437f23008 Error in new particle deflector buttons; wrong type! Doesn't anyone
check warnings, eh! :)

space.c error is mine though... warning too!
2004-07-26 21:32:56 +00:00
Ton Roosendaal
3d299a5dce Button type error; declaring short button and giving it an int! 2004-07-26 21:23:20 +00:00
Ton Roosendaal
519fb27ad5 Removed 'static' declaration from addzbufImBuf(). This is an exported
function, static is for local functions...
Reason was it gave loads of warnings in compiling.
2004-07-26 21:20:42 +00:00
Ton Roosendaal
ca6c0861cf Wrong threshold for reflection rays (prevent go through backside) caused
errors in rays going extreme close along surface. Like bug #1471 shows.

Threshold removed, can't find any sample where this happens now...
2004-07-26 20:09:43 +00:00
Ton Roosendaal
653abbae6c Fix for #1449 (blocky shadows)
This problem appeared to be a famous one, with some fun read to be found
on the web. The solution as I commit here is described on the site:
http://www.blender3d.org/cms/Misc_improvements.355.0.html

As extra (I needed it quite some!) added requested feature to have the
renderwindow display in titlebar whether the spare page is shown (JKEY)
2004-07-26 17:12:04 +00:00
Kester Maddock
8a52016501 Let the game engine manage it's own sound scene. This is to fix bug 1415 (Patch from Peter den Bak)
http://projects.blender.org/tracker/index.php?func=detail&aid=1415&group_id=9&atid=125
Also release the OpenAL device & context.  These were leaked before, and would cause an assertion.
2004-07-26 11:54:10 +00:00
Stephen Swaney
f64c5cacf7 roll back changes made in Ipo.c version 1.25 so we can
easily apply Nathan's ipo patch which was made against
version 1.24.

this version is the same as 1.24
2004-07-26 07:15:00 +00:00
Willian Padovani Germano
5f034d61b8 Stupid mistake, forgot to add radiosity include dir to the source/blender/python/api2_2x/Makefile, breaking the makefiles build. Thanks intrr for reporting. 2004-07-26 02:13:42 +00:00
Alfredo de Greef
4c78cc7557 Fixed camera flip bug.
Shadow lamp flags in plugin were not handled correctly.
Vertexcolors in plugin code were not exported.
Fixed a few bugs related to GIpower parameter.
2004-07-26 00:48:28 +00:00
Stephen Swaney
bead28b623 added a comment 2004-07-25 20:35:17 +00:00
Stephen Swaney
6d581008a8 a shot-in-the-dark attempt to fix the 'missing radio.h' problem.
changed #include <radio.h> to #include "radio.h"
2004-07-25 20:12:57 +00:00
Ton Roosendaal
874f5d3d48 Forgot to add remaking displist on ESC for subsurf crease edit... 2004-07-25 17:52:13 +00:00
Willian Padovani Germano
c50e3f374f BPython:
- new submodule Scene.Radio, for radiosity: still incomplete, but in shape for demos, updated SConscript to include it;
- new functions in Window module;
- doc updates: adding a todo file and a new start page for our docs: API_intro.py + other updates;
- small fix in Ipo.c provided by Damien McGuinnes (thanks!): Nathan has a patch with IPO additions and fixes for this and more, but until it is committed, there's this fix for Ipo.getCurve('LocX'), LocY, Z and QuatW,X,Y,Z too, according to Damien.

Other files:
- radpreprocess.c: added check for "during_script()" so eventual msgs don't popup during scripts;
- drawmesh.c: made a pointer (display list) be checked before accessed, fixes crash in scripts that forget to update display lists for subsurf meshes when a 3d view is in textured view mode.

Script: updated bevel_center by Loic Berthe.
2004-07-25 16:55:45 +00:00
Ton Roosendaal
fe9336eb88 Work on creases editing.
- while editing creases (SHIFT+E) it works like scaling now (towards or
  away from center selection).
- ESC while crease edit now works.
  (note; doesnt fit in Trans structs...)
- button 'draw edges' and 'draw creases' now exclude each other
2004-07-25 13:36:44 +00:00
Brecht Van Lommel
5881af9306 Fix bug #1466: Crash on decimating non-manifold mesh in scons build.
- Enabled the NDEBUG define (to disable assertions) on all platforms in scons.
  This is already the default in Makefiles.
- Free MEdge data after decimating, it is not valid anymore.
2004-07-25 10:49:25 +00:00
Matt Ebb
86d0d50479 Cleaned up the User Prefs layout. More ordered, descriptive, and better room for growth. 2004-07-24 16:43:16 +00:00
Johnny Matthews
bdd615b682 This commit prevents the loopcut tool from selecting a starting edge which isn't part of any visible faces. Since the tool requires at least 1 face to cut, this does not limit tool functionality and prevents blender from crashing.
Fixes bug #1331
2004-07-24 05:32:08 +00:00
Ton Roosendaal
2b2d794533 Report #1457
The laptop option "no numpad" did this in the main queue, for all windows.
This caused problems, like for text editing in 3d window.
Now it only does it in 3d window, and not with editmode for Text object.
2004-07-23 21:07:32 +00:00
Chris Want
4a85ba9948 Somewhat better determination of ascii vs. binary filetypes when
importing STL files.
2004-07-23 20:50:44 +00:00
Ton Roosendaal
2d54d7b3ce Bug #1462
A nurbs sphere parented to Bone accidentally was treated as parented to
armature (deform) in renderconverter.
2004-07-23 20:47:47 +00:00
Ton Roosendaal
a856becb52 Added a fix for calculating centring buttons in panel. It was off 8 pixels
(the safety).
2004-07-23 19:24:07 +00:00
Chris Want
3ad0fce900 Fixed (minor) memory leak that occurs when audio can't be opened. 2004-07-23 15:23:42 +00:00
Ton Roosendaal
38d2a7148c Report 1456; bezier subdivide was far too simple. The reporter provided
the correct math for it, works like a charm
2004-07-23 14:31:22 +00:00
Ton Roosendaal
3b242ab2ea Fix in rendering AO + alphamode "Key". Sky color was set raytrace and not
properly reset when renderimg sky itself.
2004-07-23 11:06:28 +00:00
Ton Roosendaal
a3d1f2bf66 Work on filesel.c :
- Bug fix #1464; a 2nd time shift+f1 append didn't make the ".." file a
  directory, preventing going to a parent directory in .blend file
- Bug fix (not reported): when saving an image, the fileselect window(s)
  didn't show that image file when calling fileselector again
- Removed redundant code from experiment with ImageMagick
- Renamed functions with dutch names... :)
2004-07-23 10:49:04 +00:00
Ton Roosendaal
8773a7bb5f Bug 1447
CTRL+ALT+F was supposed to give a button popup to type a search string.
thanks to reordering code in oct last year this didnt work anymore, only
the first time.
2004-07-22 16:56:35 +00:00
Ton Roosendaal
4b7250d82a Added proper duplicate code for displistMesh. causing crashes...
(bug 1434)
2004-07-22 16:00:44 +00:00
Ton Roosendaal
36375b1c29 Added colorpicker support for theme editor 2004-07-22 13:40:17 +00:00
Kester Maddock
b453cd0715 Fix bug #1460: Camera IPOs Broken (Gameengine)
The camera IPO was not invalidating the cached projection matrix.
2004-07-22 00:26:34 +00:00
Kester Maddock
6ce57a706f GCC 3.4 compile fixes from bug #1277 2004-07-22 00:15:50 +00:00
Ton Roosendaal
866f03db8c Report #1433
In camera view, with ortho camera, the current camera was drawn with
unpredictable sizes. The code was not written to work for ortho, so
I check on that now. Means camera isnt visible itself then, which
is minor I think. Nice for a todo once...
2004-07-21 21:27:14 +00:00
Stephen Swaney
d7dd942678 fix warning: function declaration isn't a prototype 2004-07-21 21:26:11 +00:00
Stephen Swaney
bce2c02fdd New Curve method Curve.appendPoint( numcurve, newpoint ) to add
points to a Curve.

New supporting module CurNurb to provide access to the curves in a Curve
and their associated points.

Curve module now supports Python iterator and sequence protocols.
This allows typical python programming idioms using 'for' statement
and the [] operator.

# example 1
for curve in a_curve:
	for point in curve:
		print point

#example 2

curnurb = a_curve[0]
curnurb.append( [1,1,1,1] )

Still under construction.  Epydoc will follow.
2004-07-21 21:01:15 +00:00
Roel Spruit
1c5302e68b added include path for some gameengine file and fixed an undefined function in the shading buttons 2004-07-21 19:01:44 +00:00
Ton Roosendaal
db4941128e Bug #1459
New buttons in editmode for mball forgot to check on NULL pointer.
2004-07-21 17:44:44 +00:00
Nathan Letwory
5c4e6908e7 Kent Mein pointed out some embarrasing syntax errors in example. Corrected those. 2004-07-21 17:25:50 +00:00
Kent Mein
7e35864f81 made it so the popup for mixing modes for textures was put into world
and lamp map to windows as well as the material one.

Kent
2004-07-21 16:06:54 +00:00
Nathan Letwory
9175679b36 More alignment corrections by Emilie, for "Anim Settings" buttons. 2004-07-21 13:53:10 +00:00
Willian Padovani Germano
c04bec851c creator.c wasn't updated in my last commit, here it is (the change reverts my previous change to it, since it was made unnecessary by handling onload scriptlinks a little differently, as can be checked in blender.c and editscreen.c).
- BPython:  finishing object and nmesh .setMaterials commit, fixing two bugs.  Also fixed a crash with object.track (pointer wasn't checked for validity).  All based on reports and patch by Yann Vernier, thanks again.
2004-07-21 03:19:52 +00:00
Matt Ebb
df36d4c8e5 More details:
* Added 'Crease SubSurf' to the menus/toolbox

* Language edits in the sequence editor
2004-07-21 01:44:27 +00:00
Stephen Swaney
73b700626b More stuff made pretty. Courtesy of Emilie. 2004-07-21 01:38:20 +00:00
Alexander Ewering
bb3c7cc0a1 Desoto fixed fine-alignment of buttons in Scene buttons. Looks cleaner now. 2004-07-20 22:35:09 +00:00
Alexander Ewering
a600d66795 Undo never worked correctly for "Extrude" in BF-Blender. It just undid the
transform, not the extrusion itself. How did nobody notice? :)
2004-07-20 21:48:42 +00:00
Kester Maddock
b6e0899607 Added support for cameras in Blender's Ortho mode. 2004-07-20 12:07:06 +00:00
Willian Padovani Germano
7b3b3ae432 Trying to fix bug reported by Peter den Bak and Meino Christian Cramer (thanks!):
-- splash screen disappeared (duh, I did that!) and Blender quits upon exiting from some 225 games:

It was troublesome to find how to run demos in general with the screen correctly redrawn before they started, etc.  Ended up making the above error in screenmain().  About the games, I don't have them and will need some time to get the files for testing, but I'll do it, though only on linux.

BPython:
-- Window: added GetScreens, SetScreen and improved GetScreenInfo.
-- Object, NMesh: updated (added in NMesh) method getMaterials to return either only valid materials as before or also empty slots (as None).  This previous omission can be considered a bug, since it made info about materials incomplete / incompatible with face mat indices.  Thanks Yann Vernier for bringing this up and sending/proposing a patch that also fixed a bug related to assigning lists of materials with different lengths to obj and its mesh. setMaterials also accepts Py_None entries now, which become empty slots in Blender.
-- doc updates.
2004-07-20 08:16:46 +00:00
Martin Poirier
9bf1655070 Minor UI fixes by Emilie McDavid and Chris Burt. Mostly button alignement fixes, positioning, sizes and thingies like that.
Mostly in Editing and Shading (material).

Note: broken should review the changes though we've checked with all the different draw types and it didn't make any problem. If it worked correctly on Desoto's weird screen size, it can probably work anywhere. ;)
2004-07-20 01:53:32 +00:00
Alexander Ewering
a2474e9a0a Fix Trackball view rotation method to allow rotation angles > 180 deg.
without having to start over.

I patched this into instinctive a long time ago when someone submitted
the math to the mailing list but never got heard.

I hope it's acceptable :)
2004-07-19 11:38:09 +00:00
Alexander Ewering
319527efe4 "Grab Cursor" now only is invoked by GKEY. 2004-07-19 08:42:24 +00:00
Matt Ebb
66c2b4aace Details, details...
* Aligned the header align toggle button thing with the
 menu and gave handle_view3d_around() a prototype to
 clean up a warning

* Replaced the conglomerate of abbreviated texture blend
 modes with a menu
2004-07-19 07:08:51 +00:00
Chris Want
6883efe712 windows-gcc vs. solid, round 2
Doing it the Kester way, but in a way that it actually compiles and links
for non-Kester people. >=P

(translation: FREE_WINDOWS now builds the stuff in extern and overwrites
the pre-compiled solid libs).
2004-07-19 02:43:07 +00:00
Matt Ebb
b42c714d75 Give the correct N key panel name when in vertex paint + edit mode (#1451 thanks Desoto for the report! ) 2004-07-19 00:24:56 +00:00
Martin Poirier
b57167d3e4 Particles effector type #define
Different draw mode for Vortex effector ( http://www.clubinfo.bdeb.qc.ca/~theeth/Temp/vortex.jpg )
Use row buts for effector type (only one effector at a time per object).
Forcefield circle transparency in 3D view is controlled by falloff value (for coolness factor).

Please note that those only draws in the 3D view for Empty objects. I've tested with all other object types through a global call, but lamps (and only those) give problems. Since we go in release status soon, I prefer commiting something that works all the time.
2004-07-18 22:23:50 +00:00
Chris Want
98b86b55fa This makes the windows-gcc build finish (only link to libsolid.a)
... might not be the best way, but it works.
2004-07-18 18:42:36 +00:00
Ton Roosendaal
1620a9199e Adding the new blending modes, and coding nice code broke having
multiple layers of textures... silly cut/paste error. Fixed!
(check; moto9.blend in regression files)
2004-07-18 17:42:57 +00:00
Alexander Ewering
e9f86f281e Forgot these two :)
Please test :)
2004-07-18 15:58:23 +00:00
Alexander Ewering
96e0a103d4 1) Change the way "Align mode" is accessed in the UI: It's now a global
toggle for all pivot modes. The 2 new pivot modes have been removed
   from the popup.

   Instead, a new toggle button is added to the 3d view header.

2) Grab cursor mode. Cursor can be grabbed (and constrained to axis, grid,
   etc. while moving) like any other object. If no object is selected,
   GKEY alone grabs the cursor, otherwise pressing CKEY while in GKEY mode
   moves the cursor.
2004-07-18 15:57:33 +00:00
Willian Padovani Germano
6dca057ac5 BPython:
- added image.getBindCode() docstring to Image's epydoc file (thanks Satish Goda).
Scripts:
- Adding Apply_def.py to "Mesh" scripts menu (thanks author: Theeth);
- Updating JMS's disp_paint.py (also changed its name to remove version info);
- minor updates in docs and scripts.
2004-07-18 15:54:17 +00:00
Ton Roosendaal
4a244f274d Attempt 2 :)
Found the right +0.5 todo, now based on understanding why. Checked with
demo files in regression. But i bet intrr finds a new bug in an hour!
2004-07-17 14:18:34 +00:00
Ton Roosendaal
15d4fb9c85 Really bad luck with committing recently... past fix was plain wrong,
although it rendered the submitted bug file fine...
Note to self again; always also check if code even works in general! :)
Note to self 2: don't fix things ad hoc when you're not coding
2004-07-17 13:56:05 +00:00
Alexander Ewering
1bb871c682 "Force field" and "Vortex field" buttons in Effect buttons didn't update
the 3d view.
2004-07-17 12:55:16 +00:00
Kester Maddock
baa2f99f07 Port Python updates from Tuhopuu2:
getType/setType to action/sound actuator (sgefant)
Use a more generic python -> math conversion.
2004-07-17 05:28:23 +00:00
Kester Maddock
90fb631526 Port a few rasterizer changes from tuhopuu2:
Up the max batch size.
Clean up some of the code - move code in headers to source files etc.
2004-07-17 05:23:17 +00:00
Johnny Matthews
c0985f4ceb If using the 'ob centers only' modes, the headers for scaling did not update properly. This commit should fix that. 2004-07-17 03:23:17 +00:00
Kester Maddock
a57cd82e9f Remove all the autoconf stuff for QHull & SOLID and use the Makefiles.
This should make building Solid & Qhull much more reliable.
2004-07-17 02:44:24 +00:00
Kester Maddock
d5585a3589 Added the runtime fullscreen options. 2004-07-17 00:48:59 +00:00
Kent Mein
b07c5f2096 Bunch of small fixes for warnings and whatnot....
intern/SoundSystem/intern/SND_AudioDevice.cpp
   Initalized a var that could fall through with no value.

source/blender/readblenfile/intern/BLO_readblenfile.c
source/blender/src/space.c
intern/SoundSystem/intern/SND_Scene.cpp
source/gameengine/Converter/BL_MeshDeformer.cpp
        removed unused var's

intern/SoundSystem/openal/pthread_cancel.cpp
        fixed a nested /*

source/blender/imbuf/IMB_imbuf.h
        added static to the type returned for addzbufImBuf

source/blender/imbuf/intern/IMB_bmp.h
        had a wrong prototype

source/blender/src/view.c
        added newline at end of file.

source/blender/src/sequence.c
        removed unused var
        added #include <stdlib.h>  to avoid:
                 warning: implicit declaration of function `abs'
        initalized a var that could have been used without being set.

Kent
2004-07-16 14:45:06 +00:00
Willian Padovani Germano
376468d383 Fixing a blenderplayer compile error reported by Meino Christian Cramer:
- added mainqenter to stubs.c so it can be used in blender/blenkernel/intern/blender.c's setup_app_data.

We can't run the onload scriptlink in setup_app_data because the visible areas won't have been updated and redrawn for the loaded .blend file until control returns to screenmain() in blender/src/editscreen.c.  So an ONLOAD_SCRIPT event is entered in setup_app_data and caught in screenmain, where the onload script is then executed.  All for a good looking demo mode ...

BPython:
- Added image.getBindCode() method, contributed by Andrew Corrigan (thanks!).
2004-07-16 06:00:40 +00:00
Willian Padovani Germano
97bba404fb Demo mode and BPython:
- small additions and fixes to enable the demo mode;

- Added sleep() to Blender.sys and 17 new functions to Blender.Window module:
    things to help demo script writing and as a bonus read / write access to Blender's input event queue;

- updates in docs, those interested please check Window.py in python/api2_2x/doc/ to read about the new Blender.Window functions.

----

Demo mode should be working well now for (I) playing rt animation -- aka ALT+A -- and (II) rendering pics and anims and playing anims.  I'll still add access to radiosity data and functions.

PS: Joseph Gilbert made (II) possible with the Scene.Render module he added for 2.32.  He's been coding great things for bpython, so I'd like to take the chance to point that and thank him here.
2004-07-16 03:08:43 +00:00
Matt Ebb
146021ea2e Details, details...
* Renamed the paint color picker panel to 'Paint' instead of 'Transform Properties'

* Minor label edits to the pivot icon menu
2004-07-16 02:10:29 +00:00
Matt Ebb
688a6de878 * User preference to select with the left mouse button
instead of right.

This basically swaps left and right, in most window spaces
so you can choose between:
LMB: Cursor/time slider/paint  -  RMB: Select
or LMB: Select  -  RMB: Cursor/time slider/paint

Aimed at:
1. Newbies
2. 1 button mouse mac users
3. People like me who are sick of having to constantly keep putting their brains into different modes when
 switching between other apps and Blender :)

Yes, the User Preferences window is a bit of a nightmare
now, a layout cleanup will be forthcoming soon...
2004-07-16 01:34:19 +00:00
Chris Want
e926d392a8 OK, the game engine has been un-buildable on irix for long enough
-- I'm committing this change I had discussed on the mailing list
about a month ago.
2004-07-16 01:31:25 +00:00
Kester Maddock
7398803bf4 Fix to not create invalid bound shapes from non mesh objects (armatures). 2004-07-16 00:08:06 +00:00
Kester Maddock
07f294cf4a Fix ATI texture performance under Linux.
glGenTexturesEXT(1, &bind); // produces bind == 0
while:
glGenTextures(1, &bind); // produces bind correctly.
(Ported from tuhopuu2)
2004-07-16 00:05:20 +00:00
Ton Roosendaal
f7a4b6f1d7 Shadow buffer render wasn't corrected yet for OSA reconstruction of long
ago... samples where offsetted half a pixel, causing banding in render.
2004-07-15 20:03:35 +00:00
Johnny Matthews
700d9c5559 This adds two modes to the 'around' drop down in 3d header
3d Cursor, only Ob Centers
Median Point, only Ob Centers

They prevent rotation/scaling from effecting the scale/rotation of the objects and just effects their position.
This is handy for aligning objects if you constrain to an axis and scale, as well as other neato things :)

Intrr came up with the code and I hacked it into the GUI
2004-07-15 17:42:04 +00:00
Alexander Ewering
665a2f8fdd Oops. Forgot to restore setlinestyle(0); after drawing the dotted grid. 2004-07-15 16:40:01 +00:00
Chris Want
8483a1951d This should have been fixed long ago ... create important
directories using 'mkdir -p' to avoid errors with fresh builds.
2004-07-15 15:06:54 +00:00
Alexander Ewering
f25b0df751 Commit for the 4 aforementioned "features":
- "Global Pivot": Maintains a global Pivot and Align mode setting for
   all 3d views when enabled, instead of seperate settings per 3d view

 - "Auto Perspective": Switch to ortho mode automatically on 1/3/7, and
   to Perspective when the view is rotated with the mouse

 - "Align mode": As suggested on the list, when enabled, transformations
   on several objects only transform their locations, not their sizes or
   rotations.

 - Grid dotted when not 1:1

***ATTENTION***! The User Interface parts of these features have not been
committed, as I work on my own modified UI here. The three features need
toggle buttons to turn them on and off.

I used the following 3 buttons (first two features are in userprefs,
third as a 3d view setting):

        uiDefButBitS(block, TOG, USER_AUTOPERSP, B_DRAWINFO, "Auto Persp",
            (xpos+edgespace+(3*medprefbut)+(3*midspace)+smallprefbut+2),y3+10,smallprefbut,buth,
            &(U.uiflag), 0, 0, 0, 0,
            "Automatically switch between orthographic and perspective");

        uiDefButBitS(block, TOG, USER_LOCKAROUND, B_DRAWINFO, "Global Pivot",
            (xpos+edgespace+(4*midspace)+(4*medprefbut)),y3+10,smallprefbut,buth,
            &(U.uiflag), 0, 0, 0, 0,
            "Use global pivot setting for all 3d views");

    uiDefIconButS(block, TOG|BIT|10, B_AROUND, ICON_ALIGN,
                xco+=XIC,0,XIC,YIC,
                &G.vd->flag, 0, 0, 0, 0, "Translate only (align)");

Someone needs to add these to the interface in an appropriate manner!

Thanks.
2004-07-15 13:31:18 +00:00
Ton Roosendaal
9905d1c68d Rewound changes done in alpha calculus for texturemapping. This
worked OK for alpha coming from antialising (rendered) but failed to do
in other situations (alpha as blending, painted in gimp)
2004-07-14 18:18:21 +00:00
Alejandro Conty Estevez
9510c97833 cache_size yafray parameter calculation changed to sync with current
yafray cvs code. Now given in screen coords (-1,+1)x(-1,+1)
2004-07-14 10:20:56 +00:00
Brecht Van Lommel
13d4c0a5fb LSCM:
Fixed a bug where the projection axis for the initial solution was wrong,
causing the solution to collapse into one point.
Made packing denser (by reducing the padding between face groups).
2004-07-13 20:53:51 +00:00
Ton Roosendaal
419e5a6a0b Removed VECADD and VECSUB, are in utildefine.h now 2004-07-13 20:39:32 +00:00
Alfredo de Greef
b64afb526a Removed some testcode from yafray_Render.cpp
Added the missing anti-aliasing pixel filter size and threshold parameters for manual AA control (disable 'Auto AA' button).
Added support for yafray raytraced depth-of-field.
Added extra panel for Camera in edit window to edit dof paramaters.
The actual focus point will be drawn as a cross when camera 'ShowLimits' is enabled, similar to the aqsis code in tuhopuu.

Note to users: raytraced DoF is very slow, for best results, the default AA parameters are not good enough, especially with higher aperture values (more blur).
So for best results, disable 'Auto AA' and set the AA parameters yourself.
It works best with multi-pass AA ('AA passes' > 1) and a reasonable 'AA samples' value, something in the range 8 - 25 or even higher.
Currently the post-process DoF is not available in yafray, alternatives are being worked on.
2004-07-13 19:22:41 +00:00
Brecht Van Lommel
e077328122 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.
2004-07-13 11:48:52 +00:00
Brecht Van Lommel
4f1c674ee0 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.
2004-07-13 11:42:13 +00:00
Ton Roosendaal
4a13a5720d Ack! Fixed something without testing... this broke updates for numbuts
in picker.
2004-07-12 21:40:41 +00:00
Johnny Matthews
ab200e3f92 This commit add the clock wipe effect to the sweep menu in the sequence editor 2004-07-12 17:59:42 +00:00
Alfredo de Greef
f32b8e6b7f 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.
2004-07-12 03:20:31 +00:00
Simon Clitherow
c90ffd49e0 - 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.
2004-07-11 21:54:18 +00:00
Ton Roosendaal
612eb7c193 - 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
2004-07-11 13:17:03 +00:00
Ton Roosendaal
6b092cf8ad 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!
2004-07-11 08:46:26 +00:00
Matt Ebb
44a99d2596 Some tiny dialog message cleaning for easier scan-reading. 2004-07-11 04:44:50 +00:00
Ton Roosendaal
107e0c5036 Forgot to include glutil.h 2004-07-10 21:44:45 +00:00
Ton Roosendaal
eac4e86539 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.
2004-07-10 21:35:17 +00:00
Johnny Matthews
d5272c665f Added B_NOP to events buttons on wipe type effects panel. 2004-07-10 20:19:53 +00:00
Ton Roosendaal
2a2a800da4 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.
2004-07-10 19:56:27 +00:00
Ton Roosendaal
4e9ddbdc4c 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.
2004-07-10 17:40:40 +00:00
Wouter van Heyst
5b0e27de5c 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
2004-07-10 13:48:12 +00:00
Ton Roosendaal
448d89ef76 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.
2004-07-10 13:11:22 +00:00
Ton Roosendaal
73d4500517 Changed weird line in add_primitiveMesh() that caused cursor to flip back
to normal mousepointer while in editmode.
Was in code since 2.25...
2004-07-10 12:04:03 +00:00
Martin Poirier
ce4c291f42 Made effector strenght as big in the negative as in the positive. 2004-07-10 10:33:02 +00:00
Martin Poirier
2a8abfc143 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. 2004-07-10 09:17:25 +00:00
Martin Poirier
6c15a98e76 Fix metaball update bug when mirroring in object mode 2004-07-09 15:23:49 +00:00
Martin Poirier
c2a5da5cf7 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.
2004-07-09 14:39:06 +00:00
Ton Roosendaal
7ba95846ca 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.
2004-07-09 09:21:37 +00:00
Ton Roosendaal
ec64e0d743 Two little fixes in administrating new Mesh edges. Solves crash when
joining newly created (Added) Mesh with others...
2004-07-09 08:15:57 +00:00
Ton Roosendaal
f77bc7eb7d 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
2004-07-08 20:38:27 +00:00
Nathan Letwory
6757a8159b * 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)
2004-07-07 08:49:33 +00:00
Brecht Van Lommel
2388cada01 Fix compile error: the 'log' function takes only one parameter: changed
log(xo, 2) to log(xo)/log(2).
2004-07-06 22:25:14 +00:00
Johnny Matthews
9c94728d89 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
2004-07-06 19:07:13 +00:00
Ton Roosendaal
5b09bb1eb1 - Removed new outline drawing from vpaint/faceselect and other paint modes
- fixed tooltip drawing in color picker
2004-07-06 16:32:44 +00:00
Ton Roosendaal
181b970bf4 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 :)
2004-07-06 12:49:57 +00:00
Ton Roosendaal
4321a8889e 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.
2004-07-05 22:15:27 +00:00
Ton Roosendaal
20dbb446ed 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.
2004-07-05 20:45:41 +00:00
Ton Roosendaal
ba2081b21d 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)
2004-07-05 17:48:47 +00:00
Ton Roosendaal
fa86302aa3 Cleaned up pop-up menus for F10; edge settings and framing menu. 2004-07-05 10:56:13 +00:00
Ton Roosendaal
e804cf366a - oh, the protype for XORcircle... 2004-07-05 10:22:41 +00:00
Ton Roosendaal
a910ff343e - 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
2004-07-05 10:22:00 +00:00
Ton Roosendaal
3cade4dad6 Changed redraw of picker not to include the background, prevents flashing. 2004-07-05 09:21:22 +00:00
Nathan Letwory
0576268c22 * Added IPO for displacement, translucency and raymirror
* Cleaned out IPO #defines
2004-07-05 09:15:02 +00:00
Ton Roosendaal
cd47cfd3d1 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...
2004-07-05 08:48:17 +00:00
Matt Ebb
c1ce82bd67 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.
2004-07-05 07:52:32 +00:00
Joseph Gilbert
34ae24e37a - py docs update
- getMatrix(), properties for object class, some examples
2004-07-04 19:57:41 +00:00
Ton Roosendaal
b2d7f47b81 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...
2004-07-03 18:39:19 +00:00
Willian Padovani Germano
cbe7471905 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 .
2004-07-03 17:28:15 +00:00
Ton Roosendaal
5c543698c9 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.
2004-07-03 14:18:21 +00:00
Willian Padovani Germano
9282827720 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.
2004-07-03 05:17:04 +00:00
Ton Roosendaal
90d4f7a3c1 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.
2004-07-02 22:29:06 +00:00
Ton Roosendaal
326f3c3d6a 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.
2004-07-02 20:49:08 +00:00
Ton Roosendaal
265450dcb5 Added new exported render calls in stubs... so player compiles again! 2004-07-02 13:51:33 +00:00
Ton Roosendaal
ef9fa4bf50 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.
2004-07-02 12:44:32 +00:00
Ton Roosendaal
ea7e5c9f41 Forgot to add code for copying/paste functionality Materials. With new
ColorBand data added in Material that needs to be tackled corectly.
2004-07-01 18:06:27 +00:00
Ton Roosendaal
30251dbc13 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)
2004-07-01 16:15:22 +00:00
Matt Ebb
7fc5114408 Corrected a misleading confirmation message when deleting a bone ("Erase selected bone", not "Erase selected armature") 2004-07-01 09:31:12 +00:00
Ton Roosendaal
d4755e8c5c Fixed draw error in panels, the header was overdrawn with panel background.
Only visible when panels are not transparent.
2004-06-30 21:59:12 +00:00
Ton Roosendaal
a8ef804146 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! :)
2004-06-30 18:54:09 +00:00
Kester Maddock
c9b4585618 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.
2004-06-30 13:41:19 +00:00
Kent Mein
09d3007b71 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
2004-06-29 20:34:10 +00:00
Jiri Hnidek
7000bebc4b - 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
2004-06-29 17:10:13 +00:00
Ton Roosendaal
b460748777 Metaball normals were flipped again... thanks jiri for pointing me to it... 2004-06-28 11:14:58 +00:00
Alejandro Conty Estevez
7febd4547d 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.
2004-06-27 20:10:20 +00:00
Ton Roosendaal
b8f73db964 added fflush(stdout) for printf updates while calculating particles 2004-06-27 14:05:08 +00:00