Commit Graph

1521 Commits

Author SHA1 Message Date
Ton Roosendaal
78f133b8a7 Bug found by Bassam; in certain occasions reading a file calls setscreen()
without the (ugly) global curarea being set.
Fixed the crash in his sample by nicely passing on 'current area' as
argument.
2005-01-31 18:37:54 +00:00
Chris Want
732f608e33 Doing the hotkey modifiers for select non-manifold the Ton way. 2005-01-30 21:33:12 +00:00
Ton Roosendaal
c94ec03a9e Bug fix (from own collection)
After using clip-safe pixeldraw from glutil.c (preview render, bg picture)
the current viewport had to be re-set. Not doing so caused a 1 pixel offset
for live updates buttons (on mouse over)
2005-01-30 13:13:31 +00:00
Ton Roosendaal
996374bb5a Fixed old annoyance; enabling true Ortho render in Blender.
It used to be a simple hack, scaling lens with 100, and moving the camera
to the back with an equivalent amount.
Because of the hack, making it 100% compatible with older files I could not
achieve (yet?). To help reminding users, I've added a print when reading
old files with Ortho cameras.

Full description of how it works can be found here;
http://www.blender3d.com/cms/Render_changes.515.0.html
2005-01-30 11:25:27 +00:00
Chris Want
3180afe2cf Correcting the logic of the hotkey modifiers for select
non-manifold. If you want it so all three modifiers are needed
(e.g. ctrl-alt-shift-MKEY) use:

  if ( !(~G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY)) )

instead of

  if ( G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) )

(which really allows any modifier, alone or in combination, to work).
2005-01-29 21:34:45 +00:00
Brecht Van Lommel
bfba62e59e Added a color picker and a 'Set VertCol' button to the Texture face panel,
so the color of faces can be set in Uv Face Select Mode. Patch provided by
Carsten Wartmann (moved the buttons, and removed the rgb sliders).
2005-01-24 15:33:13 +00:00
Ton Roosendaal
e44b07d828 Added color filtering for raytrace transparency.
http://www.blender3d.org/cms/Transparent_filtering.514.0.html

Choice was for using a single (new) filter value and have it working OK
with existing alpha.
2005-01-24 14:08:06 +00:00
Stephen Swaney
93319a28a8 fix some undeclared parameters 2005-01-23 20:32:34 +00:00
Kester Maddock
a1f0f165e4 Added Joystick sensor (from snailrose) 2005-01-23 01:36:29 +00:00
Rob Haarsma
136ecd4644 Modified interface texture font support, which should work nicely with the freshly added bFTGL library.
Also removed some redundant #include's on some files.
2005-01-21 14:48:03 +00:00
Ton Roosendaal
8c271d7acb Bug 2162
Current cvs bug; the texture 'crop' lines were not drawn using correct
Panel/Window transform. Simple fix.
2005-01-21 11:07:35 +00:00
Rob Haarsma
9fddd2bdec Added experimental option to use GL textured interface fonts.
Set preferred method in userprefs->language & font.
Kinda requested by Kaito, i'm sure he regrets after seeing
my code changes.

This commit includes a patch provided by Jacques Baurain,
which seemed nescessary to handle font sizing properly.
Thank you !
2005-01-19 13:53:43 +00:00
Kent Mein
731c69d6ed Melchior FRANZ's patch to allow the normal +- to work with border select.
Currently it doesn't conflict with anything and I think it makes sense.

Kent
2005-01-19 13:01:49 +00:00
Ton Roosendaal
672d28534c Render lens flare works again. Didn't work due to wrong value for zbuffer
passed on (zbuffer values changed with previous commit)

Also fixed previewrender for lens flare.
2005-01-18 15:22:42 +00:00
Ton Roosendaal
9c6094ee0e Fix for bug #2152
Using File->Save Image menu didn't work while Stars were drawn... the used
method to save an image (mainqenter F3 key) is a bit awkward anyway, so
replaced with proper BIF_xxx call.
Reason for mainqenter not to work was RE_draw_stars() function calling
a blender_test_break(), swallowing queue events. Very bad and need review.

Small tweak in previewrender; preview type Cube now displays texture
coordinates better (it showed a bit too much)
2005-01-16 11:29:44 +00:00
Rob Haarsma
981ecc390a Made Suzanne speechless again... what was i thinking. 2005-01-14 17:35:24 +00:00
Brecht Van Lommel
5161998bbe Softbody commit broke compilation of blenderplayer. There was a dependancy
from blenkernel/ to src/. Moved the offending functions to blenkernel...
2005-01-12 23:57:33 +00:00
Jens Ole Wund
912ef80bdc big softbody commit
some vertex group , weight painting stuff too
/me crosses fingers it does not break anything
2005-01-12 22:28:13 +00:00
Rob Haarsma
ea740dea02 Let's keep Blender a monkey app. 2005-01-12 12:25:56 +00:00
Ton Roosendaal
b1a8ef6b30 Bug fix #2061
On exit editing mesh being linked multiple times, and other object-users have
a deform, the displists were not recalculated.
2005-01-11 12:14:45 +00:00
Roel Spruit
9817939b20 Bug #2119
The Separate option was missing from the toolbox and headermenu for curves,
Added it to both.

First commit in a loooooooooong time, have to start with something small ey ;)

Roel
2005-01-10 18:17:41 +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
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
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
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
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
Jiri Hnidek
d1fdacf0d5 - small changes of buttons in MetaBall and MetaBall tool panels 2005-01-05 08:28:32 +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
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
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
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
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
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
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
af02201fd0 Splash now has subtle credits for artist; www.venomgfx.com.ar 2004-12-21 22:12:29 +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
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
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