Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
4ddb5a9e9b Added push/pop matrix for 3d window + new agl draw pixels 2005-01-07 22:17:56 +00:00
Ton Roosendaal
341bb20dbd Should have done ages ago!
This commit replaces the glDrawPixels and rectwrite_part with the very
nice (thanks zr!) glaDrawPixelsSafe() call. Result is:
- 3d window background image displays correctly onto the edges when
  zoomed in extreme
- same for UV image window and sequence preview
- preview render now doesnt disappear when left part is outside window
(zr also deserves kick in butt for not doing this himself in NaN days!)

Especially from preview drawing quite some old hacks were deleted. It is
even quite some faster.
Please notify me when it doesnt work on your card... this now is just 100%
according opengl guidelines though :)

Also fixes bug #2100
2005-01-07 21:48:25 +00:00
Ton Roosendaal
8ff0209ca5 Bugfix #2048
Object "time" ipo was evaluated before it applied offset for field and
motion blur. Should be after! (ancient one)

in buttons_editing.c: removed sound include file
2005-01-07 18:29:54 +00:00
Ton Roosendaal
3e38a951dd Bug fix #2104
When using Sequencer for Alpha-Over images, it was assuming "Key" alpha by
default, and converting images to "Premul" (= multiplying RGB with alpha).
This isn't very nice, also because alpha generated by MBlur in Blender
always is of type Premul already.

Solution; make this an option. In the Nkey panel for strips you can set
or disable Premul now. As extra also added the "Filter" and "Mul" options,
as already there for Movie strips. Can easily be extended to more options
for various postprocess effects.
2005-01-07 18:07:13 +00:00
Ton Roosendaal
ac82b48380 Fixed signed/unsigned conversion for zbuffer (note; zbuf is signed int!) 2005-01-07 15:40:57 +00:00
Ton Roosendaal
511b309611 Fix for 2098
The directory where the last file was saved (in .Blog) wasnt added to the
history menu in the FileWindow when using CTRL+O for example. For
convenience, it now alwyas adds this directory to the end of default
history menu, so you can always jump back while browsing in filewindow.
2005-01-07 14:51:55 +00:00
Ton Roosendaal
d5118c08fe Bug fix 2107: RGB and brightness/contrast for preview render image texture
didnt work (commented out line, current WIP)
2005-01-07 14:37:25 +00:00
Ton Roosendaal
326c0a08a4 Another round of cleanups for render code;
- removed ugly pointerhack from OSA render (negative indices denoted
  pointers). this should solve memory errors when using >1.5 gig mem
- cleaned up usage of zbuffer values. These are signed in Blender, and
  treated as unsigned all over, giving confusing code
- fixed incorrect gamma-adding for halos (caused in after xmas commit)

And bugfix #2101; wire render didn't give correct rendering for mist.
This caused by fact wires are 2D pixel lines, and not correctly filled
in faces. Retrieving the 3d coordinate while render cannot use a face-
equation then. Solved by retrieving 3D coordinate based on zbuffer value.

Still todo here: calculating correct texture coordinates for wire-edges
that are no faces.
2005-01-07 14:11:00 +00:00
Stephen Swaney
aa3656dc45 bugfix: #2093 Ipo.addCurve() adds curves of undefined type
added some error checking and did a little cleanup.
still more to be done.
2005-01-07 01:38:14 +00:00
Jiri Hnidek
76c02669d4 - added some items to the MetaBall menu in view3d header
- Snap menu
   - Transform menu
   - Transform Properties

 - correction of some typo in drawview.c
2005-01-06 21:27:53 +00:00
Kent Mein
405c2676ca Had to add a circular dependancy fix for debugging version of blenderplayer
on linux:
I added this after the yafray library.
 COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a


Kent
2005-01-05 17:32:15 +00:00
Ton Roosendaal
776b2451e1 Bugfix #2095
When loading a file with linked external scene, and that external scene
didnt exist anymore, and that scene was active in the file -> crash!

Render code; changed to use local 'puno' flag for threaded render.
2005-01-05 10:31:27 +00:00
Jiri Hnidek
d1fdacf0d5 - small changes of buttons in MetaBall and MetaBall tool panels 2005-01-05 08:28:32 +00:00
Kent Mein
370ab6b7af Requested by Stephane SOPPERA,
Made NMESH_SUBDIV_MIN 0 instead of 1 so NMesh is like the gui...

Kent
2005-01-04 14:34:28 +00:00
Jiri Hnidek
f9faa506a9 - all snap operations work for MetaElems now
- snap to center creates displist for subsurf mesh
2005-01-03 20:49:02 +00:00
Ton Roosendaal
c851319b57 Thread render fix; using ray-transp + mirror didnt work...
the face-normal had to be local too...
2005-01-03 20:02:55 +00:00
Kent Mein
3bbc65a5f4 This is a pretty lame commit but here it is:
I just fixed indentation (replaced spaces with tabs where needed) and removed
#include config.h stuff from the above files.

Kent
2005-01-03 19:53:04 +00:00
Ton Roosendaal
40813b301a Bug #2083
Rendering in parts, and ESC from render, didn't check for not-rendered
parts yet. (due to recode of parts stuff)
2005-01-03 18:30:58 +00:00
Kent Mein
48bc598658 More warning cleanups...
added a casts to:
   blender/blenlib/intern/BLI_memarena.c
   gameengine/Rasterizer/RAS_TexVert.cpp

Removed unused vars from:
   blender/python/api2_2x/vector.c
   gameengine/Ketsji/KX_PyMath.cpp gameengine/Ketsji/KX_Scene.cpp
   gameengine/Physics/Sumo/Fuzzics/src/SM_Object.cpp
   gameengine/Rasterizer/RAS_FramingManager.cpp
   gameengine/Rasterizer/RAS_Polygon.cpp
   gameengine/Rasterizer/RAS_OpenGLRasterizer/RAS_VAOpenGLRasterizer.cpp

Kent
2005-01-03 18:05:24 +00:00
Kent Mein
8055b5c247 Some of the Makefiles had CPPFLAGS += LEVEL_(X)_C_WARNINGS
I changed them so that they have CPPFLAGS += LEVEL(X)_CPP_WARNINGS
instead.

Kent
2005-01-03 17:57:16 +00:00
Ton Roosendaal
efd7a0acc4 Bug fix 2054
Alpha for halos was always added, even when "Add" slider was zero. Fixed.

(also; made BROW define BROW16, to distinguish from int version in
BKE_utildefines.h)
2005-01-03 15:22:44 +00:00
Ton Roosendaal
8702d18df9 Bug #2053
For normal maps only:
Slider for "nor" mapping in "Map to" panel allowed values for over 1.0 in
preview render (not for render itself, causing confusement).
2005-01-03 14:45:54 +00:00
Ton Roosendaal
7e1fcb5c07 Bug fix 2047
FileWindow didnt sort the dirs "." and ".." correctly. Now these two are
always first.
2005-01-03 14:17:33 +00:00
Ton Roosendaal
5d7c2c96ea Fix proposed by Brecht; on redraw events to renderwindow, it sets back
the active main window, if that was active before.
We need to track down how to solve this more definite... for example, the
"make active" window command can also pop window to front.
2005-01-03 13:40:11 +00:00
Ton Roosendaal
2b1923d224 Small fixes;
- zbuf; error caused by using unsigned int as counter (while >= 0) in radio
- backbuffer didnt load in initrender (was removed from sky render)
- unitialized variable in envmap.c
2005-01-03 13:13:40 +00:00
Simon Clitherow
7b3768138c Small fix:
- if object mode && G.vd==OB_TEXTURE, drawing mesh objects did not check
  object's max drawtype (ie. dt).
2004-12-31 10:48:42 +00:00
Martin Poirier
f7d6ad8a8f Bug #2073: Red value used instead of Green for World sky (render and preview).
Ton will probably have a good laugh when he'll see what the error was. ;)
2004-12-30 05:48:36 +00:00
Alfredo de Greef
a970419d0e If YFexport directory is not set, it will now attempt to use the temp directory.
(/tmp or $TEMP for win.)

Probably too early still, but now in plugin mode the floatbuffer will be used too,
including postprocessing.
2004-12-30 01:34:42 +00:00
Martin Poirier
fcb00bf294 Object Constraints weren't relinked correctly when duplicating both the target and the owner.
Bug since 2.35.

Was lost when bug #1307 was fixed in this commit: http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editobject.c.diff?r1=1.121&r2=1.122&cvsroot=bf-blender&diff_format=h
This doesn't seem to bring back the bug (copy full scene didn't update links in constraints).
2004-12-29 20:44:54 +00:00
Simon Clitherow
8c8f010df2 Bug fix #2056:
Material texture channels 9 & 10 could not be deactivated.

Code used a char instead of a short as flag for this.
2004-12-29 17:04:14 +00:00
Kester Maddock
183ee861e8 PyDoc updates 2004-12-29 01:39:34 +00:00
Kester Maddock
8e5ef105ae Make Python Matrix/Vector conversions more robust 2004-12-29 01:34:07 +00:00
Kester Maddock
c82614be2e Python methods for camera actuators (thanks snailrose) 2004-12-29 01:33:15 +00:00
Kester Maddock
52c53bc2c9 Set the sound system listener properties. 2004-12-29 01:31:17 +00:00
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
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
edfae40711 Upped release code to 2.36 2004-12-21 16:23:24 +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