Commit Graph

1632 Commits

Author SHA1 Message Date
Robert Wenzlaff
52e5a15bab - Separates displace from Var slider. Added Disp Slider to
control how the intensity channel affects displacement.  Nor
	  slider still controls how Nor channel affects displacement.

	- Scaled Nor displacement to make Nor slider more usable.

	- Removed Data scale from displacement routines.  Made
	  sliders unusable for objects scaled in editmode.  Displacement
	  now relative to unit sized object.  Displace still tracks
	  with object scale, so scale out of editmode if you want a
	  large object with deep displacement.
2004-01-15 04:06:24 +00:00
Willian Padovani Germano
39714fe42c BPython:
- some fixes for menu and error reporting code.
2004-01-15 03:46:47 +00:00
Roel Spruit
f9ed7f0f88 Object > Copy Attributes menu items crashed my system if there weren't any objects selected and active. found a if(ob=OBACT) block that caused it. aparently assigment in if statements doesn't always go to well. 2004-01-14 23:04:09 +00:00
Roel Spruit
8df5de525c added python script files to MSVC 6.0 projectfiles and changed snprintf to PyOS_snprintf 2004-01-14 21:48:56 +00:00
Willian Padovani Germano
0d9d16e6e9 Scripts in menus:
-- this finishes the heavier part (not counting tweaks and possible bugs) of
letting scripts be accessed from Blender menus.  Will explain more in emails
to bf and bpython lists, but just check
source/blender/python/BPY_menus.[hc] and
source/blender/src/header_info.c and header_script.c for details.

Scripts need a small update (registering info, basically a header) to be used.
Scripts dir (user pref file paths: Python) must be set.
2004-01-14 21:36:10 +00:00
Ton Roosendaal
5190faf513 - fix for speedup raytracing, which gave errors in very simple scenes
(1 lamp, shadow). The 'coherence' check gets reset now for each new
  pixel rendered, which remains efficient for oversampling.
- small cleanups in code, prototype added, less globals.
2004-01-14 20:13:41 +00:00
Ton Roosendaal
dd71491120 - preview render cube was too small, increased size a bit
- preview render sphere and cube had texture upside down
2004-01-14 20:11:42 +00:00
Alejandro Conty Estevez
d217f86ed5 Just a bit of export values tunning. Should now work ok, with current
yafray CVS version using photons.
Last image got:
http://www.coala.uniovi.es/~jandro/noname/images/fromblender3.jpg
which you can compare with old:
http://www.coala.uniovi.es/~jandro/noname/images/causfromblender.jpg
2004-01-14 16:03:06 +00:00
Matt Ebb
c1a1ba93ae * Bug fix in view3d menus - wasn't checking a pointer's initialisation strictly enough. 2004-01-14 15:51:37 +00:00
Martin Poirier
3cfa085a46 Set cursor calls for the bevel function. Making sure the hourglass (waiting cursor) is not displayed when we don't want it to. 2004-01-14 15:41:49 +00:00
Ton Roosendaal
e76eb6a45a - code that limited zooming in and zooming out for spaces like sequencer,
audiotimeline, etc. was accidentally removed in 2.30 UI makeover. put
  it back. fixes report in tracker from Cessen, thnx!
2004-01-14 14:47:41 +00:00
Ton Roosendaal
3e84e66078 fix for tracker report on crashing border render in unified render.
it is related to the fix for 2.31, wich disabled hackish feature of
 inserting the previous render outside border. i forgot the unified has
 this code entirely duplicated, something to get rid of one day...
2004-01-14 14:30:59 +00:00
Robert Wenzlaff
d7bac993fa - Correction to scale calculation on Metaballs, provided by Jiri. 2004-01-14 13:18:11 +00:00
Ton Roosendaal
0d6533a48f fix for bug that caused transparant shadow change how a texture
rendered itself. this happened when transparent shadow ray hit a face
 with same material as where ray started.

 is this understandable? i guess not! :P
 the actual fix is just a few lines, to store material locally before
 going to trace transp shadow.
2004-01-13 22:49:11 +00:00
Ton Roosendaal
6727eb6104 restored old clipping plane method.
Justin will come with separate option to choose for 'automatic clipping', not
based on the vd->dist value, but something smarter... needs more work.
2004-01-13 22:45:44 +00:00
Roel Spruit
7e3c4dd0bb Justin improved clipping at extreme zoomlevels. when you were fully zoomed in you couldn't see all the geometry (correctly). 2004-01-13 20:55:59 +00:00
Alejandro Conty Estevez
4712655080 Global photons export for yafray. Square arealights, spot and point can work
as emitters. Needs latest yafray code, still not in cvs.
2004-01-13 16:51:35 +00:00
Ton Roosendaal
4c718d49cd - commented out drawing of file->import item in pulldown menu, it is
empty now
2004-01-13 15:51:50 +00:00
Rob Haarsma
4a8f52f619 Converted the Userpreference buttons to zr's new ButBit calls.
Also added USER_*  to each define located in DNA_userdef.h.
2004-01-13 14:50:45 +00:00
Robert Wenzlaff
d74da9789a - Fixed metaball boundingbox bug. tex_space_mball() only fills in
ob->bb, not data->bb, like tex_space_mesh() and tex_space_curve().
	Reported by Jiri Hnidek.
2004-01-13 00:45:01 +00:00
Matt Ebb
9151dc031a * Added the 'U' hotkey in the Unwrap UVs view3d menu item. Thanks very much for the fix, Ton!
* Fixed a small bug in the toolbox (editmode transformations)
2004-01-13 00:35:11 +00:00
Ton Roosendaal
3805cf23f5 - fix for calling 'unwrap UV' from faceselect view3d pulldown. it needed
a 'winset' to activate window, otherwise header still active
- removed 'size' button from Magic texture, was accidentally added
2004-01-12 16:51:33 +00:00
Alejandro Conty Estevez
501adfba42 Yafray panel splitted in two so we can add more settings.
Also preliminar square arealight export, not usable yet, will be usefull
as soon as photon export is added.
2004-01-12 16:46:47 +00:00
Robert Wenzlaff
3ed49f3299 -Attempted fix for flipped normal. Solves "No V. Norm flip" problem,
but I doubt it's the whole solution.
2004-01-12 14:42:43 +00:00
Matt Ebb
27e45078c5 Another small fix to some toolbox titles that I missed before. Woops! :/ 2004-01-12 13:48:26 +00:00
Matt Ebb
fa1d682f6f Fixed a couple of small typos in curve menus/toolbox.
Forgot to mention in the last big commit, thanks to William Reynish for reporting/proposing some missing menu items and nagging me to fix them :)
2004-01-12 13:42:16 +00:00
Matt Ebb
708494ae26 Most people will have it collapsed away anyway, but...
* Changed the menu name in buttons panels from 'View' to 'Panels'. Two 'View' menus stacked above each other just looked dumb :)
2004-01-12 13:35:37 +00:00
Matt Ebb
9de93ac9dc * Big menus update
Hard to describe other than by saying:

* Updates, re-thought organisation, etc based on testing
and feedback from 2.30 -> 2.31
* A *lot* of missing entries added
* Toolbox expanded, tidied and more consistent with
 pulldown menus
* A lot of functionality hidden behind secondary pupmenu()s is now exposed through arguments, so that
they can be more easily explored from the pulldowns and
toolbox.

This is the reason for the many changed files in this
commit - had to clean up editing functions. Mixing
interface code in the middle of editing functionality is not
good for menus and toolboxes. Please don't do it!

At this stage, the menu and toolbox system (at least for most window spaces) should be just about 'stable' and 'complete'. It's now up to people to keep them up to date :)
2004-01-12 13:30:00 +00:00
Martin Poirier
e40eaa4d47 Mirror function: Moved push_mesh to functionality function, to truely split functionality and interface. Thanks to broken for spotting that. 2004-01-12 02:46:14 +00:00
Chris Want
3d07196b74 Better pose figuring: fix for the "blender's bone constraints don't work
in pose mode when you merely move the parent of a constraint subtarget"
bug.
2004-01-12 00:53:23 +00:00
Ton Roosendaal
8a0317c8f1 Historical commit... error found in DNA code! <blush>
It is just too hard to describe, just that it didnt check for changing
arrays well enough, causing contents of array textfield[] to be copied in
array text[]....

Anyhoo, this fixes the grey text, as showed up in brokens commit of
saturday. Thanks Matt! :)
2004-01-12 00:15:21 +00:00
Ton Roosendaal
fac8a7027d - fix for cubemap, rendered without render face available.
currently only for preview render and displaylist. It then uses the
  provided texture coordinate itself...
  Solution is not perfect... disadvantage of not having globals! then
  you have to fix all mess! :)
2004-01-11 22:15:24 +00:00
Ton Roosendaal
63f1e17fe5 - tex->nor was not reset to zero for lamp texture. this caused weird thing
to happen when you use lamp textures with material textures.
  Bug provided by aphex, thanks!
2004-01-11 20:58:12 +00:00
Robert Wenzlaff
1b233917ad - Normalized normal vector after perterbing normals to stop
artifacts in displace preview.
2004-01-11 19:53:20 +00:00
Roel Spruit
3f98fc4d61 Clean up of edge select code. found some useless loops.. 2004-01-11 17:12:39 +00:00
Robert Wenzlaff
d0fd7d2fea - Potential future bug in simple subsurf (used & when should be ==).
- out of date comment in Displace code.
2004-01-11 16:20:49 +00:00
Martin Poirier
73529471e7 Fixed headerprint for wrap transform. It wasn't consistent with the rest. 2004-01-11 15:48:32 +00:00
Rob Haarsma
982e299fcf Applied Daniel Fairhead's correction for a correct functioning DELKEY in text input buttons.
(thanks again !)
2004-01-11 11:56:08 +00:00
Robert Wenzlaff
bbe7d8d08e - Better fake for displace preview. 2004-01-11 00:39:17 +00:00
Robert Wenzlaff
3406d3a939 - Displacement now allows use of either Var or Nor slider. Nor uses
texture's Nor channel, Var uses intensity channel.
2004-01-10 23:00:52 +00:00
Roel Spruit
94e93c3782 Bugfix: [ #857 ] Select/Desel vertex groups doesn't update vertex count in headerbar 2004-01-10 20:52:59 +00:00
Roel Spruit
594f1d1101 Bugfix: [ #840 ] ALT-M causes memory leak 2004-01-10 20:26:38 +00:00
Robert Wenzlaff
f1c082da50 - Added ""fake" preview for displacement. Preview does not
use renderfaces so real preview will have to wait for preview
	  overhaul.
2004-01-10 18:49:11 +00:00
Alejandro Conty Estevez
d21cf447ab Fixed unresolved symbol bprogname under win32 2004-01-10 14:14:14 +00:00
Roel Spruit
576284038d added bmp.c and the new yafray files to the MSVC projectfiles 2004-01-10 13:42:35 +00:00
Matt Ebb
589ef22aef * Fixed a silly problem when changing the colours of the 'Neutral' button theme entry (which changed both the outline of buttons and various other grey buttons). Added a new theme colour 'Outline' and left 'Neutral' to remain, well, neutral.
Thanks Desoto for the report.
2004-01-10 13:41:03 +00:00
Ton Roosendaal
b5071f367d Improved method to calculate normals for procedural textures such as
Marble, wood, clouds. Instead of the retarded (but faster :) old method
it now derives the normal based on displacement of a 'nabla' vector;
sampling the texture additionally with three little offsets in x, y and z.

Code provided by Eeshlo, and gratefully accepted!
2004-01-10 12:41:47 +00:00
Matt Ebb
9d78e1164b * Added butspace and sound menus. That's all of them now, phew.
* Very small tweaks to Sequence and Ipo menus
2004-01-10 11:19:05 +00:00
Robert Wenzlaff
6a9d29d1db -Changed "Simple" button to pulldown menu or subsurf type.
Paves way for additional subsurf types, and avoids confusion
	where Simple is on, but Subsurf is off.
2004-01-10 01:22:07 +00:00
Kent Mein
e3080c9580 Added support for outputting bmp's
The padding is slightly messed up, so it produces somewhat trunkcated images
however it works.  I'll try and fix it later but I have to go home now.
Its atleast usable at this stage.

I moved bmp_decode.c to bmp.c and cleaned it up a little bit.

Kent
2004-01-09 22:04:08 +00:00