Commit Graph

1836 Commits

Author SHA1 Message Date
Ton Roosendaal
2713e9a7e4 2.33a splash 2004-05-11 21:54:44 +00:00
Ton Roosendaal
7a4e80b460 Little things pending for menus...
- grab/rot/scale sublevel in object pulldown (mostly as hotkey reminder)
- added missing hotkeys to 2 toolbox items
2004-05-11 21:40:39 +00:00
Ton Roosendaal
fc2171c37a Added warning message on attempt to join 2 Meshes with vertex keys.
That feature is not available... and I doubt that'll be soon. :)
2004-05-11 19:08:02 +00:00
Ton Roosendaal
34d3b2c2e4 Changed printing an empty string to print "0" for files for zero size
in file selector.
Thanks Joilnen for pointing to this line.
2004-05-11 12:50:04 +00:00
Joseph Gilbert
f141aed9dc - bugfix #1197 (New Bone.parent/child Access Destructive)
- a major redo of the Bone module
- BPy_Bone structs are separated into Bone data and python vars. This is necessary for the correct memory allocation of bone data between python and the global armature list.
2004-05-11 08:26:44 +00:00
Ton Roosendaal
404d9ab0a2 Tinsy error in undo for selection. Undo_push() was called too late.
Reported by Grogilius. Thanks!
2004-05-10 21:15:18 +00:00
Daniel Dunbar
00b44d4db2 - nasty memory corruption on windows for getting home directory
- check to make sure $HOME/.blender exists before returning that
    as the home
2004-05-10 20:35:46 +00:00
Ton Roosendaal
208a2937f7 PATCH!
Bug 1258: selecting objects with text drawing (axis, or as draw extra)
causes crashes in IBM cards. Has been tested & verified. A crash on
selecting Empty is often reported... so I just disabled drawing of
text when in selecting-draw mode.
Added comments in code to note it clearly.
2004-05-10 20:14:21 +00:00
Ton Roosendaal
c4dc33f18e Bug 1272
Normals for mball where flipped, when using displace mapping.
Fix is both flipping normals, and flipping flip flags.
2004-05-10 18:17:06 +00:00
Ton Roosendaal
0238900617 Bug fix for AO and Soft shadow:
When Traceable was off, and the rendered pixel outside Octree, the
intersection was going wrong. Due to the many samples taken not easy
to see, but certainly causing extra noise.
2004-05-09 21:52:23 +00:00
Ton Roosendaal
6c7747a6f1 Bug #1264
When in texture buttons, selecting Lamp, Camera or other Object didnt
update the shown texture correctly. Now it nicely switches.
2004-05-09 21:37:36 +00:00
Ton Roosendaal
366f58fca7 Added tooltips for Lattice editbuttons. 2004-05-09 21:26:43 +00:00
Ton Roosendaal
24a8327d25 fix for bug #1263
When zooming in extreme, scaling things outside of view caused dashed
line to be wrong... it used shorts for screencoords. Made it a float.
2004-05-09 21:15:05 +00:00
Ton Roosendaal
4d99961c0d As we dutchies say: "Now breaks my clog!"
Apparently the 'sync' option for alt+a anim playback *can* run without
the sound_init_audio() being called, but it cannot play audio... o_O
(For who doesnt know, syncing was coded abusing audio timing)

Anyhoo. This also fixes #1267, reporting that 'sync' option didnt work.
2004-05-09 20:40:21 +00:00
Willian Padovani Germano
fe89479036 BPython:
- Manuel from MakeHuman reported a memory leak in NMesh_getVertsFromGroup, should be fixed now.  A pylist was not being decref'ed.
2004-05-09 02:18:51 +00:00
Ton Roosendaal
9c3607b1ff Fixed little annoyance that caused previewrender not to clear sometimes.
For example when no Texture exists, and you switch from material to
texture buttons.
2004-05-08 09:42:33 +00:00
Jean-Luc Peurière
ac47d081c4 post 2.33 release commit of the modified SCons files for Os X.
Sconstruct modified so that Blender build on 10.3 without any additionnal
download than source + darwin libs.
defaults settings correct for 10.3.

fixed bug # 1260 : added MT_NDEBUG flag at top-level.
2004-05-08 01:34:39 +00:00
Kester Maddock
bd50d2f9cd Delete all SOLID shapes at the end of the game engine. They were all being leaked! 2004-05-08 00:25:20 +00:00
Ton Roosendaal
83907fc5f7 Num-slider buts and CTRL didn't work when range was > 1.0 2004-05-07 19:56:26 +00:00
Ton Roosendaal
16c783d950 Added two more mapping types to World buttons for sky render.
"Sphere": spherical mapping for a 360 degree panorama
"Tube": cylindrical mapping for a 360 degree panorama

Both mappings by default do only the sky (upper) hemisphere. The color
below is same as regular Horiz and Zenith colors, useful for setting
an AO effect.

Sample pics:
http://www.1000skies.com/fullpanos/index.htm (commercial)
2004-05-07 18:03:40 +00:00
Ton Roosendaal
934bdb5ee9 When pressing ALT+A, i noticed other windows advance 1 frame. This is
caused by swapbuffers system, which redraws the other windows when the
CFRA timer already advanced 1 frame.

Added an extra redraw to fix this. Could fix report #964, will wait for
JWalton to verify.
2004-05-07 11:59:41 +00:00
Ton Roosendaal
e7f6ebb7ca Improved three tooltips:
- Material Shadow and Traceable still mentioned old shadowbuffer methods
- AngMap option in World mapping has better explanation
2004-05-07 11:35:38 +00:00
Simon Clitherow
9936d28382 - switched a strcat and strcpy pair... doh! (well spotted b-ix!)
- appended "./blender" to %HOME% return for Win32. Is consistant now
  with the other returns for Win.
2004-05-06 21:40:38 +00:00
Ton Roosendaal
8d18aade3f potential fix for windows crash when it encounters file dates beyond
the nice limited unix range (1970-2034 or so).
Zr will check!
2004-05-06 20:53:05 +00:00
Ton Roosendaal
ef0adbd15f Fix related to audio crash. Made the check for when audio_init runs a
tinsy bit more strict. Now it did it for each ALT+A play anim.

I leave the debug print in still, for testing.
2004-05-06 19:57:21 +00:00
Ton Roosendaal
dba290879d bug fix #1237
A too strict pointer check caused action browsing in action-window not
to work when object didn't have action yet.
2004-05-06 19:42:38 +00:00
Ton Roosendaal
a686d5cb45 fix for bug #1223
Bump was inverted in previewrender for planar preview.
2004-05-06 19:31:16 +00:00
Ton Roosendaal
002a855275 fix for bug #1226:
With subsurf level 0, in editmode, the hidden faces where still drawn.
Was caused because subsurfing code then is skipped.
2004-05-06 17:32:17 +00:00
Kester Maddock
5813ae55d4 Fix Bug #1243: http://projects.blender.org/tracker/?func=detail&aid=1243&group_id=9&atid=125
Use external velocity (velocity set by the game engine - not the physics engine) for Motion Actuators.
2004-05-06 02:13:07 +00:00
Daniel Dunbar
f54160ca2f - PyInt_AsLong() was called on a possibly NULL object, this may be
a checked error but is no good anyway
 - Bone_dealloc free'd Blender's actual copy of the Bone! AGH!!!!
 - On syntax errors the python global dictionary was being free'd
    twice. AGH!!! again!

Can someone from the Python team please audit this.
2004-05-05 03:22:22 +00:00
Daniel Dunbar
baa54a9a9f - made a VERY IMPORTANT change to usiblender.c 2004-05-04 21:16:39 +00:00
Daniel Dunbar
993a438b3f - change to non-typedef'ng method of declaring BCursor in winlay.h
(OSX doesn't like)
2004-05-04 19:40:11 +00:00
Daniel Dunbar
14a46b70d3 - removed debug prints that had no meaning to most people
- zr: you lazy developer, you shouldn't commit code that has debug prints
     in it. you ruined my life!!!!
2004-05-04 19:13:35 +00:00
Daniel Dunbar
400cd96eff - ugh, do not break open an abstract data type just to add one single
function, especially when you are introducing extra dependencies
    (GHOST) on files that should not have them.
2004-05-04 19:10:55 +00:00
Kent Mein
84009013f6 Added Camera Fly Mode (Shift F) to the toolbox.
Kent
2004-05-04 16:25:35 +00:00
Kent Mein
ce816de41a Removed the printf that was causing about 50000
"Color depth R=8 G=8 B=8"  lines.....

Kent
2004-05-04 15:04:29 +00:00
Daniel Dunbar
c80ec7b808 - fix silly scriptlink running code, pulled out convenient
ID_asPyObject and ID_getScriptlinks functions,
	moved code into BPY_interface.c (where it fit better)
 - EXPP_interface.c is essentially obselete now
 - I didn't test this, I'm sure I broke something, if a Pythonista
	could comment that would be nice (oh and the maintainer too).
2004-05-04 14:27:41 +00:00
Kester Maddock
648c21947c Use a better compare function for RAS_IPolygonMaterial
Fix sharing verticies - must test pos, normal, uv & colour before sharing (not just index)
2004-05-04 13:17:46 +00:00
Kester Maddock
f03fa79d28 Fix for bug #945 getVertexArrayLength(x) returns different values on different runs of the game engine.
http://projects.blender.org/tracker/index.php?func=detail&aid=945&group_id=9&atid=125

The material buckets were being sorted by pointer (ie their location in memory.)

Also fixed find shared verticies.
2004-05-04 09:34:02 +00:00
Chris Want
79f3e88021 Build blender with solid-based gameengine on irix using pre-compiled
libs. I turned off the automatic building of solid in extern/ for
irix since the vendor supplied build system does not work well.

Note to JW: this can be built with either mipspro 7.3 or 7.4
(I needed to archive solid with "CC -ar ..." for this to work
with 7.3).
2004-05-04 04:55:24 +00:00
Ton Roosendaal
c0a7891382 Apparently the sequencer has its own audiosystem, so the change I did
for init sound only when needed, was not catched by sequencer.

Somehow, however, the SND_xxx library needs to be set when using the
sequencer... so, here a patch!
2004-05-03 21:21:29 +00:00
Brecht Van Lommel
0c64d26db3 Fixed a bug where From Window mapping in perspective view would give strange
results, caused by a little typo. The solution was proposed by bjornmose.
2004-05-03 13:23:19 +00:00
Kester Maddock
08c14c7ca0 Mouse Wheel Support for the Game Engine.
This adds "Wheel Up" and "Wheel Down" as choices to the Mouse sensor brick.
2004-05-02 23:45:03 +00:00
Chris Want
45a240260e Check that deformer is an armature defore updating the displists
of it's children (gives speed up for alt-A, animation rendering).
2004-05-02 22:03:22 +00:00
Joseph Gilbert
5a4e574b81 - Documentation for the new python API 2004-05-02 14:29:31 +00:00
Ton Roosendaal
e7df984c16 Changes for OSX compiling with Makefiles;
- support 2.3 python
- use -O2 for all
- fixed reference to SOLID.h
2004-05-01 16:52:29 +00:00
Hans Lambermont
dcb83e27a2 - use SDL sound on FreeBSD too.
- add solid include path to unix common makefile ... this is not FreeBSD
  specific, so I'm a bit confused as this wasn't corrected before.
2004-04-30 17:50:48 +00:00
Ton Roosendaal
298922ce39 Splash! :)
Thanks Piotr Kordala for the great artwork.
2004-04-30 11:52:08 +00:00
Chris Want
bfc6fbc573 Make python 2.3 the default for the irix build. 2004-04-30 02:12:28 +00:00
Ton Roosendaal
4c423081b2 Fix committed a while ago, revision 1.52, still set a bluroffset in a
very unexpected location, causing small offset in rendered sub-pixel,
which showed only up raytracing a very detailed object with small
faces... ugh!

(Thanks [A]ndy, sorry Desoto! :-)
2004-04-29 22:31:48 +00:00
Ton Roosendaal
954cf702d6 Upped version to 233 for in header in Blender
(Warn: still to do: splash!)
2004-04-29 17:14:31 +00:00
Ton Roosendaal
33abfc8015 World->physicsEngine is SUMO when you create new one. 2004-04-29 17:13:50 +00:00
Ton Roosendaal
94e57dbe0d Noted by Desoto: new 'Checker' option for Image repeat could use better
preview.
2004-04-29 16:33:08 +00:00
Ton Roosendaal
97f2cf05f5 Fix #1207
Flag for 'only shadow' was still working when lamp type switched to
Hemi. Also 'only shadow' didnt work yet for ray_shadow Spot lamp.
2004-04-29 16:20:34 +00:00
Ton Roosendaal
d6eeceb83d Fix #1205
Array with 'auto' names for textures didn't have the new names yet
(musgrave, voronoi, distnoise)
2004-04-29 15:56:26 +00:00
Ton Roosendaal
813352d677 fix #1204
Two typos in tooltips.
2004-04-29 15:52:11 +00:00
Kester Maddock
d7e6a3dd47 Fix blenderplayer unable to load .blend files (only runtimes!) 2004-04-29 10:51:02 +00:00
Stephen Swaney
2609a608bb fix for #1123 by Roland Hess (harkyman)
Testing has not convinced me this is a complete solution to the
Ipo Curve handle issue, but it does seem to make things
better for curves created via python.  We will probably need to revisit
this, especially if we expose the curve handles in the bpy interface.
2004-04-29 04:50:28 +00:00
Stephen Swaney
1e75dbc0a1 bump version number 2004-04-29 01:56:55 +00:00
Ton Roosendaal
8f4f2e5235 Correct icons for OSX 2004-04-28 21:19:18 +00:00
Ton Roosendaal
02ba73aaad Sneaked in new feature (request samo):
The Image texture repeat options, now allow a "Checker" repeat. With
odd and even tiles set separately, and a size button to set a
'Mortar' inbetween tiles.

http://www.blender3d.org/cms/Render_engine_features.215.0.html

Also fixed bug: using 'CalcAlpha' option for image textures didn't give
antialised edges for image.
2004-04-28 18:08:34 +00:00
Ton Roosendaal
0da09b4299 Bug 1203
Error in code invoked by menu:
View3d header -> Select -> Groups -> Parent
There was a call to draw an object in frontbuffer, whilst the header
was still active.
Not needed, because full redraw event was sent too.
2004-04-28 17:35:35 +00:00
Ton Roosendaal
07b6ca41c8 Bug fix 1202
Sample file showed UV-textured Subsurf, in 'Potato' texture view. When
separating part of it in editmode, a null pointer was referenced in
drawing code.
2004-04-28 17:26:30 +00:00
Kester Maddock
83b17b9f4d Fix: Setting objects Dynamic, then unsetting Actor would leave an object dynamic.
Check for Actor && Dynamic to enable dynamic.
2004-04-28 09:08:42 +00:00
Ton Roosendaal
0bf41c06cd Error in popup menu for new Musgrave texture. The order was wrong, and the
button values where wrong... big messup!
Only thing that actually changes is that now the Musgrave names suddenly
are different.

Thanks Desoto for finding it!
2004-04-27 19:42:41 +00:00
Ton Roosendaal
ef4a6c3551 Bug 1199
Joining meshes could crash when 1 had vertexgroups, other not.
The first then should have been appended from other file, to make
it more complex. :)

Crash caused by reading NULL pointer.
2004-04-27 19:30:16 +00:00
Ton Roosendaal
978ba3c208 Fixed minimum limit for values in Armature panel. 2004-04-27 19:05:41 +00:00
Ton Roosendaal
34a2350908 - UGH! Some optimize line in sky code screwed up sky render when it had
no texture nor blend... gave weird lines in render.
2004-04-27 17:06:02 +00:00
Jiri Hnidek
79d990f310 - Bug fix: MetaBalls was not polygonized, when armature (as parent of MetaBalls) was in pose mode. 2004-04-27 14:37:19 +00:00
Ton Roosendaal
4641463589 removed print "break true" when pressing ESC with render window active. 2004-04-27 12:17:16 +00:00
Ton Roosendaal
4f815a52f1 Error found in code that allows dynamic octrees. A lookup table was not
cleared correctly for each face, causing too many octree nodes to be
filled in.
Especially for more complex scenes this fix is quite a time saver.

Still looking at ways to speedup octree filling though.
2004-04-26 22:14:31 +00:00
Ton Roosendaal
4ff3a1ec10 Request from [A]ndy:
When tracing a mirror with AO, the rendering was extremely slow due to
each mirror sample (like 8 per pixel) taking a full range of AO samples.

Now it uses for mirror samples a corrected amount, which makes sure for
a single pixel still a full AO range is used.
Makes mirror+AO render 5-6 times faster, at least.
2004-04-26 21:38:36 +00:00
Stephen Swaney
0e156156b1 bugfix: Ipo.addCurve() was creating a new Ipo block and adding curve there
instead of adding curve to existing Ipo.  reported on elysiun.
2004-04-26 17:21:51 +00:00
Ton Roosendaal
6d2970e406 Added Ambient channel in "Map To" Panel for materials. Is now means to
control AO and Radio with texture too.
2004-04-26 16:49:05 +00:00
Ton Roosendaal
44f8257436 Optimize for AO: when material ambient value is zero, no AO calculus
takes place now. Also nice to tweak & speedup environments.

(Thanks Theeth for hint!)
2004-04-26 15:07:08 +00:00
Ton Roosendaal
0facc2681e Solved AO smooth rendering, by introducing a "Bias" value for smoothed
rendered faces.
http://www.blender3d.org/cms/Ambient_Occlusion.231.0.html

ALso removed prints when allocating new 'face groups' etc, which wasn't
informative at all.
2004-04-26 14:17:48 +00:00
Kester Maddock
5df9926f49 Fix MouseFocus Sensor objects for dynamic cameras. (Bug 1165) 2004-04-26 07:19:18 +00:00
Daniel Dunbar
f331fc8fbb - add comment in filesel.c to note where memory from some BLO_blendhandle
functions is going
2004-04-25 15:12:45 +00:00
Willian Padovani Germano
2d24298b91 BPython:
-- epydoc Documentation for eeshlo's Noise module + small typo fix in Noise.c
-- BPY_end_python closes .blend file opened by Library module when script doesn't do it by itself.
2004-04-25 14:43:21 +00:00
Joseph Gilbert
395c1152c8 - finalize scene.render module
- added some constants for the rendering module to blender module
- moved rendering functions from scene to scene.render
- rendering functions called from renderData struct instead of from scene directly
- getRenderingContext() returns rendering data struct
- deprecation of old scene functions
- some formatting/documentation of code
2004-04-25 05:18:43 +00:00
Martin Poirier
f47ec62b07 Ah, it's better when the menus show the correct hotkeys isn't it ;) 2004-04-24 21:59:34 +00:00
Ton Roosendaal
7e75a72585 For the 100st time or so: fix in selecting vertices for Mesh editmode.
Why do i keep thinking it works? And will it be still broken? We find
out in a month! :)

Fixes also report 1191.
2004-04-24 21:51:38 +00:00
Martin Poirier
64fd636f0c Mirror in object mode. Works like Mirror in edit mode but only works on local axis (doing it differently would require a much more clever algorithm).
Mirror Object is assigned to Ctrl-M and I've add Ctrl-M to call Mirror Edit (on top of M alone) for practical reason. We should consider switching both to Ctrl-M for pratical reasons but I kept M for backward compatibility
Also added the menu and toolbox counterparts.

Minor addition to arithb.c: A function to print vectors to the console. Easier for debuging.
2004-04-24 21:09:06 +00:00
Ton Roosendaal
5bbd35ff05 Turned Sky render code in Blender to become fully float, it still returned
bytes for RGB.
This to allow very bright contrasted images to be used for AO as well. As
a first start also the Texture->Colors panel now allows contrast setting
up to 5.0 (was 2.0).
2004-04-24 20:27:29 +00:00
Willian Padovani Germano
382297b687 BPython:
- New module + doc: Blender.Library:
  It's like File->Append, loads datablocks from .blend files.
- small updates to fix warnings and accomodate for the new module, in readfile.[ch]
- New Blender.sys module function: time, a wrapper of the PIL get time function.
- Updated original makefile and scons builds.
2004-04-24 20:04:37 +00:00
Daniel Dunbar
f157940432 - convert darwin icon files to binary 2004-04-24 18:34:08 +00:00
Ton Roosendaal
4d29aee140 New: rendering in background mode (blender -b) now prints a percentage to
indicate scanlines being in progress. For motion blur frames it works too.

Bug fix: in background render it accidentally tried to free a sound pointer
that wasn't set. (caused by own commit of three days ago).

Fix: rendering motion blur in forground prints correct sample # in info-
header again.
2004-04-24 12:02:39 +00:00
Kester Maddock
63048b6cf4 Synchronise game engine with Tuhopuu2 tree. 2004-04-24 06:40:15 +00:00
Kester Maddock
a46f456e92 Fixes for MouseFocusSensor: (bug 1165)
1. Do the ray cast properly (from the near plane to the far clip plane)
2. Loop over invisible objects (sensors)
2004-04-24 06:36:55 +00:00
Kester Maddock
3a2194a534 Remove ability to open a published executable from Blender. 2004-04-24 06:29:51 +00:00
Brecht Van Lommel
8ff958e821 The Anim and Tiles settings in the Image Window are now available again, in the
new Properties panel (was first called Transform Properties). They include the
same settings as were previously found in the window header: Anim toggle,
Start/End frame, Speed, Tiles toggle, X repeat and Y repeat.

The Tiles button used to work incorrectly in 2.25, this is now fixed too.

The drawing of the UV Vertex transform buttons in the Properties panel used to
give popup error messages when in Edit Mode (uv_tface_editing_is_allowed is not
silent). Also these buttons would still draw in Edit Mode. Both are problems
are solved now.
2004-04-23 21:38:01 +00:00
Ton Roosendaal
dffa667674 Raytrace now has option to change the resolution of the Octree used. It
appeared that the standard size (64x64x64) just works fine for small
scenes, like a single character in a small environment. Larger scenes and
larger environments became exponentional slower.

Disadvantage of larger octrees is longer build time, and overhead traver-
sing it though, so something to tweak based on some experimenting.
A table with test results + blender file will be in CMS soon.

New button is in F10 Render panel, in bottom. Last free spot there! O_o
Sizes supported now 64, 128, 256 or 512.
2004-04-23 21:02:58 +00:00
Stefan Gartner
d8580d181b a sensors 'invert' toggle button was showing the wrong state.
thanks to Ton for figuring out what's wrong
2004-04-23 15:27:40 +00:00
Willian Padovani Germano
abe8191d70 BPython:
- fixed two warnings, unused var in Object.c and undeclared function in script.c
- updated Blender.Draw doc, it was missing info about Button object
- refactored pytype initialization to try to fix for once platform (and distro!) specific crashes on startup.  This asked for tiny updates in Effect.[ch] (removed static from declaration, moved definitions to the .c file) and modules.h
- fixed error I made trying to fix scripts w/ no [eol] char in menus.  Thanks Michael Velikanje for reporting the problem!
2004-04-23 13:11:48 +00:00
Ton Roosendaal
da7b4711a4 When Sound blocks are loaded, they can have packedfiles. If a Sound isn't
played (= packedfiles opened and copied to another block) these
packed data blocks where not freed.

The error showed in console at closing of Blender, like:
	read_struct len: 24 0x1c4423c
2004-04-23 13:11:29 +00:00
Chris Want
9095df6efb Enable the new, fast loading of the STL exotic file type
(thanks Ton!)
2004-04-22 22:33:57 +00:00
Jiri Hnidek
b043b0e37f -bug fix #1186
http://projects.blender.org/tracker/?func=detail&atid=125&aid=1186&group_id=9

-I forgot somethig, when i commited to this file last (i'm really sorry)
2004-04-22 21:16:54 +00:00
Ton Roosendaal
feaa60081d typo in this file... 2004-04-22 20:37:24 +00:00
Ton Roosendaal
438331af8e Nasty Library linking and appending stuff!
Problem: when appending data, it called the local_all() function, which
indeed made all data local, including all other dynamic linked data.
Not very nice... but mixing dynamic & appending data from single file is
headcrunching code.

Solution: when appending data, it now only makes local_all() the data from
that specific library file, leaving dynamic data from other files linked.

(Bug report 1183)
2004-04-22 19:58:54 +00:00
Ton Roosendaal
66578d2900 Fix for CTRL+drag on sliders and number buttons.
The code wasn't correct at all (for ages!). Rule now again is:

Button range 0.0-2.0 : ctrl goes with steps of 0.1, shift+ctrl steps of 0.01
Button range 2.0-20.0: ctrl goes with steps of 1.0, shift+ctrl steps of 0.1
Button range larger: ctrl goes with steps of 10.0
2004-04-22 17:46:07 +00:00
Brecht Van Lommel
a0b738fe89 Fixed bug #1187: tooltip typos in the uv calculation panel
- Draw Edges buttons all had the same tooltip
- aequator -> equator
2004-04-22 17:22:01 +00:00
Ton Roosendaal
90e69b1a30 bug 1181
Inconsistancy... choose International Fonts, choose Load Font, then disable
International font, but still load a font: AA fonts magically are set. :)
2004-04-22 17:11:20 +00:00
Ton Roosendaal
efc389fe4f In beginning of buttons for logic editor was weird code checking physics model.
It even has old enji buttons still!
Anyhoo, if no World was active it returned.. that could be coded friendlier.
2004-04-22 13:08:49 +00:00
Ton Roosendaal
b37e9eafeb - NLA Window:
Added support for Panels, and converted old NKEY menu here.
Also enabled zooming in further, as for Action Window.
(note: this editor can use some work, this action stuff is underdeveloped
and mysterious!)

- UI code
Brought back fix that sets for each Panel a GL matrix for UI code thats
coming after it. This makes system more flexible, and prevents conflicts
with other uiBlocks in a window (like ipo, action).
This will give a tinsy bit more load for moving mouse around... please
report back if this causes troubles.
2004-04-22 12:36:27 +00:00
Ton Roosendaal
004307a572 Small fix: when using vertex keys for Lattices, all buttons in the panel
where locked. This should not be for three of them, to set drawtype or
key mode (slurph, relative)
2004-04-22 10:35:02 +00:00
Nathan Letwory
892720ffad [SCONS] Optimisation flags for msvc 2004-04-22 04:50:41 +00:00
Simon Clitherow
0d0ab24e4a - zeroed out a variable before strcat()'ing! :)
- removed a rogue debug printf().
2004-04-21 19:03:22 +00:00
Ton Roosendaal
282d063569 commented out code to enable multiple uiBlocks in window with different
matrices (like action window should have). This one gave error in
IpoWindow with Panel.
2004-04-21 18:04:02 +00:00
Ton Roosendaal
2e4d0e9c5a Fix for #1174
When toonshading is used, also backfacing polygons are rendered. This
causes a conflict with raytraced shadow, since backfacing polygons
always have shadow.
There was an error in the code that didnt set shadow for backfacing
polys, assuming shading would be 'zero' then as well. That's fixed.
2004-04-21 17:23:04 +00:00
Ton Roosendaal
562900689a fix for bug #1178
Apparently gcc 3.4 gives error when not casting a pointer to long.
Found and reported by Noselasd.
2004-04-21 16:43:51 +00:00
Ton Roosendaal
f80809825e Fix for radio render.
Somewhere after 2.28c I fixed some thing in radio rendering that prevented
textures to be applied to radio energy.
Now it is a normal 'diffuse' energy again, and multiplied with actual
(textured) material color.

Small fix: the radiosity steps show up as numbers printed in time-cursor.
2004-04-21 15:44:37 +00:00
Willian Padovani Germano
ebd762b5e7 BPython:
- Michel's linux test builds with Python 2.3.x were crashing.  This of course shouldn't happen even when Python isn't installed in the system.  The problem was much probably some uninitialized internal type needed by the Mathutils module and the "fix" is stupid.

Moving the registration of Mathutils module in Blender.c to the end of the list solves the crash here.
2004-04-21 14:24:59 +00:00
Chris Want
2d7137151f Fix for bug #1176 -- During animation, NLA seems to like to have
'do_all_actions' run twice for all of the constraints to be updated
properly. (/me grumbles: I fixed this last week for the OpenGL
updating stuff in header_buttons.c ...  do we really need to have so many
update_for_newframe()-style functions?)
2004-04-21 14:18:02 +00:00
Ton Roosendaal
db8cdac8d1 Forgot to remove test prints from creator.c
Also added note about removing audio init in comment.
2004-04-21 14:15:37 +00:00
Ton Roosendaal
9722b25637 Fix for slow starting of Blender.
This was caused by calling sound_init_audio() at startup. In situations
where Blender was first started, or when other applications used memory,
this could take 5-15 seconds.
I have moved the init call to 'start ketsji', and made sure any call
to an audio play routine will invoke an init as well.

Tested with engine and loading/play sound in F10 menu. I don't know how
the BlenderPlayer handles it... should be investigated.

Result: At OSX Blender starts in a second again! :)
2004-04-21 13:38:54 +00:00
Ton Roosendaal
6d9b6ccbbf - code cleanup: blender/src now compiles -Wall without warnings again.
- first code for panel in NLA window, tomorrow I continue with it.
2004-04-20 22:00:33 +00:00
Roel Spruit
9a12219372 Small annoyance of mine. Upped the maximum of the extrude dup button in editbuttons to 100 instead of 10 2004-04-20 20:10:58 +00:00
Simon Clitherow
255cd235a3 - Returned multi-user support on Win2k/XP.
Now uses 'Application Data/Blender Foundation/Blender' instead of old
  "Not A Number" dir.

- Updated windows installer to make this change transparent for the
  users. It copies /.blender to the new location and displays a short
  message to advise them of the change
  (http://homepages.nildram.co.uk/~aphex/installer_msg.jpg).

- Installer also includes fix for opening blend files from explorer (patch provided by Valentin Ungureanu (vung) - thanks!)

Note to CVS users on Win2k/XP:  Although blender will continue to work
without changes, you should ideally copy the /.blender dir to
<app data>/Blender Foundation/Blender for the sake of correctness :)
2004-04-20 19:12:48 +00:00
Ton Roosendaal
d694335cc2 Another phase in panelizing all window types. Did lots of small code
fixes, including:

- Panel in action window (disabled it, since there's no need for it)
- fix: when action was added to mesh with vertex keys, the action couldn't
  be deleted, nor did action window draw key names
- mouse on RVK (key) in Action window: Nkey menu pops as well.
  This is not a good candidate to put in Panel, no selection possible here.
- when you change name of RVK in action window, it shows in IpoWindow too
2004-04-20 18:27:10 +00:00
Nathan Letwory
b41cf698dc Tooltip for Ambient Occlusion button had wrong tooltip (c&p from starfield button ;), now reads "Toggle ambient occlusion" 2004-04-20 11:01:00 +00:00
Ton Roosendaal
8c22bae7c1 Fix for #1172
Just an update for correct mentioning of shortcuts in toolbox menu.
2004-04-20 10:46:28 +00:00
Johnny Matthews
ccad67c92c Adds a 'Edit Selected' to the curve menu in the IPO window. So that the curve editmode can be entered with a menu selection as well as TAB. Previously, there was no reference to the curve editmode in the IPO window.
When one or more curves is being edited,there is a checkmark by the menu option and you can slect it again to leave editmode.

This commit is more for people learning Blender as people who know will just press TAB.
2004-04-20 04:59:04 +00:00
Ton Roosendaal
dfc824a134 Preparations to have Panels in all window types. Also implemented
it for the UV Image window (as Nkey replacement). Blendix can take
this further now.

Other little improvement: vertices in UV window now draw unselected
first, and then selected over it. Less confusing!

Next spaces: Action and Nla.
2004-04-19 22:05:37 +00:00
Ton Roosendaal
aaa7797e8a - world init for AO settings added. 2004-04-19 15:38:04 +00:00
Ton Roosendaal
9f63f5df7e Fixed error in OSA render & using AO causing stripes.
The OSA ofset vector for current rendercoord (O.dxco) wasn't
initialised in all cases. Actually, just removed it for AO, effect is
invisible.

Bug provided by jK, not in tracker. thnx!
2004-04-19 14:40:46 +00:00
Willian Padovani Germano
fb4f255c15 BPython:
- Scripts that ended without an [eol] (end of line char) would give syntax errors when called from menus.
  Now all loaded menu scripts have '\\n\\0' appended to them, not only '\\0' as before.

- bug #1146: Kester reported a Valgrind warning, should be fixed now.
2004-04-19 10:19:41 +00:00
Joseph Gilbert
f490be9b59 -update to SCONS project for NLA module 2004-04-19 07:11:00 +00:00
Joseph Gilbert
a6a32cf504 -NLA module added
-ability to set poses for the armatures - allows for keyframing armatures
-adds support for actions/actionchannels
-additional checking for addBone and clear parenting
-moved getActionIpos from object module to NLA module
2004-04-19 06:57:41 +00:00
Ton Roosendaal
713a0ceefe Found error in Energy for AO. This didnt work correctly for 'sub' and 'add
and sub' methods.
Also reduced limit for slider. AO energy of value 50 was useless.
2004-04-18 16:18:08 +00:00
Ton Roosendaal
02dfa98a89 Better sampling for arealight soft shadow. Now using a distributed sample
pattern as previous commit for AO.

Previous setting, dither+jitter, has been cancelled. Now you can choose
for either nothing, dither, or for noise. With the latter giving same
nice noise as for AO.

Pics:
http://www.blender3d.org/cms/Render_engine_features.215.0.html
2004-04-17 20:01:00 +00:00
Ton Roosendaal
27a250a163 Fix for removed streamglue stuff.
BLO_sys_types.h was moved.
2004-04-16 17:14:05 +00:00
Nathan Letwory
a9ecba8872 Forgot to commit this file, as part of the antiglue campaign.
/jesterKing
2004-04-16 16:36:11 +00:00
Nathan Letwory
39a8c014c4 This commit removes the glue from Blender, and with it
the directories decrypt, deflate, encrypt, inflate, readstreamglue,
sign, writeblenfile and writestreamglue.

Sirdude was so kind to modify the makefiles, so SCons and
Make are ready to build with the new Blender.

Visual Studio workspaces, solutions and projectfiles still need
to be updated (I'll do the .vcprojs and .sln myself after this commit).

Runtimes created with the Blender Publisher are not anymore
recognised - if you want these available, you'll have to convert
them first to .blends with the Publisher.
2004-04-16 15:55:16 +00:00
Ton Roosendaal
2cc124cf3b Improved sample pattern for AO. It used to jitter locatations within
a UV Sphere which isn't a very uniform distribution on a sphere.
Now I itterate a evenly distributed set of points on sphere, and use that
by random rotating the entire sphere for each pixel.

http://www.blender.org/bf/samp3.jpg
http://www.blender.org/bf/samp4.jpg

Both pics same rendertime, 36 AO samples. Quite a difference, eh!

Will put html page for release up.
2004-04-16 15:32:49 +00:00
Kester Maddock
4e2f7baff2 Improved rigid body handling for non spherical bounds type.
Polyheder dynamic objects are now converted properly.
2004-04-16 06:26:33 +00:00
Kester Maddock
98b8c5102d Increased maximum mass to 10000.
Added "%x4" to the end of "Polyheder" in drawtypes menu.
2004-04-16 06:07:09 +00:00
Ton Roosendaal
93fe8b63b9 Bug fix 1161
Rendering showed stripes in scanlines, caused by not re-initializing the
horizon and zenith colors for the AO "only sky color" type.
2004-04-15 17:59:45 +00:00
Johnny Matthews
328f6c7c9e Added "Auto AA" toggle in Yafray Render panel defaulted to On (current functionality AA is determined by OSA and GI quality settings)
When disbaled, 2 number buttons appear to allow setting  manual AA passes and AA samples.

Johnny Matthews (guitarGeek)
2004-04-15 15:52:28 +00:00
Stefan Gartner
d753f8a681 fix for bug #1144:
the tooltip of the To: field of a message actuator was saying that
messages will only be sent to objects with a property of that name,
while in fact it was sent to objects with that name.

Unfortunately, the GameKit (and probably other documentation, too)
is wrong about this as well.

corrected the tooltip to reflect what's actually happening
2004-04-15 15:15:20 +00:00
Joseph Gilbert
e2bed35011 - parenting checks for bone additions to armature
- update to addBone parenting transform code
- hide/unhide bones
- draw axes/draw names
- clear parenting and clear children from bones - removes childbase links from bone and set as root or remove parenting and set as root
2004-04-14 23:42:58 +00:00
Stefan Gartner
837da93f19 enable openal support for os x and linux-powerpc
as there is a conflict between openal and sdl (when compiled with cdrom
support), i had to disable support for cd playing using sdl on os x
for the time being.
2004-04-14 13:00:36 +00:00
Ton Roosendaal
7dc152b01a Solved crash caused by referencing NULL ->camera pointer in preview for
World shading buttons.
Thanks Goofster for reporting it!
2004-04-14 12:52:35 +00:00
Kester Maddock
a96869198b Rigid body physics for non spherical bounding objects.
If your simulation becomes unstable, crank up the 'Form' control.

Removed Solid from class SumoPhysicsEnvironment (since it wasn't actually used.)
2004-04-14 05:57:24 +00:00
Joseph Gilbert
e0ea7a230a - reversion to 1.5 2004-04-13 18:11:10 +00:00
Ton Roosendaal
8e3579d355 - fix for bug 62
I found it was an easy one to fix after all... the stars system is still
old and very cumbersome code, but for parts it now just works too, by
just disabling clipping in advance (as for panorama).
2004-04-13 15:23:24 +00:00
Joseph Gilbert
56f3fbb715 - Fix for compiler error regarding overloaded binary equality operator not defined on MSVC 2004-04-13 02:14:05 +00:00
Ton Roosendaal
bb2a34c60b Bug fix 1148
In do_versions() the new texture parameters were always initialized,
whilst we didn't go for a new release number yet.
Now it checks for a value==0.0
2004-04-12 20:27:48 +00:00
Ton Roosendaal
61091cb30b Alternative for abusing enter/exit editmode after doing an import.
mesh_add_normals_flags()

Basically this abuse was only for normals and draw flags. For huge imports
the editmode hack is far too slow.

Now added to vrml importer. Hos can check for his stl work!
2004-04-12 19:29:52 +00:00
Ton Roosendaal
ff5c159730 Just code cleanup here. I tried to check if a replacement of malloc() and
friends with a group-malloc system would speedup. That wasn't...
While doing this I noticed such mess... so spent a while cleaning things
a bit:

- all malloc() replaced with MEM_mallocN()
  (this except for vertices/edges/faces, for speed)
- unified free_xx names, this was too confusing! so now we have:

  free_editvert()
  free_editedge()
  free_editvlak()

  free_vertlist()
  free_edgelist()
  free_vlaklist()

  and only very few calls to free() and alloc() themselves.
2004-04-12 17:32:29 +00:00
Ton Roosendaal
c2526dc922 More AO fun to play with:
- AO energy slider to control amount
- option "Use sky color" for colored AO. The horizon color will define
  bottom diffuse color, the zenith works on top
- option "Use sky texture" will do a full sky render to define AO color

Please note that AO energy and color only is found when a ray does not
intersect. So for interior scenes make sure 'Dist' value is sufficient
low.

New also is:

- World "Map input" allows "Ang Map" (Angular mapping) which can be used
for 360 degree spherical maps, aka as Light Probes. Check samples here:
http://www.debevec.org/Probes/
Note that Blender doesn't support HDRI images yet, but option "Use sky tex"
already gives intersting results with such images

- World sky rendering with Image Textures now correctly filters and uses
antialiasing. Also noticable for raytrace mirror reflections

- World preview render for sky type "Real" now gives correct view as
defined by current used camera.

I tried to speed up AO tracing with coherence systems, none of it really
worked yet... time to tackle octree itself i guess!
2004-04-12 14:53:17 +00:00