Commit Graph

5864 Commits

Author SHA1 Message Date
Ton Roosendaal
a416ec8978 Render window: Jkey (swap display buffers) works as 2.41 again. Meaning,
it keeps storing a previous buffer for as long you don't render showing
this previous buffer.
If you render showing the previous buffer, it stores the current render.

To make this more clear, the window title shows "previous" when it shows
the stored copy.
2006-05-29 08:40:01 +00:00
Geoffrey Bantle
6387c85557 -> UV Edge collapse
Added code to make 'Collapse Edges' handle UV's intelligently. This seems to work in just about every case that I can test, so it's turned on by default.

Also completely removed the 'collapse faces' command and code. I'm not sure what I was thinking with this in the first place since edge collapse does the same job while in in face mode. Because of this there is now just one single command that covers both situations called 'Collapse' which uses the edge collapse code.
2006-05-29 05:17:38 +00:00
Ken Hughes
d7a21ed220 ===Python API===
First pass at sceneRender.c / Scene.Render API clean-up.  Mainly implementing
attribute via tp_getset, but a few new features too.
2006-05-29 05:01:07 +00:00
Alfredo de Greef
649dcd94bb Yafray 'should' now work again. A bit more testing needed.
But seems to work sofar anyway, composit nodes should work as well.
2006-05-29 03:59:12 +00:00
Ken Hughes
7b1d6021a4 ===Python API===
Fix typo in Mesh.py epydoc.
2006-05-29 03:52:38 +00:00
Chris Burt
b3c1a72c34 Fixed height of two buttons.
(Test commit for my ssh keys and what-not)
2006-05-28 17:45:57 +00:00
Chris Burt
db8db2ee0c Additions to stubs.c to make blenderplayer compile.
I would appreciate if someone who knows more about this could check it.

Thanks!
2006-05-28 17:29:50 +00:00
Joilnen Leite
c4abb5e7ca a little clean of no used line
.
2006-05-28 17:17:18 +00:00
Peter Schlaile
82ffa15c28 ==Sequencer==
Bugfix: The "Convert to Premul"-Button was drawn twice for Images...
2006-05-28 12:33:41 +00:00
Ton Roosendaal
eda218ecb4 Step one in bringing back Yafray Render in Blender. Need someone else
to take over now, but I'm available for help. Main notes for completing:

- Yafray module uses old global R all over... is now a pointer handle.
  It can be temporally bypassed by straight copying, which I do now.

- I am not sure in what pixel format Yafray renders... Blender now only
  uses float buffers. In the code, marked with XXX I've added the
  rudimentary code for retrieving buffers.

- This integration will skip compositing when Yafray render is used.
2006-05-28 12:30:09 +00:00
Ton Roosendaal
2e901061d9 More render pipeline finishing up;
- Shaded drawmode is back (shift+z).
  Note it still only uses orco texture; but lighting/shading is using
  the internal render module entirely.

- "Make Sticky" option back.
  (Also fix in sticky texture render, was wrong scaled)
2006-05-28 11:49:22 +00:00
Ken Hughes
8a8400ff28 ===Python API===
Added to Mesh API me.sel and me.hide, which set/clear the selection and
hidden values for all verts/edges/faces in a mesh.
2006-05-28 00:39:13 +00:00
Ken Hughes
6ebdfbfc85 ===Python API===
Fixed epydoc summaries for mesh.vert.index and mesh.vert.uvco so they say
something useful other than "(MVert Only)".
2006-05-27 23:31:13 +00:00
Ton Roosendaal
638bae4db4 Bugfix in last commit; preview renders didn't work render properly, parts
of tiles were black sometimes.
2006-05-27 17:05:03 +00:00
Ken Hughes
0fab573205 ===Python API===
Bugfix: epydocs for World API incorrectly described settings for getMode(),
setMode() methods.
2006-05-27 16:40:00 +00:00
Ken Hughes
755f5ce070 Fix spelling error in tooltop. 2006-05-27 15:54:17 +00:00
Ton Roosendaal
e5b39b69d1 So! Finally time to work on finishing render pipeline project.
This commit brings back:

- Field Render
- MBlur Render (old style)
- Border render with or without cropping

Note: Field Render is not supported in Compositor yet. Blurring or filter
will destroy field information.
Both MotionBlur as Field render are done before Compositing happens.

Fixes:

- The "Save Buffers" option only worked on single frame renders, not for
  Anim render.
- Found an un-initalized variable in Render initialize... this might have
  caused the unknown random crashes with render.

Code restructure:

Cleaned up names and calls throughout the pipeline, more clearly telling
what goes on in functions.
This is visible in the updated first image of the Wiki doc:
http://mediawiki.blender.org/index.php/BlenderDev/RenderPipeline
2006-05-27 13:35:03 +00:00
Joseph Gilbert
dee16b9e3d * bug fix
[ #4228 ] Blender.Image.Load(filename) loads only on the first loading
- Image.Load() will now reload the image buffer when a image of the same name is loaded again
- small textual change in render code
2006-05-26 15:28:04 +00:00
Alexander Ewering
b4861110da Slight simplification of windowtype_pup()... 2006-05-25 22:00:12 +00:00
Joseph Gilbert
2132bbb621 *python fix
- save_rendered_image_cb_real has a popup window embedded in it that prevents automation through python as a result python scripts would get a popup which is ignorned by the script
- modified so python scripts overwrite the image by default
2006-05-25 21:34:00 +00:00
Joseph Gilbert
2a6952f386 - bug fix
* C uses braces unlike python :/
2006-05-25 21:13:13 +00:00
Joseph Gilbert
1b577b7f0d *python documention & bug fix
- added documentation to Render - saveRenderedImage has an option to save the zbuffer along with the image
(off by default)
- fixed a really annoying runtime error of uninitialized data being passed to a method in pipeline.c during a render
2006-05-25 21:10:28 +00:00
Joseph Gilbert
af87c651a5 *python fix
- fixed Render.saveRenderedImage() so now it works once again
(it was broken since render refactor)
2006-05-25 20:47:17 +00:00
Joseph Gilbert
d8d720ed3a * update for projectfiles vc7
- added python files
- fixed a small C coding error in vpaint preventing windows builds
2006-05-25 19:18:04 +00:00
Ken Hughes
da31dfe603 Remove dead code in add_primitiveMesh(), left after UV Sphere was made
to aligns with view.
2006-05-25 18:28:51 +00:00
Ken Hughes
8fb3373a78 ===Python API===
Ok, now let's try making the Mesh Primitives documentation accessible.
2006-05-25 17:00:17 +00:00
Ken Hughes
48033e00c4 ===Python API===
Fulfilling a very old feature request: a new Mesh Primitives module is
introduced, which gives script writers access to the Blender mesh datablocks
created from the "Add->Mesh" menu.  You can now do this:

  from Blender import *

  me = Mesh.Primitives.UVsphere(10,20,3) # 10 segments, 20 rings, diameter 3
  ob = Object.New('Mesh','mySphere')
  ob.link(me)
  sc = Scene.GetCurrent()
  sc.link(ob)
2006-05-25 16:45:24 +00:00
Jiri Hnidek
1b2d9b5ade Bugfix:
Ubuntu users can set up locales again (propably some other linux distros
 had same problem)
2006-05-25 15:36:38 +00:00
Campbell Barton
9659cdda80 fix a bug in vpaint when changing scenes,
ob= OBACT;
if (!ob->id.lib) return;

Doset account for OBACT being null, this probably exists in other ares too.
2006-05-25 14:24:22 +00:00
Erwin Coumans
46a98446a4 added a stub for multitex_ext, returning the year I was born ;-) 2006-05-25 14:18:48 +00:00
Ton Roosendaal
44806b034b Plumiferos fix: Material option "Env" did not mask out Ztransp faces in OSA 2006-05-24 18:26:54 +00:00
Ton Roosendaal
9c4f7c1032 Plumiferos fix; having more than 64 Shape Keys didn't allow the channels in
IpoWindow to select.
2006-05-24 17:15:26 +00:00
Ton Roosendaal
b67eac2cfd Removed annoying debug print that checked preview render size while doing
previews in Nodes.
2006-05-24 12:10:28 +00:00
Ton Roosendaal
12a6cd486f Bugfix #4213
Using "Fresnel" for transparency only worked when material had "ZTransp"
set. That's not a real problem, but it made Fresnel not work for Materials
used in Nodes.
Now a Fresnel on alpha works always.
2006-05-24 12:07:54 +00:00
Ton Roosendaal
7198a6cf66 Bugfix #4211
"Copy Modifiers" (CTRL+C) only copied a single modifer, when a specific
type was choosen. Now it copies all modifiers with indicated type.
(Like: when you have a X, Y, Z mirror modifier).
2006-05-23 17:49:21 +00:00
Alexander Ewering
2114b63d32 Fix underlining for text objects to use correct material index (and prevent
renderer from crashing).
2006-05-23 15:11:08 +00:00
Ton Roosendaal
e5791fb40e Bugfix #4214
Dependency order issue: Camera view was calculated before Camera Object
got evaluated for dependency changes, causing lags.
2006-05-23 14:57:40 +00:00
Ton Roosendaal
ebe2958559 Bugfix #4212
Material Nodes: The Texture node didn't do the standard "2d mapping" yet
in case an Image Texture is used. Caused wrong mapping for example for UV
coordinate inputs.
2006-05-23 14:15:07 +00:00
Stephen Swaney
8aeaf82a67 set locale to POSIX so regex works on platforms that set funny
locales.  needed to make "ls [A-Z]*.py" work properly.
Setting LC_ALL=C may be a better choice than LC_ALL=POSIX.
We shall see.
2006-05-23 02:27:22 +00:00
Erwin Coumans
ab71e2a9b5 -added basic support for GameActuator 'load game', relative paths were broken, just load file into memory and load blend from memory.
-near sensor support
- python binding for PhysicsConstraints.setNumTimeSubSteps (dividing the physics timestep to tradeoff quality for performance)
2006-05-22 21:03:43 +00:00
Ken Hughes
677cf7f133 ===Python API===
Adding support for Action Strips to the API.  A new attribute "actionStrips"
has been added to the Object API to access them.
2006-05-22 14:19:52 +00:00
Matt Ebb
a849ba8189 * Disabled the Shift-Space window maximise shortcut while within text object edit mode 2006-05-22 07:07:19 +00:00
Matt Ebb
7706d2e40f * Made the editmode text cursor draw inverted, so you can actually see where it is on a black background 2006-05-22 05:52:48 +00:00
Martin Poirier
f849384fcd === Python API ===
Fixes for the bug introduced by my other commit the other day.

Blender.Draw.Create now does proper error checking.
2006-05-22 01:59:28 +00:00
Joseph Gilbert
58648f0ed2 python documentation update 2006-05-21 21:04:21 +00:00
Joseph Gilbert
023737daa4 *python additions
- added a method Action.getFrameNumbers()
returns the frames at which keyframes were inserted for this action

example usage:
import Blender

myobj = Blender.Object.Get('Armature')
myaction = myobj.getAction()
frames = myaction.getFrameNumbers()

for frame in frames:
	print 'bones at frame %d' % frame
	myobj.evaluatePose(frame)
	pose = myobj.getPose()
	for bone in pose.bones.values():
		print bone.head, bone.tail
2006-05-21 21:02:29 +00:00
Ton Roosendaal
f13d63ca48 Brought back the Scene strip in Sequencer. Even does a full composite with
only images input in compositor. Currently still renders in the scene's
own resolution. It also doesn't show scanline/tile updates yet while
rendering.
2006-05-21 20:59:54 +00:00
Campbell Barton
33c0ebbc8e Intergrated select group editmode into the menus and re-shuffled the Mesh tool buttons to fit a threshold value in.
also changed the way areas/perimeter and lengths are compared so it will be indipendant of scale.
2006-05-21 17:12:10 +00:00
Peter Schlaile
2f4b5dbab2 ==FFMPEG==
Bugfix: Don't draw mux_rate and max_rate output buttons on the same
screen position. (Never noticed, always used presets... )
2006-05-21 14:32:05 +00:00
Peter Schlaile
3874f7cd97 ==FFMPEG==
Bugfixes: If we got problems on open, don't close a codec context, that
was never created. (read: don't dump core ;-)
2006-05-21 12:20:45 +00:00