Commit Graph

3448 Commits

Author SHA1 Message Date
Ton Roosendaal
73ebc76fd5 2.37 Version code, new Splash! 2005-05-29 19:12:44 +00:00
Ton Roosendaal
4de68e5796 Default .B.blend starts with bitmap fonts again. 2005-05-29 18:44:42 +00:00
Ton Roosendaal
c107de5fad Texture font draw error in Outliner, only happens when a buttons window
is in a screen in location above outliner.
Was a missing BIF_SetScale()... this is confusing, we now have three
font systems mixed, which each own peculiarities and settings. Should be
cleaned!
2005-05-29 18:36:50 +00:00
Ton Roosendaal
dabf165c33 Reshuffled "Particle Interaction" Panel. Separated in left hand for
forces, right hand for deflection.
2005-05-29 16:52:39 +00:00
Ton Roosendaal
9d38f4ab38 TimeLine playback settings were always initialized to default, for 2.36
version files. Made test a bit cumbersome.
2005-05-29 11:53:55 +00:00
Ton Roosendaal
90d7da7b27 Tinsy cleanup of combo drawing Manipulators:
- translate+scale : arrow at end of axis
- translate+rotate: draws axis lines now
- while translate: draws the axis line too

And: GCC was nagging about Martin's precious code!
transform_constraints.c:745: warning: suggest parentheses around comparison
in operand of &

Apparently the if(a & b == c) is undefined? Whatever!
2005-05-29 11:20:49 +00:00
Ton Roosendaal
66d5a4dd63 The TOG3 button (material mapping buttons) didn't get correct color set...
Was accidentally not visible, until we added texture drawing for fonts.
2005-05-29 10:59:50 +00:00
Ton Roosendaal
dd79f7c8a8 Bug fix #2638
More derivedmesh culling confusement... it should be enabled when double-
sided shaded lighting is used...
2005-05-29 10:47:36 +00:00
Ton Roosendaal
c7b19d5066 Bug fix #2640
Somehow displacement got negated in my commit of april 12. Regression file
showed it, thanks efbie for finding it! :)
2005-05-29 10:44:52 +00:00
Martin Poirier
0bd69e6616 Crash Fix: Mirror Tool crashed when there was no selection (stupid lack of check). 2005-05-29 09:57:51 +00:00
Martin Poirier
fad9e3b979 Behavior consistency: Make Push-Pull and Shrink-Fatten work in the same way regarding what happens when you move the mouse toward or away from you. 2005-05-29 09:50:10 +00:00
Martin Poirier
14a3166685 Push/Pull didn't do Lock Constraint correctly. Fixed.
Also added an isLockConstraint function that tells if the current constraint is a locking constraint or not.
2005-05-29 09:21:34 +00:00
Matt Ebb
eeb6adffd3 * Last minute commit, updating the view3d menus for the new
transform stuff. All transformation menu items are now in the
'Transform' sub-menu. Added To Sphere and Push/Pull, and items
like Shear, Warp, etc. have been moved to there from the
top-level Mesh/Curve/etc menus, since they are now available in
object mode too.
2005-05-29 04:18:59 +00:00
Ton Roosendaal
8dfc6a506c For texture fonts, the rasterpos has to be delivered as BIF_RasterPos().
This smells to me like temporal code... will study it. For now this
commit fixes error in header draw of fileselect.
2005-05-28 16:11:11 +00:00
Ton Roosendaal
ad9ee622e8 Bug fix #2636
New AA font drawing (using texture) didn't get initialized on startup,
only when button was pressed. Confusing code... we need to remove all
#ifdefs here once.
2005-05-28 13:22:09 +00:00
Ton Roosendaal
eeefc10bf5 #bug 2633
Keep fighting with proper normal calculus on extrudes... now the 'add grid'
had wrong normals again (alternating in rows).
2005-05-28 12:59:48 +00:00
Ton Roosendaal
61e22e99d4 Disabled GL_CULL_FACE in mesh drawing for vertex colors, weight paint.
This made faces hidden with normals pointing inside. Not nice for paint...
2005-05-28 12:23:40 +00:00
Alfredo de Greef
5b014b0c9c Some last minute tweaks, for world background image, 'Hori' must now be
enabled.
And when using Blender's AO parameters, the lowest sample number
when no cache is used is 4.
2005-05-28 02:50:55 +00:00
Ton Roosendaal
bdc928b298 Oops, I've must had a weak moment... turntable is OFF again in the .B.blend
The trackball method is for real 3d work.... turntable for woossies! :)
2005-05-27 19:19:17 +00:00
Ton Roosendaal
5dedd9306b Colorband didn't correctly compute with 2 entries being exactly on the
same spot. Was division by zero here... coded nice exception catching.

BTW: worked before june 2004... was part of commit for Ramp Shading.
2005-05-27 19:02:39 +00:00
Ton Roosendaal
9a2efcd641 Updated the .B.blend. Nothing radical, that's for the next release, when
tuho work gets merged.

- Manipulators on (already was though)
- Grid/floor size 60 parts (was 32)
- Audio window replaced with TimeLine, added TimeLine in Sequencer
- Editmode draw edge/faces option on
- Turntable view rotate (under protest! :)
- 2nd theme is the dark/orange theme by Andy
- added 5th screen for python (textwindow, script buttons)
- OSA, Ray on
- Render resol 800x600
- higher default octree level
- added outliner in Animation screen
- renamed default Cube to be "Cube" (not sphere)
- default lamp has 'ray' on.
- when you turn default lamp to shadowbuf-spot, clipstart is OK

It starts with the 'modeling' screen, single window.
2005-05-27 18:09:10 +00:00
Alfredo de Greef
cf8d9fbb10 Added some backward compatibility with old yafray blendershader. Because of missing
parameters the material preset menu won't be as useful. Both glass presets will look the same
because there is no 'filter' parameter in the old yafray for instance.
So using the new Blender version with an old yafray version should work a bit better,
though the other way around, using the new yafray with an old blender version, will generally
not work as well.

I added a few extra things. In 'yafray' panel re-arranged some buttons, and added a new
button 'Clamp RGB'. This button will be enabled by default and helps to improve AA on
high contrast edges in the image. When using bokeh however, it is best to switch this off,
otherwise lens shaped highlights will be quite a bit less visible.

Changed the 'extinction' parameter name to the probably more correct term 'absorption',
though mathematically it works out the same. Also changed the behaviour of this color,
it no longer specifies a color that will be removed as I wrote in the previous commit,
but instead the actual color at one (blender) unit of distance. The 'Ds' (distance scale)
button below the color sliders controls the scaling of this unit distance.
What this means is that if you take the standard blender cube, which covers two units of
distance by default, setting the distance scale button to 2.0 will make sure that the color
you specified is exactly that color at that distance (provided the base color itself is white
of course, or 'filter' is 0, otherwise it will be filtered by the base color too).
Beyond this distance the color will get darker.

The glow option for point/soft/sphere lights has a new parameter 'GloOfs', or glow offset.
Setting this to a higher value then 0 will soften the central peak of the glow.

Another unreported bug fix: For xml export, when yafray failed to render the xml file
for some unknown reason, or because of other problems, the export code would still load
the previously rendered image, this causes problems however if the image resolution is
not the same as the current Blender buffer, and so could cause memory corruption or crashes.
This is now taken into account.

World image backgrounds now use the blender mapping settings as well, but only the
'AngMap', 'Sphere' and 'Tube' settings. But in yafray those last two, unlike Blender, cover
the whole view, not just the upper half, so is not really fully compatible with yafray.
So now you have to set one of these buttons too when loading a hdr lightprobe image.
btw, something I forgot to mention in previous commits is that the exposure control using
the texture brightness slider is no longer restricted to integer values. It is now a
floating point value, so you're not restricted to the 0 1 and 2 slider positions anymore,
anything in between will work too.

And finally, display updating is now more like Blender, using the mouse cursor as frame
counter for animation, etc.
2005-05-27 17:52:53 +00:00
Ton Roosendaal
f5435d924b When backbuf doesn't exist, it crashed during render... Fixed! 2005-05-27 13:28:26 +00:00
Ton Roosendaal
44a2c2267b On Render or Anim, no redraws should happin in the UI for sequence window.
This was enforced in a commit 5 months ago, for proper redraws while
working in sequencer itself (with scene strips)

Found by Ztonzy, explained by Jesterking. Thanks! :)
2005-05-27 12:53:28 +00:00
Ton Roosendaal
12671f30bd Bug fix #2629
Aye... OpenGL cannot draw concave (C shaped) polygons... that screws up the
Lasso tool, when it uses backbuffer selection.
Examined for little while the GLU Tesselation library, but apart from its
nightmarish structure, it's even stupid (no builtin clock/counterclock).

So, instead coded a DispList based function using Blender's edgefill.
Works like a charm! :)
2005-05-27 09:51:07 +00:00
Willian Padovani Germano
7625378e6d BPython:
- Fix for bug #2621 reported by Yann Cointepas (material.setMode didn't accept integer param, only strings, making it inconsistent with material.getMode):
http://projects.blender.org/tracker/index.php?func=detail&aid=2621&group_id=9&atid=125
    Applied patch #2626 by Ken Hughes to both Material.c and doc (Material.py):
http://projects.blender.org/tracker/index.php?func=detail&aid=2626&group_id=9&atid=127

- Small C doc strings update I forgot to add before, for Render slinks (reminder about Render slinks docs also by Ken).

Thanks both -- btw, Ken Hughes has contributed considerably improving bpy documentation and fixing bugs for this release.
2005-05-27 05:39:41 +00:00
Ton Roosendaal
53082cf0f1 Bug fix #2575
VertexPaint, FaceSelect draws with 'culled faces' but should therefor
check for negative scaling as well, set the glFrontFace() OK.
2005-05-26 21:00:50 +00:00
Ton Roosendaal
8f5baf019b Bug fix #2627
For rendering wire a wrong offset was used to find vertices... was caused
by commit Apr 13, part of reconstructing Mesh and subsurf.
2005-05-26 20:11:41 +00:00
Ton Roosendaal
07d048cae6 Disabled zblur render option when it was saved in testing builds. :) 2005-05-26 19:49:05 +00:00
Ton Roosendaal
1536167d13 Bug fix #2625
Darn #$%#$# code cleanup in NaN days screwed up recursive feature of
linking dynamically data among Blender files. It now only supported 1
'deep'.

Now you can link data from file1 via file2 into a file3, etc. Nasty code,
but supposed to work :)
2005-05-26 13:17:12 +00:00
Ton Roosendaal
b30b8bdd08 Bug #2624
Typo in bspline interpolation code... a '1' should be '2', causing the
fourth key of interpolation always be equal to third.
Only shows error with larger key steps, like 5 frames or more. Nice it
was found before release!
2005-05-25 21:54:13 +00:00
Stephen Swaney
3eb2be3831 updates and corrections for BPy Text3d module from Ken Hughes.
Thanks, Ken!
2005-05-25 16:38:51 +00:00
Ton Roosendaal
f9f3e82f93 Tinsy little but relevant bug; colors in Action channels used signed
bytes, glColor4b() instead of unsigned glColor4ub(). Gave ugly cycling
of colors in wrong ways.... reported by Ztonzy on irc. Thanks!
2005-05-25 16:37:24 +00:00
Ton Roosendaal
6969c118de Removed unused rect_float variable from imbuf structure. Was added for the
openEXR testing only. It broke sequence plugins...

Note: adding variables in end of Imbuf struct at least doesn't crash old
sequence plugins immediately. :)
2005-05-25 16:19:00 +00:00
Willian Padovani Germano
2a1fe1b0cb BPython bug fixes:
- Patch #2491: Mathutils.AngleBetweenVecs BUGFIX
http://projects.blender.org/tracker/?func=detail&aid=2491&group_id=9&atid=127

- #2607: Python String button can segfault if the allowable length is greater than 400
http://projects.blender.org/tracker/?func=detail&atid=125&aid=2607&group_id=9

- #2490: Vector == None gives warning
http://projects.blender.org/tracker/?func=detail&aid=2490&group_id=9&atid=125

- #2476: Image.Draw()
http://projects.blender.org/tracker/?func=detail&aid=2476&group_id=9&atid=125

All reported by Campbell, who also wrote the #2491 patch.  Ken Hughes provided patches for #2490 and #2476.  Thanks guys.
2005-05-25 04:52:52 +00:00
Jens Ole Wund
524e411dbf rule OB_SB_GOAL flag over SOFTGOALSNAP optimization in all cases 2005-05-24 22:17:23 +00:00
Ton Roosendaal
9e0e4adb68 Audio playback in TimeLine should not use 'scrubbing' option in the
update_for_newframe() call.
2005-05-24 19:33:04 +00:00
Ton Roosendaal
e975b78a4f Found float-related numerical instability with vertices lying EXACT on
the edge of an image. It should not be clipped, but comparisions with
floats then can go wrong... here the FLT_EPSILON is to the rescue.

/* smallest such that 1.0+FLT_EPSILON != 1.0 */
#define FLT_EPSILON 1.19209290e-07F

(Bug fix #2610)
2005-05-24 17:36:20 +00:00
Stephen Swaney
bb84abaaa8 updates to doc strings in code and doc from Ken Hughes.
add alias .recalc() for IpoCurve.Recalc() to match api standard.
2005-05-24 15:14:32 +00:00
Ton Roosendaal
8242c5db2b Bugfix #2602
Tooltips of buttons with menus (like for set constraint type) could popup
still... and in wrong location even!
Now it's a little bit tighter coded.
2005-05-24 13:02:22 +00:00
Ton Roosendaal
1dad1677d3 Bug fix #2606
While in Shaded draw mode, and edting a Font Object, the linked duplicates
of this object didn't get reshaded correctly.
2005-05-24 12:33:35 +00:00
Ton Roosendaal
b4dc14e088 Added init of 'postsat' to 1.0 in Scene, for the postprocess menu.
This only gave error in python. Added new scene in Blender itself copies
settings over of current scene. :)
2005-05-24 11:50:12 +00:00
Ton Roosendaal
505ab0bf78 Bug fix #2617
Using ipokeys with rotate crashed... caused by bugfix in ESC on ipokeys I
did before. Got confused by non-initialized (malloc) transdata...
2005-05-24 10:03:53 +00:00
Jean-Luc Peurière
94ba432f59 fix for #2592
Ken Hughes found the solution.
2005-05-23 18:20:20 +00:00
Johnny Matthews
6c6e280fef Moved a line containing a declaration and initialization to the top of the block, so that blender would compile. Sorry if this steps on any toes.
Johnny
2005-05-23 15:43:16 +00:00
Alexander Ewering
9be39be56b Just putting a reminder into IMB_imbuf_types.h in case my mails to the list
got ignored, and for future reference ;)

If you change struct ImBuf, copy it over to the plugin API!
2005-05-23 00:14:23 +00:00
Alfredo de Greef
ec45bfc5b1 Second and final commit for this version of the yafray export code (probably, you never know
of course...)

Not quite complete, but due to lack of time as good as it will get for now.

From the previous commit, forgot to report that basic fog is supported as well. Though because I had not much time to complete the code, it is sort of unfinished, and you will have
to tweak parameters specifically for yafray again. It uses only the world horizon color, and
only uses the Blender mist distance setting.

Textures now support checker clip mode.

Fixed possibly all 'duplilist non-empty' errors, though it could hide the real cause of the
error.

AA is no longer enabled automatically for certain GI quality settings, I thought it best to
leave it to the user to decide.

SkyDome GI mode now supports cache as well. There is a new option in the GI quality menu 'Use
Blender AO settings', which will as it says use the most important AO settings for the
skydome parameters. The only AO parameters used are 'Samples', 'Dist' and the random sampling
switch, which unlike in Blender you might want to use more often, since the QMC sampling used
in yafray can result in visible patterns or a dithering type look. 'Random' is not completely
random in yafray however, it is actually jittered (stratified) sampling.
Using an occlusion cache, doesn't necessarily mean that you will always get much shorter
render times. As with 'full' GI and cache, one problem is bumpmaps, when using bump (or
normal) maps, the sampling will be much more dense, using lots more rendertime.
As a temporary fix there is a button 'NoBump', but this also has the side effect that in
areas of total indirect light (or when used with SkyDome cache) no bumpmapping will be
visible. It is therefor best used with some direct light as well.
For SkyDome with cache, and strong bumpmapping it might actually not make much difference,
since for low distance values you can usually get away with low sample values as well.

The entire material panel is now replaced by another panel to show only the parameters
important to yafray and add some new ones as well.

Since lots of users (especially yafray beginners) have had problems getting certain material
aspects right, there is now a material preset menu available to hopefully solve some of the
most common "How do I do this? It doesn't work!" questions seen in various forums.
Choosing an option from this menu will set the required parameters to default
values for yafray, and you can work your way from there to tweak it something you want.

Most buttons are copies of the same Blender parameters, with some variations. Just like
Blender 'Ray Mirror' enables reflection, 'Ray Transp' enables refraction. You can use
'ZTransp' for materials that have texture maps with alpha channels.
Again, same as Blender 'rayMir' sets the amount of reflection. Next button 'frsOfs' however
controls fresnel offset, meaning that when this is set to 1, you will get no fresnel effect
and when set to 5, reflection is totally determined by fresnel, which is important for
realistic glass/metals/etc.
IOR is self-explanatory (...), same as Blender.
When you have 'Ray Transp' enabled, the blender 'filter' button will appear next to the IOR
button. This has the same effect as in Blender.

Below that there are some new parameters, 'Ext.Color' sets the extinction color for
transparent materials. Usually, in real transparent materials, light loses some of it's
energy the further it has to travel through the object. This effect can be simulated with
this parameter. Thing to look out for is that it specifies the color which will be
REMOVED after traveling through the object. What this means is that say you have a clear
white glass sphere, and set the extinction color to a strong blue, the result will be a
very yellow object when rendered.

Next to the color sliders, there is another set of three parameters, with which you can
enable color dispersion for transparent objects. 'Pwr' sets the amount of dispersion,
the higher, the more dispersion (the more colorful the result).
(For real world materials, this number can be found or derived from data in various glass catalogues)
The 'Samples' button below that sets the number of samples used, minimum values are around
7-10, and for very strong dispersion you might need a lot more.
As usual, this also means an increase in render time of course, but to simulate
realistic materials, you shouldn't really need more than 25 samples.
In addition to that, when using low sample numbers, but to still get a good spread of colors,
you can enable the jitter button, but this will also add noise.

Point/soft(point with shadowbuffer) or sphere lights (light with radius), have a new option
to add a simple glow effect, so that lights can be made visible.
NOTE: just like spotlight halo's, glow is not visible against the background, there must be
another object behind it. Simplest solution is to use a large black shadeless plane behind
your scene.
The glow intensity can be set with the 'GlowInt' parameter (use very low values around 0.01
even lower), and you can choose from two different types with the 'GlowType' button (which
don't look much different, but type 1 is probably better, type 0 faster).

And that's it, with apologies for the still missing features and
full support in general, but this will have to do for now.
2005-05-22 22:46:17 +00:00
Jiri Hnidek
563af2aac1 - stiffness circle of MetaElem isn't paint in Object mode now 2005-05-22 19:16:04 +00:00
Stephen Swaney
8510196eca Rename Image.getPixel() to .getPixelF() as per discussion
to match OpenGl conventions and prepare for integer versions.
2005-05-22 18:43:29 +00:00
Stephen Swaney
ece00ff04a Roll back changes from Big Mathutils Commit on 2005/05/20. 2005-05-22 17:40:00 +00:00