Commit Graph

120055 Commits

Author SHA1 Message Date
Kent Mein
3c592ec3ad This is for bug # 2068
I standarized the returns on a failed opening of the output file for
the above image formats.

I also cleaned up a couple of warnings.

Kent
2005-01-10 16:22:40 +00:00
Ton Roosendaal
d1d8950eac Somehow in 2.3x the file window collum display got cancelled. It even
pretended to be a user-preset, which it isnt yet.

Brought back collum display and wait for severe complaints to have it as
option in user settings. :)
2005-01-10 12:34:39 +00:00
Alejandro Conty Estevez
8cfa2b247a border render support through plugin. Working with current yafray CVS version 2005-01-09 21:53:50 +00:00
Ton Roosendaal
3806b050d6 Mixup of vectors in VecAngle3 (caused by me switching order of args!)
Resulted in wrong angle display, especially in trias
2005-01-09 14:28:18 +00:00
Ton Roosendaal
8229ea59de Different integer overflow test for zbuffering, this due to mist+wire bug
that seems not to be solved on intel platforms.

Previously, a positive signed integer overflow addition was checked by
assuming it to become negative. Now it checks 'safe' with this version:

if(vergz > 0x7FFFFFF0 - dz) vergz= 0x7FFFFFF0;
else vergz+= dz;

Reason why using signed ints is cumbersome... overflows for unsigned are
much easer to find.
2005-01-09 13:36:14 +00:00
Jiri Hnidek
5ea2ed38e7 - correct position of "Edge Angles" and "Face Area" in button window 2005-01-08 23:31:04 +00:00
Ton Roosendaal
3c921cc8e8 The "teac" (measurement info) patch from Campbell Barton
Cleaned code somewhat (half the size!) and applied some changes:
- made it compatible with selection flags for new mesh editing (edge/face)
- renamed 'face angles' to 'edge angles' and made it display angles for
  2 selected edges too
- removed the confusing convention that always drawed the info if one
  of the vertices of edge/face/angle was selected. now it only displays on
  minimum of 1 full edge or face selected.
- made it react to "zbuf occluded selection" option (for zbuffered text)
- made it also colorize text for white theme color (TH_TEXT)

On larger meshes this info still draws very confusing. The idea of displaying
the info on 1 vertex selected was probably to show values while grabbing,
although that didnt really work for angles. One idea could be, for transform,
that it draws all lenghts/angles/areas that get changed during transform

All in all, still useful addition tho!
2005-01-08 21:16:24 +00:00
Ton Roosendaal
9adbe1ec0e Star halos still used old fashioned byte colors, instead of nice floats :)
Reason for them to show wrong.
2005-01-08 14:45:58 +00:00
Ton Roosendaal
9393e490af Fix for commit of yesterday, where wire render + mist was solved.
Had moved normalizing the view vector just a couple of lines to much...
causing OSA vectors to be calculated wrong, and image texture to show
much to filtered (nearly invisible)
2005-01-08 14:22:27 +00:00
Ton Roosendaal
d56680bc38 Bug fix #2113
A series of hide/reveil in editmode didn't result in identical selection
always, except in face mode. current method works in all modes, including
mixed (face+edge for example)
2005-01-08 13:50:44 +00:00
Ton Roosendaal
8b3eea1798 - Added warning print and return in glaDrawPixelsSafe when zoom level
exceeds window (glScissor) size. Apparently zooming in on one single
  pixels larger than a window isn't well supported.
- Moved drawing of editmode objects to 2nd loop in drawview.c, this
  makes sure draw-extra wire is always visible correctly
2005-01-08 13:15:43 +00:00
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