Commit Graph

4722 Commits

Author SHA1 Message Date
Ton Roosendaal
bba3cebd4c Orange: two fixes,
- Texture buttons preview didn't show for material layers
- layers now have a 'number of users' button, which allows to make a
  full copy of the material.
2005-12-04 18:07:53 +00:00
Ton Roosendaal
1efe0a7232 Sunday sync of Orange with bf-blender 2005-12-04 17:22:36 +00:00
Ton Roosendaal
409f60d605 Bf-blender commit! :)
Forgot to put back window/screen-size clipping when opening render window.
Note for windows coders; check this diff, here's where you might need to
add an ifdef too for windows, to get the window opening correct for the
top of the screen (probably because of windows bottom toolbar?)
2005-12-04 17:18:58 +00:00
Ton Roosendaal
1b7089a306 Orange 'layer commit' fix: Texture buttons crash when selecting an empty
texture channel
2005-12-04 16:15:04 +00:00
Ton Roosendaal
9633d7a241 Orange fix: previous commit from Brecht called unwrap_lscm_live_end()
without check for correct spacetype in use. :)
2005-12-04 14:37:18 +00:00
Ton Roosendaal
aa939b8599 Orange branch feature; Material Layering
(WIP, don't bugs for this in tracker yet please!)

- New Panel "Layers" in Material buttons, allows to add unlimited amount
  of materials on top of each other.
- Every Layer is actually just another Material, which gets rendered/shaded
  (including texture), and then added on top of previous layer with an
  operation like Mix, Add, Mult, etc.
- Layers render fully independent, so bumpmaps are not passed on to next
  layers.
- Per Layer you can set if it influences Diffuse, Specular or Alpha
- If a Material returns alpha (like from texture), the alpha value is
  used for adding the layers too.
- New texture "Map To" channel allows to have a texture work on a Layer
- Each layer, including basis Material, can be turned on/off individually

Notes:

- at this moment, the full shading pass happens for each layer, including
  shadow, AO and raytraced mirror or transparency...
- I had to remove old hacks from preview render, which corrected reflected
  normals for preview texturing.
- still needs loadsa testing!
2005-12-04 14:32:21 +00:00
Brecht Van Lommel
c2cff1cbcf More work on the new unwrapper code (orange branch):
- There is now a (temporary) dropdown box in the image window header for
  switching between the old an new unwrapper code. So to test the changes
  described below you need to enable the new unwrapper code.
- Pinning is now more predictable, if one uv is pinned, the others belonging
  to the same vertex are pinned also.
- Live LSCM is much faster, since the LU factorization, the most expensive
  part of the computation, is now stored and reused (was Jens' idea).
- Packing multiple uv charts is slightly improved, by doing a binary search
  over the texture width. This fixes the case where all the charts are
  packed at the bottom of the image.
- LSCM now uses an angle based formulation, and the results seem somewhat
  different (maybe slightly better?), didn't find out why yet.
2005-12-03 23:22:31 +00:00
Nils Thuerey
e49998807c - fixed output behaviour (now behaves just like render output,
thus directories in the path are created using RE_make_existing_file
  in fluidsim.c)
- changed default output to be '//fluidsimdata/...'
- hopefully fixed bugs #3466 and #3470 (orco texture coords caused
  problems when the fluidsim mesh was bigger than the original one,
  one no other deformations were used - new deformedVerts are now
  allocated in this case in DerivedMesh.c)
2005-12-03 17:45:35 +00:00
Ton Roosendaal
8cb14867b0 Added Copy/Paste 'mapping' options for World/Lamp buttons.
Also: moved render defines from scene to render module itself.
2005-12-03 12:55:35 +00:00
Ton Roosendaal
8a84a957f2 Orange tree:
Raytrace mirror crash, due to mixup in skyshade call (for 'glob' texture)
2005-12-03 09:24:21 +00:00
Chris Burt
5b9e85f0a2 Just one more useful commit from Desoto: added a newline to the end
of the file. Hold the applause please.
2005-12-03 00:52:51 +00:00
Kent Mein
4739837377 fix for #3498
(Swap colors on bigendian machines)

I also made it so that the env variable is tried ahead of all
of the other looking.  (That way you can override a system default
if its broken without having to upgrade)

This also makes it so we can remove the OSX ifdef.  So I did.
lukep: If you still want it add it back in but my gut says the less ifdefs
we have the better ;)

Kent
2005-12-02 21:46:52 +00:00
Ken Hughes
9588cfdffe Small changes to API docs on curves and space handlers explanations. 2005-12-02 21:25:30 +00:00
Kent Mein
6263390e73 This commit does very little for the number of files touched.
I updated gen_dynlibtiff.py so its in sync with the file(s) it creates.
I added a little more documentation to the readme.txt for adding
new file formats.

I also added two dummy functions to the tiff.c so it stopped whining
about them being NULL.

(I'm still working on the reported bugs but thought this was a good time
to at least get this in)

Kent
2005-12-02 21:13:14 +00:00
Ken Hughes
6ba27d69b0 -- Bugfix #3524: theEditMesh structure was not being initialized correctly. 2005-12-02 18:00:38 +00:00
Ton Roosendaal
066f79cfa4 Friday merge of bf-blender into orange branch. 2005-12-02 13:55:13 +00:00
Ton Roosendaal
d1c5950121 Extra texture channel input for Mist effect; "Global". This feeds the
global coordinate (from faces) to the sky texture color calculus, this to
make textured mist a bit less transparent (was only view coordinate).
2005-12-01 22:16:07 +00:00
Ton Roosendaal
b99e1f6b3c Just copied over changes in engine, from bf-blender. This someohow was
missing in the previous bf-blender sync.
Now engine compiles for orange tree too.
2005-12-01 19:32:54 +00:00
Ton Roosendaal
c4a1d655ae True X-mirror mesh editing!
Set the option in EditMode, in 2nd mesh tools panel. It only works on
transform options now (grab/rot/scale), and of course assumes a near-
perfect symmetrical mesh. Mesh Object itself can be on any location
though (and rotated etc).
2005-12-01 19:04:57 +00:00
Johnny Matthews
a332c7c387 Bugfix #3510
Adding a couple of countall() to update header after using the Vertgroup and Material Group "select" and "deselect" buttons
2005-12-01 16:36:30 +00:00
Ton Roosendaal
64a6fde567 Wee li'll commit in tooltip for "W" button softbodies. 2005-12-01 16:00:39 +00:00
Brecht Van Lommel
a09fbc080d Small addition to stretch minimize: with pad +/- or the wheel mouse
you can now blend between the original and minimized.

Stretch minimizing trades conformality (= perfect squares in checkerboard
texture) for a better sampling of the texture (= often not so well shaped
checkerboard), so it is useful to let the user find a balance between the
two.
2005-12-01 12:45:17 +00:00
Matt Ebb
1a59b16b48 Updated the sconscript for new file parametrizer.c 2005-12-01 11:05:52 +00:00
Ken Hughes
8a7242ff16 -- Bugfix #3139: Blender.Library.Open() was changing current .blend
filename.  We now save and restore file before opening library.
2005-12-01 05:30:15 +00:00
Ken Hughes
95e94b4630 Make curnurb.flagU and curnurb.flagV range check their inputs, plus make
the documentation correctly describe how the attributes and methods work.
2005-12-01 04:50:04 +00:00
Brecht Van Lommel
d6feeb6b22 Orange branch commit.
This commit adds new underlying uv unwrapper code, intended to be
more extensible. At the moment this has a re-implementation of LSCM.
This has not been activated yet, since it doesn't add anything new.

What's new is the stretch minimize tool from tuhopuu. It works by
selecting some some uv's in the uv editor window, and then pressing
ctrl+V. The uv's on the boundary stay fixed.

More stuff will follow as I port it over & fix it.
2005-12-01 02:09:21 +00:00
Ton Roosendaal
d369a44dde Orange bugreport; disabling (with small icon button) a deforming modifier
for EditMode, the CrazySpace correction still worked. Made it check for
the modifier mode flag.
2005-11-30 20:22:27 +00:00
Ken Hughes
22188fba21 -- previous commit was decrefing a borrowed reference; thanks Ascotan for
tracking this down!
2005-11-30 20:18:54 +00:00
Ton Roosendaal
ec2644fe5c Bugfix - own repertoire :)
- Curves without bevel or extrude didn't calculate the Z value for
  softbody when the "3d" option for curves was off.
- Typo in softbody.c, for switch of // comments to /* */
2005-11-30 18:58:10 +00:00
Marc Freixas
ce3164e259 Boolean op error handling has been added. When a no closed mesh is used the follow message is showed:
"Both meshes must be a closed mesh"
2005-11-30 17:38:41 +00:00
Ton Roosendaal
1eab492c4b Syncing Orange branch with bf-blender 2005-11-30 13:58:01 +00:00
Ken Hughes
b7a4a6c837 -- Bugfix #3186: Fix memory leaks caused by multiple calls to
PyDict_SetItemString() with objects that were not properly decrefed
   afterwards.  Due to the number of places this was used, I added a
   wrapper EXPP_dict_set_item_str() to gen_utils.c to handle it.

   This started as a scriptlink bug, due to how many times scripts were
   being executed I think it just magnified how bad the memory leak in
   BPy was.  Animating the blend attached with this bug report would cause
   memory to grow by about 3MB for every 280 frames.  After the patch,
   memory did not appear to grow at all (or at least not noticably using
   Unix's ps and top utils).

   Since many of the PyDict_SetItemString() calls were in initialization
   modules I think my tests executed most of the changed code, but would
   appreciate script users really giving feedback.
2005-11-30 08:18:06 +00:00
Ken Hughes
00f4310970 -- Bugfix #2868: NMesh.update(0,0,1) with derived mesh data would cause a
crash.  Hopefully the NMesh module will die a silent death before we
   discovere this doesn't really fix the problem :-)
2005-11-29 23:38:40 +00:00
Ton Roosendaal
adb2d5d88a Bugfix #496
Noticed that static particle orcos (strands) actually were global
coordinates. This was code copied from dynamic particles...

Bugreporter (hi env!) tried to make nice zebra texture, which of course
very much failed.

Note; orco textures for strand give the same texture coordinate for the
entire hair. UV maps don't work here yet.
2005-11-29 23:31:26 +00:00
Ton Roosendaal
a381cb2fca Bugfix #3494
An image texture without picture returned a '0', causing the texture code
to generate a bump normal that warped the entire shading around.
In bugreport it was showing terminator issues with ray shadow.

Terminator problems can still occor with more extreme bumpmaps though,
something to look at further.
2005-11-29 23:09:36 +00:00
Ton Roosendaal
04387f403f Bugfix #3493
Replaced sqrt() with the safe version sasqrt() in anisotropic.
the formula (1 - n*n) should not give negative values for n = dotproduct
of normals, but float inaccuracy can make negative zeros, as we know!

This solves, hopefully, last annoying "blotches" in hair!
2005-11-29 21:44:47 +00:00
Ken Hughes
e2723d671a Fixed calls to BIF_draw_icon_blended() in draw_marker() to use TH_BACK,
also removed unused parameter from draw_markers_time().
2005-11-29 21:41:31 +00:00
Johnny Matthews
4798e3ac28 A small tweak on the Glow effect Alpha channel. 2005-11-29 21:14:42 +00:00
Johnny Matthews
36cc4a632f Possible fix for bug #3400 2005-11-29 21:07:17 +00:00
Ton Roosendaal
0864011d27 Disabled commit of three days ago to speedup and improve hairstrand
raytracing with a linedist (cylinder) check. It didn't behave OK on strands
set to be more than 1 pixel (not to mention 10 pixels), and I have no time
now to fully check and code it.

Which is not really important either... In general, all 3d papers talk about
using shadowbuffer shadows for hair, which gives much nicer results for
dense volumes of polygons.

This commit restores regular (flat polygon) raytrace shadow for strands.
Also fixes some nasty bugs as reported. :)
2005-11-29 20:18:31 +00:00
Ton Roosendaal
0140c36df9 Cleanup & preparation commit for getting Armatures/Poses/Actions working
in the game engine again.

All files in source/gameengine/ I've committed below have a comment like
/* XXX note .... */
where something needs to be done. This is pretty straightforward for Erwin,
who has been notified in person too about this. :)
2005-11-29 12:45:18 +00:00
Joseph Gilbert
65ce2c2cee * warnings fixes 2005-11-29 05:08:29 +00:00
Ken Hughes
0ae3fe59a3 -- Partial bugfix for #3186. curve.getControlPoint() wasn't DECREF-ing
values added to a list, causing a memory leak.
2005-11-29 01:35:45 +00:00
Ken Hughes
c0e94f3063 Fix incorrect documentation for Window.QTest(). 2005-11-28 22:49:59 +00:00
Ton Roosendaal
10517e5e87 I hesitate to call it a bugfix... but it's a removal of a very ancient
(2001) hack that enforced opening renderwindows smaller than screen size.

The notes I could find referred to testing old 3d cards, which failed to
give graphics memory for large windows. Another note was an issue on OSX,
where the topbar and windowbar gets hidden otherwise.
That latter case I corrected now.

Will organize good testing for this, if there's issues, will uncommit :)
2005-11-28 22:49:23 +00:00
Ton Roosendaal
5595f3cf62 Bugfix; using vertex+edge select in Mesh editmode, didn't restore selection
correctly after re-entering editmode.
2005-11-28 18:16:37 +00:00
Ton Roosendaal
705497142d Bugfix #3469
3D Manipulator didn't snap to correct center in editmode Armature. Bug as
old as manipulators in blender. :)
2005-11-28 17:12:43 +00:00
Ton Roosendaal
413a86e5d9 As reported on bf-committers maillist: new object centers were drawing in
sets. To fix it, I got rid of a very ancient hack to enable set grey wire
drawing (setting a global to pretend it's picking select draw).
Now this setting is nicely passed on via functions as argument.
2005-11-28 16:59:12 +00:00
Jean-Luc Peurière
ea16a99f57 cosmetic change to reduce console output on Os X
when libtiif is searched.

this is to reduce complaints from frightened users crying
" THERE IS AN ERROR ! "
2005-11-28 16:11:27 +00:00
Jean-Luc Peurière
0c52fc76dd Nvidia workarounds
- partially working workaround for nvidia bug on Os X 10.4.3
- brought back the raster ops hack for GT6800 with proper driver version
  check so that text works both on Os X 10.4.3 and older systems.
  this last patch was given by Kent Miller from Apple
2005-11-28 13:50:44 +00:00