Commit Graph

3280 Commits

Author SHA1 Message Date
Kester Maddock
29c0e74138 Set the listener properties correctly. 2004-12-29 01:27:09 +00:00
Matt Ebb
52799e4950 Simple one - update the selected vertex count after doing a vertex
loop select (Alt B)

Reported by Gimble
2004-12-28 05:38:56 +00:00
Ton Roosendaal
0db670ce47 And a first threading fix; mist render still used a R global for storage.
caused very bad stripes in render.
2004-12-27 22:57:19 +00:00
Martin Poirier
0dfa14b181 MSVC 6.0 Projectfiles changes to fit Ton's commit.
Added new file to BRE_Render and include paths for SDL includes.
Removed deleted files.
2004-12-27 21:05:39 +00:00
Ton Roosendaal
8fbaca0878 Removed include render.h
It *should* be there, but its a bad-level-include. The bad_level_calls.h
makes it compiling nice, but that wasnt the purpose.
Error is in the winstuff.h in render.h most likely
2004-12-27 20:58:40 +00:00
Ton Roosendaal
66a516dc93 Some weird CVS $id tag line got added on wrong place...? 2004-12-27 20:02:27 +00:00
Ton Roosendaal
610cec55c7 Biiig commit! Thanks to 2-3 weeks of cvs freeze...
Render:
- New; support for dual CPU render (SDL thread)
  Currently only works with alternating scanlines, but gives excellent
  performance. For both normal render as unified implemented.
  Note the "mutex" locks on z-transp buffer render and imbuf loads.
- This has been made possible by major cleanups in render code, especially
  getting rid of globals (example Tin Tr Tg Tb Ta for textures) or struct
  OSA or using Materials or Texture data to write to.
- Made normal render fully 4x32 floats too, and removed all old optimizes
  with chars or shorts.
- Made normal render and unified render use same code for sky and halo
  render, giving equal (and better) results for halo render. Old render
  now also uses PostProcess options (brightness, mul, gamma)
- Added option ("FBuf") in F10 Output Panel, this keeps a 4x32 bits buffer
  after render. Using PostProcess menu you will note an immediate re-
  display of image too (32 bits RGBA)
- Added "Hue" and "Saturation" sliders to PostProcess options

- Render module is still not having a "nice" API, but amount of dependencies
  went down a lot. Next todo: remove abusive "previewrender" code.
  The last main global in Render (struct Render) now can be re-used for fully
  controlling a render, to allow multiple "instances" of render to open.

- Renderwindow now displays a smal bar on top with the stats, and keeps the
  stats after render too. Including "spare" page support.
  Not only easier visible that way, but also to remove the awkward code that
  was drawing stats in the Info header (extreme slow on some ATIs too)

- Cleaned up blendef.h and BKE_utildefines.h, these two had overlapping
  defines.

- I might have forgotten stuff... and will write a nice doc on the architecture!
2004-12-27 19:28:52 +00:00
Alejandro Conty Estevez
c43c38140d Multi-cpu support in yafray is back. This is a small fix to pass the
number of processors to yafray through plugin too. Will work with current
CVS yafray code. Now at p.b.org. Needs testing with a real multicpu machine.
2004-12-22 22:38:06 +00:00
Ton Roosendaal
deb64cc37c Another last minute bug... (thanks aphex)
Add text, TAB, CTR+Z, TAB -> crash... :/
Just forgot 1 if()... was there for weeks! So...
2004-12-22 20:30:13 +00:00
Ton Roosendaal
59c0ec4b61 Last minute fix #2
Undo on SHIFT+backspace in edit of 3d Text object, caused text editing
to stop working normal. (only added text in beginning)
2004-12-22 19:21:45 +00:00
Ton Roosendaal
c58ef8fa8f Last minute fix #1
Dxf reader had 2 crucial erros;
- didnt read files correct with \r\n enters (\n and \r go fine)
- polyline triangles were added as quads with identical first and last
  vertex, going terrible wrong on mesh import of 3DS files.
2004-12-22 19:19:39 +00:00
Ton Roosendaal
af02201fd0 Splash now has subtle credits for artist; www.venomgfx.com.ar 2004-12-21 22:12:29 +00:00
Ton Roosendaal
8cf7f44047 Eeek! last minute error.
Commit of dec 9... still uses fopen(name, "ab") instead of "wb"
Caused targa and bmp files to write wrong on save-over, appended instead.
2004-12-21 18:49:31 +00:00
Ton Roosendaal
2d7289f3f5 Accidentally committed corrupt SConstruct.... here's the one fixed 2004-12-21 17:00:25 +00:00
Ton Roosendaal
0ef03ae620 Upped sconstruct for 2.36 release 2004-12-21 16:25:37 +00:00
Ton Roosendaal
8e3e7a60bb Upped version for makefiles, and new splash (original image) 2004-12-21 16:24:29 +00:00
Ton Roosendaal
edfae40711 Upped release code to 2.36 2004-12-21 16:23:24 +00:00
Ton Roosendaal
f9fe2b8458 - release log 2.36
- added note in copyright.txt to emphasis you can use blender artwork
  freely
- removed old logs, current log contains link to the old ones on the web
2004-12-21 16:19:36 +00:00
Ton Roosendaal
dab0dfb8de Fix for 2042
With the new rule that allows correct calculation of vertex normals on a
mixed solid/smooth mesh, it is essential that vertex normals get
recalculated when changing smooth settings. Such a facility doesnt exist
in Blender yet, only after leaving editmode.
Hacking in a "enter editmode, leave editmode" event on the "Set Smooth"
button isn't nice... instead I've tweaked the calculus of vertexnormals
that it always sets them OK, apart from where they get mixed with solid
faces. Only in rare occasions this can still go "wrong" and needs a
TAB-TAB to fix. Will add that comment in release notes. For next release
we should definitely solve this smoothing bizz!
2004-12-21 12:10:35 +00:00
Stephen Swaney
611f8093c1 bugfix: #2031 World setIpo() method checks for wrong IPO type
wrong constant name.
2004-12-21 01:34:23 +00:00
Stephen Swaney
626503e463 bugfix: #2032 Ipo_woIcuName() uses CAM instead of WO constants
Wrong constant names.  Fix contributed by Joilnen B. Leite <pidhash>
2004-12-21 01:15:42 +00:00
Ton Roosendaal
436c76006a Bugfix for #2036
Backbuffer selection codes issue on OSX.
On some h/w configs, with "1000s of colors set", the drivers seem to round
colors up or down... whilst until now rounding always was just truncating
bits. This gives errors in writing color codes and reading it back.
The c code only changed for OSX. For other OS's and HW this test could be
done as well.
2004-12-20 18:11:20 +00:00
Ton Roosendaal
c8e4dd0e3a Fix in hook menu; "select" option only worked in vertex selectmode. 2004-12-19 18:38:17 +00:00
Ton Roosendaal
302dc94b7a Fix for #2034
It appeared that the method as used in unified render for "render all sub-
pixels" isn't very well resistant to having large amounts of faces in a
single pixel. The bug file had about 16x70x2 faces per pixel... causing
tremendous slowdown and even wrong render.

I've disabled the option (was coded by Nzc in NaN days) and made it
sampling in the main render loop. Goes much faster, error free. Only loss
is in that it doesnt use superiour subsamples for gauss anymore. Here the
normal render performs slightly better. Not a real issue though. Hard to
notice.
2004-12-19 18:18:54 +00:00
Rob Haarsma
add84ea301 Fixed adding a filename extension for bmp images. 2004-12-19 18:06:28 +00:00
Ton Roosendaal
21e524fa8f Bugfix, reported by Basse: static particles didnt render correct with
"Layer" Lamp. Was just missing a value being written in halo struct.
2004-12-19 18:04:48 +00:00
Ton Roosendaal
b0162a19fd Bug fix #2026
Slightly altered rules for calculating vertexnormals. By only averaging
face normals from faces actually set 'smooth', the result looks much more
nice (for example on a cylinder with caps solid). Vertex normals not being
used by smooth faces are set to the face normal direction.

Shows both in editor as rendering.
2004-12-19 14:19:20 +00:00
Rob Haarsma
ca5784a7ce A one-line commit; Quicktime movies used as texture are now loaded at the highest quality.
I noticed Quicktime did not display interlaced fields for DV movies, it works OK now !
2004-12-19 13:45:03 +00:00
Stephen Swaney
36abceed6b bugfix: #2025 getCurveBP (and others) segfault
This method is now unsupported.  The original intent appears to
return the first BPoint of an Ipo curve.  However, BPoint Ipo curves
are not implemented and the first point therefore never existed.

The segfault was from an unchecked input parameter.

Calling this method now always throws a NotImplemented exception.
2004-12-17 17:34:51 +00:00
Ton Roosendaal
ee810028b7 Increased builtin limit for selection buffer (border select in Object mode)
to allow up to 2500 objects (was 500).
Still an arbitrary limit, could use better code. For now its less
frustrating :)
2004-12-16 14:42:10 +00:00
Ton Roosendaal
1b4667b33f Errors in saving runtime, and fileops in file window; files were copied
or deleted without keeping track of spaces in names, causing in potential
loss of data.

Needs review!
2004-12-16 14:40:25 +00:00
Ton Roosendaal
6719d88aab Bug #2019
Separate in Mesh editmode, selectmode 'face', and with a selection that
used to be in vertex mode a full select (like selecting the 2 opposing
faces in a cube) caused crash. There was still no good face-select
awareness there... tsk! :)
2004-12-15 11:36:46 +00:00
Ton Roosendaal
82421a2d70 Fix for #2017
Actually a 1 liner fix, added displist re-make event for wave objects
being used to vertexparent objects to. Will of course be much better
solved with the dep graph!
2004-12-14 22:01:52 +00:00
Ton Roosendaal
b5d9b1e72d Small fixes for UI;
- Add UV Sphere now aligns with view, as do all primitives
- Small drawing error in edges between blender areas (black lines were 2
  pixels too short)
- Replaced the heuristics in opening sublevel menus, to be less frustrating.
  It now keeps sublevel open while mouse moves within the triangle defined
  by original mouse location (before moving) and the closest vertical edge
  of the new sub menu. Works nice for toolbox and pulldowns.
2004-12-14 18:18:31 +00:00
Ton Roosendaal
f3106212e8 Bug fix #2016
Particles added to mesh being deformed with Armature crashes.
Bug introduced with 2.33, particle collisions... leon added some fancy
updates for actions and armature displists there, which are highly
disputable. I left it in, because I didn't see it was actually new.

Note: particles added while updating mesh with armatures is not supported,
it will shoot particles from original location.
What does work, is static particles.
2004-12-14 18:12:30 +00:00
Ton Roosendaal
65d5d124d0 Makefile didnt copy files correctly, obviously because the nan_definitions
were not there...
2004-12-14 13:08:17 +00:00
Ton Roosendaal
5981b77838 While giving snapto a good test (thanks all_select.blend!) I found it was
not implemented on MetaBall editmode, causing an old global var to wreak
havoc.
2004-12-13 17:11:33 +00:00
Ton Roosendaal
900b952137 Bug fix #2013
Face dots didn't recalculate after a 'snap to grid' or 'snap to cursor'.
2004-12-13 16:46:40 +00:00
Kent Mein
021087de45 STEP macro was a typo waiting to happen.
Fix done by LetterRip.

Kent
2004-12-13 13:51:35 +00:00
Kester Maddock
551806bce8 Set the physics scale on added objects. (Fix bug #1837) 2004-12-13 09:53:30 +00:00
Kester Maddock
5dc6d22e46 Reset backface culling. (Fix bug #1960) 2004-12-13 09:10:58 +00:00
Ton Roosendaal
a9128a5109 Bug fix, after irc report sk1p:
frame-sliding (LMB) in action, nla, sound and ipo window went into very
tight while loop, causing cpu to choke. Added nice idle.

Bug fix, found self while testing:
- relative.blend, editmode
- delete part, exit editmode
- enter editmode, undo twice, exit editmode -> crash

The trick to copy 'old' locations of vertices to keys isnt undo-resistant
yet. This fix at least doesnt crash, but copying doesnt work when undo-ing
back to previous editmode session (indices just differ from current mesh...)
2004-12-12 21:13:07 +00:00
Ton Roosendaal
d422cbb544 Bug, reported by Bassam;
When editing Meshes with vertex keys (RVKs), the undo stack isn't
updated correctly, causing a loss of the situation when entering
editmode after changing active key, and doing undo immediate after.

This due to an 'optimizer' in the undo code that tried to prevent undos
pushed on identical situations (e.g. pressing TAB multiple times).
Decided to remove that convention, the annoyance of having possible
multiple undos in a row isn't worth solving it by potential losses.
2004-12-12 19:06:04 +00:00
Ton Roosendaal
f48b4f5b4a Bugfix #2008
Combination of:
- render movie
- with border set
- and "crop" set
Crashed.

Was due to feeding movie initialize code wrong frame sizes. Another oldie!

Also found that crop+border+parts doesnt work. This now is prevented with
warning and return.
2004-12-12 18:16:35 +00:00
Simon Clitherow
c021f10783 Added missing include path for BIF_toolbox.h. 2004-12-12 16:24:08 +00:00
Jiri Hnidek
7e4daad9fa - bug fix reported by LetterRip at IRC (just typo: expant isn't expand) 2004-12-12 15:28:38 +00:00
Jiri Hnidek
20f4632340 - bug fix #1874
https://projects.blender.org/tracker/?func=detail&aid=1874&group_id=9&atid=125

  normal vectors of vertexes are exported correctly now
2004-12-12 13:42:49 +00:00
Jean-Luc Peurière
d12960dd2d fix for potential crasher. we were returning pointer to a local var 2004-12-12 13:29:54 +00:00
Ton Roosendaal
91c3cffbcc Bug fix #2005
Simple case; make MAXSTACK define for vrml import to allow import up to
750k faces or 1M vertices (was 125k faces, 160k vertices).
2004-12-12 11:19:27 +00:00
Ton Roosendaal
201c742394 Ctrl+C and CTRL+V copy/paste didn't work for COL buttons ("swatches").
Thanks Chris B for a useful fix!
2004-12-11 16:33:55 +00:00