Commit Graph

47594 Commits

Author SHA1 Message Date
1b3145c575 - forgot to commit this file for fix several days ago which fixed
only_shadow rendering...
2004-01-23 22:03:42 +00:00
66525b1b6f - another fix for incorrect Osa vectors during tracing... I've now solved
it by precalculating all needed Osa vectors when rendering glass, this
  because it is unpredictable what is exactly going to be needed after.
- a hint that this should be done better is in the code... will mostly
  improve sharpness and a bit rendertime though
(thanks bugmaster intrr!)
2004-01-23 21:58:19 +00:00
e93e5d37da - when pulldown menus get flipped, the arrow keys were not behaving OK.
also added that left/right arrow is handled, to prevent weird redraw.
2004-01-23 20:54:26 +00:00
23a3a51e16 Blender's debug mode only worked on startup:
- G.f's G_DEBUG flag was being erased in blenkernel/intern/blender.c's
  setup_app_data:

G.f= bfd->globalf

// added a line above it to fix this:

if (G.f & G_DEBUG) bfd->globalf |=G_DEBUG;
G.f= bfd->globalf;

BPython:
- debug info now only shown if Blender is started with '-d' option
- added ~/.blender/scripts to modules sys.path
- added two new functions to Blender.sys: basename and splitext
- added doc for Blender.sys, updated other docs
2004-01-23 19:24:45 +00:00
5aad4bfceb - fix for raytrace render; when you render ray_transp material, it didn't
recalculate the O.dxno and O.dyno for each pixel. This causes scanline
  errors (stripes) when in same scanline something else is called that
  calculates O.dxno/dyno...
2004-01-23 18:29:14 +00:00
6b781f19bc #ifdef INTERNATIONAL fix for usiblender.c
thankyou Todd Koeckeritz.
2004-01-23 16:02:10 +00:00
c427a19854 - FTF_TTFont didn't initialize fontm,fontl,fonts to NULL, leads to
possible bad free
 - FTF_Api.cpp used static C++ object, hard to understand and icky,
    was probably source of phase4's crashes, replaced with dynamically
    allocated object and added FTF_End to free it and sensible time.
2004-01-23 14:19:44 +00:00
5d8c7e4537 BPython:
- local tentative fix for BLI_gethome(), which returns '.blender' appended only
    on some Windows systems.  Created bpymenu_gethome() to check and
    add '.blender' if needed.
- changed name: .Bpymenus to Bpymenus as suggested by GSR
- trivial additions:
    Object module: added methods .set/getSize
    Armature/Bone module: bone.set???() methods now accept both n
    floats or a list of n floats: fff or (fff).  All these additions were requested
    by user Carlos Lopez (Klopes).
- New doc: for module Registry.
2004-01-23 02:59:54 +00:00
Chris Want
f237bb28bf Bug Fix: bones get updated after using NKEY in pose mode (not really
useful, but anyways ...).
2004-01-23 02:25:51 +00:00
Chris Want
8766a719e4 Bug fix: meshes deformed by armatures were not getting updated
when rendering an animation, i.e., the deformation was delayed.
Please test by rendering any animations you have that involve armatures.
2004-01-23 02:10:36 +00:00
4e9ac81f77 I modified it so that the particles on a face's position are affected
by the seed variable.  Requested by S68.

Basically they move slightly when you change the seed.  Might be
a good idea to split this up so there are two seed options in a
particle effect, however there are already quite a bit of them so I opted
for this.

Kent
2004-01-22 15:45:42 +00:00
d4fc04f76a - increased max targa size to 8192x8192
was done before by Phase in tuho1, and no error found...
2004-01-22 12:59:46 +00:00
f844d011a2 - added clipping value for spothalo rendering. Unified render doesn't like
alpha>1.0, the 'threshold' calculation in vanillaRenderPipe.c then works
  wrong... not sure if this should be fixed there.
- for now, the spothalo render function itself clips.
- again; thanks to horrible intrr test scene! :P
2004-01-22 12:14:21 +00:00
acdcc29990 - fix for specularity calculus. Because of new area lamps and new ray-shadow
some tests where moved around, causing specularity being calculared when
  light actually shines behind a face.
  Thanks inttr for the (horrible!) test scene that showed it. :)
2004-01-22 11:15:28 +00:00
220e2f0c25 New loopcut version. much praise goes to Johnny Matthews who implemented precision cutting.
new features:

- after choosing a loop to cut you go into a second mode that lets you choose where exactly on the edge you want to cut.
the placement is in percentages, so 0% is one side of the edge, and 100% is the other side.

- holding CTRL snaps the placement to whole percentages. 1.00 instead of the standard 0.01 of a percentage.

- Pressing S while you place the cut turns on Smooth-subdivide for the cut (or as I like to call it: Loopcutsubdividesmooth :)

- the percentages and the ON/OFF for smooth cut can be seen in the view3D header.

fixes:

- loop takes into account hidden vertices, this solves bug #895.
- Cutpreviews are drawn correctly for triangular faces.
- renamed the function from loop -> loopoperations. I'm sure someone has a problem with the new name too, but BLAH! :D
- the parameters for the function are defines. loopoperations(LOOP_CUT) cuts, and loopoperation(LOOP_SELECT) selects (duh). this is changes in all the places the function gets called.

if people find new bugs, feel free to yell! :)

Roel
2004-01-21 21:45:38 +00:00
83fc1730e6 findnearestedge() ignored hidden vertices. both vertices of the edge should be non-hidden and at least 1 of them should be on-screen (visible in the 3D viewport) 2004-01-21 21:06:19 +00:00
0a25a54569 - fix for bug #903
this was an error as reported more, with horizontal lines in raytraced
  renderings. It appeared to be an Osa struct being not reset to zero
  for normals... only happens when using bumpmapping.
2004-01-21 20:52:31 +00:00
30cedebbe9 - some declaration was missing. Blender runs again at IRIX 2004-01-21 12:45:13 +00:00
1652884463 BPython:
-- removed struct Script (DNA_script_types.h) from makesdna to blender/include/BPI_script.h
   (BPI meaning Blender Python-related external Include file).
   Had agreed with Ton that makesdna was not the proper place for it.
-- fixed two small warnings in Ipo.c (variables might be used uninitialized)
-- fixed a bug reported on blender.org's python forum by Wim Van Hoydonck (aka tuinbels):
   Blender would hang if a script failed.  My fault, accidentally put a node=node->next type call outside the while loop check, so it never ended.

With makesdna/DNA_script_types.h removed and include/BPI_script.h added, msvc projectfiles will need to be updated.  Sorry to do it now, but I promissed I'd fix this before next release.
2004-01-21 04:38:03 +00:00
24bb131b7c - Fixed Displacement Hollow vs. Solid problem. Test for flipped
normals was commented out.
2004-01-21 01:53:56 +00:00
2883110a54 SCons updates: (All done by jesterKing)
* Windows .exe file now includes the blender icon.
* Builds with game engine on Windows only.
  I tried building the game engine on Linux, but I get weird errors when
  building with ode. There's a dirty #include path in
  Physics/BlOde/OdePhysicsEnvironment.cpp (../ode/src/joint.h). gcc doesn't
  like this somehow.
* Other platforms need to add a couple of flags to the SConstruct:
  use_sumo, use_ode, solid_include and ode_include
2004-01-20 20:28:39 +00:00
Chris Want
1942e4897e Fixed the "bones on invisible layers, that are constrained to objects on
visible layers, don't move during transform()" bug.
2004-01-20 05:12:42 +00:00
57b91ddce8 Scripts in menus:
- now the file .Bpymenus is in ~/.blender/, please delete the old one
- both ~/.blender/scripts/ and (if set) user pref scripts dir are scanned for scripts
- 2 scripts of the same group with the same name, one in each dir: user pref overwrites the other's entry
- fixed the problem with trailing backslash, was my fault (used NULL instead of "/" for relbase in BLI_make_file_string
- slightly changed msgs to be less verbose and parsing to be more forgiving
- if a script registers with a wrong group, 'Misc' is used instead
- 'Blender' tag is now checked, gives a warning (notice) msg if script is newer than Blender program

Blender.NMesh module and doc:
- added vertex.sel var to get/set selection state of vertex.
2004-01-20 04:57:47 +00:00
32fa24339e Added missing headers for unix systems 2004-01-19 18:44:06 +00:00
033a16e258 Error checking in system call. 2004-01-19 18:36:53 +00:00
f7d5c46e53 Text Editor hotkeys fixing (Bug #904 http://projects.blender.org/tracker/index.php?func=detail&aid=904&group_id=9&atid=125 )
The real hotkeys didn't match the ones written in the menus.

I made the hotkey match the menu entry (I could have done the other way around, but the hotkeys in the menu were more consistant and logical than the real ones).

Also started cleaning hotkey management in this file. The even is splitted in two switch with some events being catched in both. This creates some strange double event catching sometimes. I'll be fixing that this afternoon (school time now).
2004-01-19 16:33:06 +00:00
81d9e52e20 Search for yafray path under unix like systems (using expected paths).
Should fix OS X problems with executing yafray.
2004-01-19 15:32:16 +00:00
e34cb90205 moved a local variable declaration, which crashed MSVC... Picky compiler... 2004-01-19 10:52:07 +00:00
969966f0e6 fixed a bug in addCurve function. The semantics has not been changed. Tkx to jms for pointing it. 2004-01-18 23:43:23 +00:00
41144750da corrected particle object dupliverts and aramature duplivert export problems
corrected power slider increment update
2004-01-18 20:00:17 +00:00
8139587af5 - spelled catmull's name right ;)
- bug fix, rebuild displist after decimation apply
 - bug fix, decimation was not freeing deform weights
2004-01-18 18:14:15 +00:00
73665ee9bd - bug fix, access thru null displist (rare, triggered by another bug
where mesh displist isn't rebuilt)
2004-01-18 18:04:58 +00:00
ede644969b - Made dispfact for new mtex default to 0.2.
- Fine tunes scaleing of Nor channel to better match intensity chan.
	- removed last debug printf.
2004-01-18 17:17:44 +00:00
60a5328d4b Drawing a line to show where the area lights are heading.
Feel free to make better.
2004-01-18 16:55:07 +00:00
c31de00284 Script menus:
-- trying a different approach to see if the crash on Windows goes away.

Running a script with PyRun_File -- a Python/C API function -- was probably
the cause for crashes on Windows, because it uses a pointer to a FILE
struct and on windows this struct can be "different and incompatible"
depending on which libc was used to build the program.  This is mentioned in
the Python/C API Ref Manual, chapter 2.

Now we're loading the file contents to a string buffer and using PyRun_String.
2004-01-18 15:08:02 +00:00
Chris Want
e581b5c265 When renaming a bone in editmode, make sure the name of the pose channel
for the bone is also updated (and hence ensure that the constraints are
still valid).
2004-01-17 18:40:22 +00:00
f7b9fbbbf2 - Add new scene, and choose "Full Copy", didn't create a new Ipo for a
Camera block; it remained linked to 2 camera's. Fixed!
2004-01-17 17:12:05 +00:00
cfe180805b - ray shadow now also does the options:
- Lamp only shadow (use 'energy' to control amount that gets subtracted)
  - Material only shadow (remember, is an alpha trick)
- demo files for this have been included in testing suite, will be
  upgraded soon.
2004-01-17 16:01:51 +00:00
dab319cfe1 - updated stringlenght for animated texture images in Texture. It used
only the define FILE_MAXFILE, which should be added with FILE_MAXDIR.
- one day these defines should be made more clear, uh!
2004-01-17 13:54:21 +00:00
bd708b1637 - removed ugly code, that used sprintf with an input string identical to
output string. Seems to be a reason for windows versions to crash,
  sometimes.
2004-01-17 13:24:09 +00:00
247d40d11e - fix for drawing lamp name in 3d window at correct location. 2004-01-17 13:15:19 +00:00
9d15dc5e8d - fix for error in 2.31 release! in editmode, ctrl+rightmouse didnt allow
selection of other objects, for vertex parenting.
  I added comments to the call to remind.
2004-01-17 12:54:11 +00:00
aefe45e9b1 * Fixed some non-working toolbox entries (Thanks William Reynish for the report)
* Added animation playback menu items to IPO, Sequencer, Sound menus

* Added hotkey descriptions to more items in the 3D View menus
2004-01-17 05:51:06 +00:00
f3c5206b71 Scripts menus:
-- added re-eval entry to Scripts Win -> Scripts menu
-- added it also as a button at Info Win -> File Paths, Python path
-- updated bpymenus code:
    added 'Blender' tag, for version;
    made a .Bpymenus file be written only if there's actual data to save
    made file->export menu open a scriptspace only if none is available already
-- bug fixes (bugs 866 and 879, related) for linking and sharing mesh data:
http://projects.blender.org/tracker/?func=detail&atid=125&aid=866&group_id=9
http://projects.blender.org/tracker/?func=detail&atid=125&aid=879&group_id=9
2004-01-16 23:40:14 +00:00
24c43b835d - pressing Enter key on numbutton increases/decreases again.
- added displist.h for proper prototype in previous commit
2004-01-16 21:16:09 +00:00
d5a1b582c3 two fixes:
- while Faceselect mode on Subsurf, it didnt render the changes. this was
  because the displaylist wasnt updated (the 3d window shows original mesh)
- added proper redraw event for F10-sound buttons when you add a new sound.
  somehow sound doesnt play anymore here... have to check further.
2004-01-16 19:30:25 +00:00
dcc8af9374 Comes with previous commit. Allow linedist setting smaller than 1.0. 2004-01-16 14:50:22 +00:00
0ef6f7e927 Corrected the line distance behaviour for Text objects.
The font vectordata is scaled on load, so the character size will fit between the default (1.0) linedist.
Warning: this might change the font size in older blend files. (read: breaks backward compatibility)
2004-01-16 12:49:43 +00:00
fb6133264a -reimplement OB_Surf support for curves 2004-01-16 01:19:36 +00:00
50ad38cf56 Changed the Font editing panel so it displays the Postscript name of the font.
Also supplied tooltip information for the buttons in the Font panel.
2004-01-15 20:34:54 +00:00