Commit Graph

692 Commits

Author SHA1 Message Date
Ton Roosendaal
336afad8d6 - added little original feature to panels: TABS! :)
while dragging you can merge panels, or while dragging on a tab you
  can unmerge them.
2003-10-05 13:19:08 +00:00
Michel Selten
e33e4addeb Referenced a wrong variable. Stupid typo. 2003-10-05 11:23:49 +00:00
Michel Selten
d626f03962 * Made internals of the Python Object module more consistent with other
modules.
* .setLocation(), .setDeltaLocation() and .setEuler() now can accept 3 floats
  or a list of 3 floats.
  This finally makes the following possible:
    obj.setLocation (obj.getLocation())
    obj.loc = obj.loc
  Of course this applies to the other functions as well.
2003-10-05 11:17:14 +00:00
Ton Roosendaal
084e5eedd3 - added winstuff.h in new files... oops! 2003-10-04 21:24:32 +00:00
Ton Roosendaal
13b7e74ddb - panels now scroll with page-up and page-down too. 2003-10-04 21:03:57 +00:00
Ton Roosendaal
842bb449c5 huge commit, sorry!
this is part 1 of the UI makeover. It has:
- menu system from Matt integrated
- buttons drawing from Matt
- generic button panel system implemented
- converted displaybuttons (not the rest yet)
- cleaned up a lot in drawing spaces itself, to make it aligned and pixel exact.
- cleaned loads of little compiler warnings, protos...

still a lot of work needed, will all be in next week i hope!

(warn: 2 new c files! butspace.c and buttons_scene.c)
2003-10-04 20:35:50 +00:00
Kent Mein
c355aa06a8 fixed default vars button for texture plugins
http://projects.blender.org/tracker/index.php?func=detail&aid=546&group_id=9&atid=125

Kent
2003-10-02 20:56:09 +00:00
Ton Roosendaal
ae17f63be8 - changed a couple of shorts to ints, to allow images larger than
8192 pixels.
  I dont have a lot of mem here though, so others should test too!
2003-10-02 10:05:57 +00:00
Alexander Ewering
b843c8a0ea "Set Camera to View3d": SHIFT-NUMPAD0 selects the camera like NUMPAD0, and
in addition aligns and positions it so that it exactly "sees" the former
View3d.
2003-09-27 11:10:49 +00:00
Ton Roosendaal
3cf1cacd5d - Bug fixes for radio render (yes, releasing gives more reports!)
1. Rendering with material without radio flag sometimes caused scanline
   errors. The 'rad' value for rendercore loop wasn't reset in all cases
2. The color didn't truely match the color when using 'radio tool'.
   Cleaned up a few old lines in rendercore loop... accidentally one
   calculation was done double.
3. When adding new radiosity block, 'max iterations' is set at 120. this
   prevents noobies/experiment from going into radio-solving with a long
   itteration time (it exits at convergence < 0.1)
2003-09-27 09:38:09 +00:00
Alexander Ewering
0dce5a6fbe Fixed a bug that prevented volume envelopes from being applied to the
Mixdown WAV. Thanks dittohead for the report!
2003-09-24 22:34:13 +00:00
Alexander Ewering
8fdb574e83 Bugfix: The renderloop has a few problems concerning abortion with the ESC
key, among which is a crash related to lensflares rendering even though no
render buffer exists (after pressing ESC). Fixed this one. Be sure there
are more! :)
2003-09-24 21:21:29 +00:00
Ton Roosendaal
d2b8f49675 - splashcreen for 2.28c 2003-09-24 12:30:09 +00:00
Ton Roosendaal
8a11c13f30 - hacked new color for this release, named it 2.28a in header. 2003-09-23 22:07:07 +00:00
Ton Roosendaal
a5114211ce - buttons align 1 pixel better!
(also forgot in last commit; this envmap work was mostly from Intrr. :)

cvs: ----------------------------------------------------------------------
2003-09-23 21:45:12 +00:00
Hans Lambermont
482cb5e7a8 FreeBSD-STABLE's python moved from 2.2 to 2.3 2003-09-23 21:12:47 +00:00
Ton Roosendaal
d8955d1b33 - Recursive environment map render
Multiple environments now can be rendered in one pass. Previously the other objects with environment maps didn't show up in a reflection. Like this:
http://www.blender.org/bf/dep.jpg

By default, Blender renders now this result:
http://www.blender.org/bf/dep0.jpg

For a further 'recursive ray-tracing effect' you can give each EnvMap texture a higher "Depth" value. Here is a result with depth set at '2':
http://www.blender.org/bf/dep2.jpg

Related new options:
- in (F10) DisplayButtons, environment map rendering can be turned on and off.
- in EnvMap texture buttons you can free all environment maps
- Environment map sizes are also reduced with the (F10) 'percentage' option.

Tech note: with this commit the VlakRen struct has on *ob pointer!
2003-09-23 21:05:51 +00:00
Willian Padovani Germano
63e7c3e077 Exppython:
- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
2003-09-23 03:02:54 +00:00
Ton Roosendaal
d72fe1af41 - fixed stringlength for plugin path button, max 160 chars now. 2003-09-22 11:44:36 +00:00
Roel Spruit
b5450f0815 added 2 new features:
- "Seperate loose parts" is an option in the new pkey popup (in mesh editmode) that seperates a mesh based on objects in it that are not connected.

- "Select same uv" is an option in the wkey popup (in facemode) that selects all faces in the mesh that have the same uv texture assigned as the current active face.

ps. first commit! I hope I can live up to expectations...but don't expect too much! :D
2003-09-20 20:58:14 +00:00
Willian Padovani Germano
c0303d78b4 Exppython:
- Object: implemented getBoundBox and makeDisplayList methods
- NMesh and Object: small internal changes for nicer behavior
- Draw: added function PupMenu
- Docs: updated for the additions above
Auto build tiny fix: added the imbuf include dir to source/creator/Makefile.am
2003-09-20 03:40:16 +00:00
Rob Haarsma
7a510b7240 added missing #ifdef for quicktime_exit 2003-09-18 12:27:43 +00:00
Rob Haarsma
99efb0cc3c removed native quicktime init/exit calls from main blender code. 2003-09-18 11:41:50 +00:00
Willian Padovani Germano
775f006bf1 Exppython:
- Window: implemented .SetCursorPos, .GetViewMatrix, .GetViewVector
- Lamp: .setDist was not in the methods table:
    Fix by new bpython developer Stephen Swaney
- Scene: .frameSettings was crashing Blender (pointed by jms)
- Added site dirs to sys.path (patch by Stephen Swaney)
- NMesh: small internal change (added pointer to parent object)
- Object: function NMesh_FromPyObject has a new arg: pointer to obj
- Docs: added docs for implemented functions, plus some more info
2003-09-18 00:54:43 +00:00
Michel Selten
da773eee18 * Fix bug in Object.getEuler() and Object.setEuler() methods
I must have been looking outside when writing those functions :) They
  accessed the dloc values instead of the loc values. Doh
* Minor cleanup in Object.h
2003-09-17 18:15:51 +00:00
Ton Roosendaal
86409f2da6 - bug #500
extreme wide spotbundles cannot be rendered correctly (180 degrees).
  the bundle value is clipped at 170 degree in renderconverter.
2003-09-17 11:39:55 +00:00
Ton Roosendaal
de2b6cc89f - fix bug 496
when you choose a window with no header, go to 'full window mode',
  sometimes the header was still drawn. fixed it with a more strict
  test in the drawing call.
2003-09-17 11:22:21 +00:00
Ton Roosendaal
bcd01942d8 - bugfix #492
"Waste cpu while rotating view"
  I added a tiny idle in the 'wait_for_statechanged' call, I suspect
  ghostwinlay returns events while holding mousebutton...
2003-09-17 11:05:33 +00:00
Ton Roosendaal
c01d06df3c - fixed display of dashed helpline, when rotating multiple objects or
around the 3d cursor.
  fix only works for OSX and certain nvidia cards. they need a glFinish()
  call after drawing in frontbuffer.
2003-09-17 10:23:53 +00:00
Alexander Ewering
c397e66bed On popular request, I made the "Sync" button (correct realtime
synchronization (framedrop) in ALT-A and synchronization to audio strips)
off by default when loading old .blend files or old ~/.B.blends.

This, however, makes the audio sequencer unusable by default, ALT-A will
not show realtime on complex scenes, and the "Frs/sec" value will be
ignored.
2003-09-11 19:08:45 +00:00
Jacques Guignot
dd2551661a removed an useful #include which caused a compilation error 2003-09-10 19:47:05 +00:00
Alexander Ewering
8780ef0975 The "extrude" operation now automatically sets newly created faces "smooth",
based on the assumption that if any of the faces attached to any of the
edges that have been extruded were "smooth", the result should also be.
(There is no other way to detect this, as edges don't have a "smooth" flag :-))
2003-09-10 16:26:21 +00:00
Alexander Ewering
4646b046b6 Finally, the "Emulate 3 buttons" button in the userprefs actually
*does* turn ALT-LEFTMOUSE emulation on and off :)
2003-09-10 02:46:22 +00:00
Rob Haarsma
422f4faa1b moved Quicktime init function from creator.c 2003-09-09 21:26:34 +00:00
Jiri Hnidek
5572323a3a - added czech translation (cs.po)
- changed function drawcircball() in source/blender/src/drawobject.c. Circle is computed faster (no 32 calls of sin() and cos() each time witch same results).
2003-09-08 12:13:54 +00:00
Jiri Hnidek
5d2f98f440 - improved polygonization (linear interpolation) of Implicit Surfaces (Meta)
- added new MetaElem types (plane, elipsoid and cube) old TubeX, TubeY and TubeZ will not be supported
- new buttons in Edit button window (dx, dy, dz)
- added new items into the headers menu and toolbox menu

more details at: http://blender.webpark.cz
2003-09-05 13:54:22 +00:00
Willian Padovani Germano
a09e5a7f2f Exppython:
- Window: added .GetCursorPos()
- Lamp: updated for NoDiffuse and NoSpecular modes
- Registry: new module to handle persistent data
- vector: made it correctly print only 3 values when vec->size==3:
    Fixes nmvert coords printed with a 4th 0.0 coordinate
- Text: fixed crash on startup (Python 2.3, linux):
    added definition of the Text pyobject earlier, in Types.c
2003-09-03 04:13:08 +00:00
Willian Padovani Germano
65746ab10a Exppython:
- Updated two doc files
2003-09-03 04:04:17 +00:00
Jacques Guignot
bb824b08b7 function PyArgsParse changed for PyArgsParseTuple by Stephen ( not so that sure...) 2003-09-02 20:13:43 +00:00
Jacques Guignot
679a44d2c6 Modification of the GetControlPoint function by Stephen, who is now responsible for this module
slight bug fixes (Steph.)
2003-09-02 20:11:11 +00:00
Ton Roosendaal
bdaa5eaad6 - fixed crash when you render a scene without emit Material and
new Radio render on.
  crash happened after redraw in 3d window.
2003-09-02 19:32:48 +00:00
Ton Roosendaal
470b5c0366 So, for the platform managers to check:
- the link order for Blender has changed, the libradiosity.a has to be moved after the librender.a (obviously for a new dependency!). Check blender/source/Makefile
- there's a new file: blender/source/radiosity/intern/source/radrender.c

Here's what the new code does:

Using the core routines of the Radiosity tool, each renderface with 'emit material' and each renderface with 'radio material flag' set will be used to itterate to a global illumination solution. Per face with high energy (emit) little images are rendered (hemicubes) which makes up lookup tables to 'shoot' its energy to other faces.
In the end this energy - color - then is directly added to the pixel colors while rendering, Gouraud shaded.
Since it's done with renderfaces, it works for all primitives in Blender.

What is doesn't do yet:
- take into account textured color of faces. Currently it uses the material RGB color for filtering distributed energy.
- do some smart pre-subdividing. I don't know yet if this is useful... Right now it means that you'll have to balance the models yourself, to deliver small faces where you want a high accuracy for shadowing.
- unified render (is at my todo list)

User notes:
- per Material you want to have included in radiosity render: set the 'radio' flag. For newly added Materials it is ON by default now.
- the Ambient slider in Material controls the amount of radiosity color.
- for enabling radiosity rendering, set the F10 "Radio" button.
- the Radiosity buttons now only show the relevant radiosity rendering options. Pressing "collect meshes" will show all buttons again.
- for meshes, the faces who use Radio material always call the 'autosmooth' routine, this to make sure sharp angles (like corners in a room) do not have shared vertices. For some smooth models (like the raptor example) you might increase the standard smoothing angle from 30 to 45 degree.

Technical notes:
- I had to expand the renderface and rendervertices for it... shame on me! Faces have one pointer extra, render vertices four floats...
- The size of the hemicubes is now based at the boundbox of the entire scene (0.002 of it). This should be more reliable... to be done
- I fixed a bug in radiosity render, where sometimes backfaces where lit

In general:
I'd like everyone to play a bit with this system. It's not easy to get good results with it. A simple "hit and go" isn't there... maybe some good suggestions?
2003-08-31 20:33:46 +00:00
Michel Selten
b64b5d7b63 * Fix crash when linking something illegal to an Object.
Pointed out and fixed by Stephen Swaney
2003-08-27 18:10:59 +00:00
Chris Want
b92e99d0a8 In ODE, a dVector3 is really a 4D array ... the 3D initialization
used in this file caused the MipsPro 7.4 compiler to choke
... please test on all platforms!
2003-08-23 19:09:52 +00:00
Ton Roosendaal
25268cbf3b - Bisschofftep's improvements of tooltips text.
in editmesh three error menus were made more clear.
2003-08-21 12:49:28 +00:00
Ton Roosendaal
2e39d1f137 - a control-s character accidentally inserted here... but how? 2003-08-17 17:59:03 +00:00
Alexander Ewering
4005e5859a - Duplicated both the "Sync" button (from Sound buttons) and the "Frs/Sec"
button (from the Render buttons) in the Anim Buttons (F7) for more
  clarity.

- Removed old 'AnimSpeed' option
2003-08-17 16:00:37 +00:00
Ton Roosendaal
0b2d2868f1 - fixed bug #448
now 'only shadow' lamps won't give light when rendering without shadows.
2003-08-17 15:57:12 +00:00
Ton Roosendaal
af395ada12 - fix bug #479
crash when deleting all curves from Curve Object, when EditButtons open.
  Bad memory reference, caused by using an unsupported feature in
  interface.c... fixed by not using that feature! (making buttons with NULL
  pointers)
2003-08-17 13:42:50 +00:00
Ton Roosendaal
3a6581ca22 - fix bug #480
SHIFT+C in 3dWindow didnt update the other 3d windows, when open.
2003-08-17 13:02:17 +00:00