Commit Graph

3872 Commits

Author SHA1 Message Date
bb9cafc257 Bugfix #4557
Report noted the slow icon renders for menus, which indeed is an issue,
especially when texture images need to be loaded (not to mention that
will eat up loads of memory).

Added a flag in scene to disable loading of images, makes it 50 times
faster, at least :)
2006-07-02 18:26:20 +00:00
7b07fcca91 Bugfix #4564
Environment mapping on channel "Mirror color" didn't support stencilling.
2006-07-02 10:42:29 +00:00
9f6f44938e Bugfix #4562
Another thread render issue, now in Image texture, the 'repeat' value was
still a global... how did I think that would ever work? Just forgot about
that one I guess. :)
2006-07-02 10:30:48 +00:00
9467a55d1a Fix: While checking on render stats timer, I found there was already stats
reserved for field and blur steps, but never used or printed.
2006-07-02 08:31:54 +00:00
fc1becdcd2 bug #4559
Render timers were called in the internal render loops (tile processor),
they still had to be moved to the outer loop, so they include fields/blur
or sequencer render timing correctly.
2006-07-02 08:15:16 +00:00
0cbb917e60 Bugfix #4558
Thread render error: a flag was stored in read-only data to indicate
whether top or bottom hemisphere of sky was rendered. That can't work
with tiles (but did work when scanlines were threads).
2006-07-02 07:59:42 +00:00
6a5f637338 Hooray! Finally found the dreaded "Opengl crash" the poor orange team
suffered for the entire movie. :)

It only happened when rendering large frames, using a lot of memory and
typically when you also use other software in meantime.

Reason: the main thread does the drawing updating, while rendering is
still continuing. When using Ztransp, there was a free buffer done
when possibly a draw could still be in progress. Only crashed when drawing
is slow... explaining why it only showed up in more complex cases.
2006-06-30 14:21:25 +00:00
c0e26bd3c0 Bugfix, IRC report:
Render option "Key Alpha" did not work yet.
2006-06-29 17:22:29 +00:00
e5d4c789a1 Bugfix #4535
A proper check for the error "No Camera" on rendering can only be made
after a renderwindow was initialized. The error menu then shows in the
render window, which appears to not work OK in windows ATI (again!).

So; I've moved the test to before the renderwindow is activated, this is
not a test checking on the entire render pipeline (like Composite nodes or
sequence strips). In case more complex setups cannot render, an error is
printed in the console only.
2006-06-29 10:48:30 +00:00
a3e49a23d7 Hurmf, the previous commit to solve proper 3D preview re-renders broke how
buttons preview work. :)

The initialize of the variable should be in the initialize code, not in the
freeing code, tsk tsk!
2006-06-28 14:14:52 +00:00
9ecffb4314 Campbell report:
Not clearing the value for 'parts rendered' caused 3d previewrender to
sometimes fail doing updates (when an escape happens during converting
render data).
2006-06-28 12:53:57 +00:00
c93176260a Bugfix #4446
Wire render crashes in Linux (only!), but why? Using a calloc instead of
malloc fixes it, but that doesn't solve the real issue in the code.

I can only imagine that bsearch() in linux has a completely different
implementation...

Anyhoo; let's commit the calloc, at least then we got stable wire render!
2006-06-27 13:13:49 +00:00
8d2f04ac74 Bugfix #4495
Another old only-shadow material error: spot lights with ray-shadow still
calculated shadow on faces that were pointing away from the lamp.
2006-06-27 12:01:33 +00:00
f7c9c99877 Bugfixes from own collection:
- when renderwin exists, but not used for render, the ESC timer check still
  could return ESC event, due to missing flag clearing.
  (For example in sequencer, a scene strip did not update on frame advance)

- option 'single layer' set in combination with render "Do Sequence" didn't
  free the pushed layers.
2006-06-27 09:48:54 +00:00
2670797e8a Plumiferos report:
The new Material "LightGroups" only worked with lamps in visible layers.
Now also lamps from the group that are not visible are included for
rendering, ensuring that a lightgroup always works on that material,
disregarding layer settings (unless lamp is type 'layer lamp').
2006-06-26 17:50:48 +00:00
a6d6a35d3c Bugs #4488 and #4431
Sequencer:
Removing feature that allowed live updates of render progress while using
scene strips. In 2.41 and older this also happens invisible, and ESC from
it works now anyway.

Two reasons:
- it is quite annoying, especially on quit renders
- new 'render to window' conflicts too much with the sequencer window
  option that shows previews (in code as well as functional!)
2006-06-26 14:57:56 +00:00
d6e7eb27ed == Frameserver ==
Set SO_REUSEADDR on server-socket, since otherwise, frameserver will barf on
second start.
2006-06-26 13:22:55 +00:00
dbc7dbb2b9 Bugfix #4457
When faces (like in cubes) have exactly 90 degrees angles with other
faces, the check for a vertex-normal flip became random, caused by the
infamous bad floating point resolution.
Solved with including FLT_EPSILON in the check.

Also: minor optimize for readability and removed dutch function name
(contrpuntnorm -> check_vnormal)
2006-06-26 13:19:04 +00:00
f1bd7928ba Bugfix, Campbell irc report; the 'error no camera' didn't halt actual
rendering completely. Making ESC (push window) work confusing or even
save images in Anim (and crash).
2006-06-25 17:37:31 +00:00
fa8c779c2d Displacement didn't react correct for stencilling. Our confusing system
has both geometry-normal displace as texture-normal displace. The first
didn't get stencilled.
2006-06-25 16:54:06 +00:00
dd064b5990 Patch from Ed Halley to ensure transmissivity values get the right
defaults.
2006-06-25 15:46:03 +00:00
1fa183c27e Fix #4472
Material option "Only shadow" didn't work 100% anymore since shadowbuffer
returns 0.0 (shadow) on backfacing normals.

Added extra test in code to solve this.
2006-06-25 15:32:42 +00:00
a966a72cd6 Many buttons assumed G.vd existed. found all? buttons that cheashed Blender and made them test for G.vd 2006-06-25 13:58:42 +00:00
713711b8be Bugfix #4463
Render Pipeline: the error "No camera" wrongly popped up when rendering a
scene that has only compositing inside (can skip 3d rendering).
2006-06-25 12:16:05 +00:00
eacb3c4b45 Bugfix #4454
Lens flare: error in counting visibility per halo-flare in the to-be
cropped area of tiles. Halos now don't render in the 2 pixels exta outline
per tile, which is only used by faces anyway.
2006-06-25 10:52:13 +00:00
3364a53854 Dunno how... maybe during Orange merging, but these files should have been
removed from CVS too!
2006-06-25 10:02:18 +00:00
93f2eb4487 Bugfix #4443
Mblur render without OSA set, still did render OSA.
2006-06-25 09:18:55 +00:00
47b5894e57 == Render ==
Bugfix:
- Frameserver rendering always got only the first frame, because
  re->cfra wasn't initialized.
2006-06-24 20:54:26 +00:00
0609066fe9 Bug 4429
When using multiple RenderLayers, each with own 'edge render', the buffer
holding edge pixels wasn't cleared from scratch, so the edges of previous
layers were showing too.
2006-06-23 16:48:28 +00:00
bf6ecd67d9 Fix #4403
Render: the Lamp-halo (spots) didn't respect the local view-layer
options in the RenderLayers.
2006-06-22 10:10:12 +00:00
0f7396e9c5 Fix #4406
The Stucci texture now returns an 'intensity' value too, this wasn't too
interesting though... not reflecting all options for the texture itself.
Now it shows better in preview renders.
2006-06-22 09:27:33 +00:00
193015653f bug #4380, border rendering was not correct.
solution could have been much simpler, but since that would have required
altering blender code (only a single line though)...

also fixed a minor bug reported in the yafray forums, when spotlights had the
shadowbuf flag set and then switching to yafray, yafray still rendered
shadows which to user was unexpected since there was no shadow flag enabled
in the yafray lamp panel, so now ignores the blender flag.
2006-06-22 03:12:48 +00:00
985db6c4ef Bugfix #4367
Creating texture coordinates for Curve bevels didn't allocate a correct
sized memory block when both U and V directions of a bevel are circular.

This will also fix "UV orco" for such curves (like donut shapes).
2006-06-21 10:02:47 +00:00
8d9d66f30f fix #4379
3D Preview didn't update correctly when switching between ortho and
perspective view (ortho render flag hanging)
2006-06-20 15:55:49 +00:00
f7d38ee181 Bugfix #4370
Silly: when using vector blur on a curve or text object, without having a
material assigned to it, the default material didn't get initialized OK
for vector blur, causing random streaks.
2006-06-20 15:44:25 +00:00
36bedb3d7e Bugfix #4363
In windows, without temp path set, the 'save buffers' render option crashes.

I've coded a blenlib BLI_is_writable(char *filename) to check for such
cases. This is not much needed in Blender, since the open() command is
checked for. However, file saving happens deep inside the C++ exr lib, and
it throws an exception crash when a file cannot be written.
2006-06-19 13:53:00 +00:00
5f5ee11fcb Seems a large commit, but I also changed function names to match the new
naming convention for Compositing:

- Render Result node -> Render Layers node (name only appears in Add menu)
- Compositor image -> Viewer Node image

I've also added a version patch (2.41 saved files only) to rename existing
"Compositor" Images.
2006-06-19 08:45:11 +00:00
2a67e98359 Bugfix #4352
More Sequence render fixes:

- on load of .blend file, with Sequencer invoking a sequence render, the
  header window matrix was not set, giving "Insane icon" prints
- option "Do Sequence" had no re-display call in end
2006-06-18 12:27:06 +00:00
5a4dc67281 Cleanup of UI for new renderpipeline
- removed "Unified" button, replaced with "HD" preset for 1920x1080 output
- removed the unused "Pass" options
- removed the unused "Strands" render-layer option

Because the internal render pipe supports this already; added two more
render-layer options:

- "Sky", to enable/disable sky render in a layer (this was part of "Solid"
  before, not so correct... to ensure previously saved files work, the
  "Sky" option is set by default when "Solid" was set. The version patching
  will do this temporally always, until we've bumped up version to 2.42
- "Edge", to enable/disable edge render in a layer. Nice for compositing.

Also in this commit: fixed warnings for exported functions for the new
Node Editor pull-down menus.
2006-06-17 10:25:07 +00:00
3593d0684a Plumiferos fix-fix :)
Code to allow "Env" material to mask out ztransp gave bad AA on edges of
solid faces, when transparant was behind it.

Recoded "Env" to use index -1 in the polygon index buffer, and restored
code that caused the bad AA.
2006-06-16 19:16:27 +00:00
7aeba4fd0f Preview Texture for Stucci works again.
NOTE: stucci didn't return 'intensity' since blender 1.0, something that
alsways caused headaches all over (all other textures do per definition).
But, allowing stucci to return 'intensity' would break old files.

To make it work for preview, I had to solve this once. Done with a version
patch, so old files (including current 2.41!) won't read with color channel
active for Stucci textures.

(Preview.blend I saved as a 2.42 file btw!)
2006-06-16 15:31:32 +00:00
3356c4ba2f The new "transmissivity" option for ray-transparent now can be controlled.
By default it is disabled (depth 0.0), so rendering is as usual.

The meaning of "depth" and "falloff" will be extensively shown in the
release log pages. Coming soon!

(Patch provided by Ed Halley)
2006-06-16 13:11:21 +00:00
a33798d697 Bugfix #4341
The code added to ensure Image textures in nodes use the correct mapping
settings (UV, repeat, etc) crashed when editing non-osa cases.
2006-06-16 12:33:35 +00:00
006800cd09 Halos rendered with 'line' option could deliver overflow alpha values,
needs to be clipped.
2006-06-15 13:00:28 +00:00
ecb204fa7c Bugfix #4338
When Edge render was choosen, the zbuffer values were altered, causing a
halo render to go wrong.
2006-06-15 10:10:27 +00:00
bbc6468b34 Restored the pretty lousy but still popular stars render in blender.
Hope our sky guru can come with something cooler for next release!
2006-06-13 20:00:14 +00:00
f4dcb244f5 Lens flare rendering back.... completely forgot about this antique
feature.

It doesn't render preview yet... for that we have to fix preview system.
2006-06-13 14:51:17 +00:00
bad72cec61 New feature! (Well, replacement for the exisiting cumbersome "DispView")
Next to the "DispWindow" there are now two new choices:

- Display render output to Image Editor
- Display render output to Screen-sized Image Editor

Both options won't open a 2nd window anymore, which makes work quite more
smooth even, especially because 'focus' isn't lost. Further it fits in the
'single window UI' paradigm of Blender. Should have been done 10 years ago!

Lastly it might bypass issues with X11... having 2 windows with opengl
context is not always stable in Linux.

This option uses an identical trick as for the Compositor viewer, using an
Image block with a fixed name ("Render Result").

The flow, when invoking a Render, goes as follows:
- first it checks if there's an Image Editor visible displaying the "Render
  Result", if so then it uses that area-window.
   (Use this option for dual-monitor setups for example, a render will always
   go to the same location then)
- else it checks if there's an Image Editor open in general, it then
  assigns that window the "Render Result" Image.
- else: it searches for the largest Area in the screen, and turns that into
  a temporal Image Editor showing render output.

After a render, an ESC will push back the former view, if the Area type has
changed.

Same rules apply for the "Full Screen" option. Here an ESC will always go
back to the regular Screen, and restore Area type if required.

While rendering, the queue for the renderwindow isn't handled yet, so you can
not zoom (nor get full redraws), as for the regular render window.

Existing conflicts:
- in FaceSelect mode, the Image editor enforces to display the face texture
  after rendering again.
- when using an Image window for compositing, you'll lose the Viewer output
  on a render.

Implementation note:
While rendering updates, nothing is drawn in frontbuffer anymore. That's
good news for b0rked OpenGL drivers (and faster). However, for the few
OpenGL cards that don't do a "swap copy" but a "swap exchange" you get
issues... has to be worked on. I'm afraid we have to drop frontbuffer
drawing altogether.

Other fixes:

- Hotkeys NumPad 1, 2, 4, 8 will set zoom levels (was half coded only?)
  Use SHIFT to zoom out (smaller).

- Rendering Tile updates still had draw errors on edges of tiles, in OSA
  only. (Caused by commit 4 days ago)
2006-06-12 14:39:08 +00:00
c2df22f306 Commit from Alfredo to support yafray sub-rect updating required an
additional initialize for scanline length in Blender.

(Error: only the entire tiles were visibly updated while render)
2006-06-11 19:53:24 +00:00
7c8008da58 Bugfix 4312
Preview render in 3d window could crash when a re-render was invoked before
the render was initialized even, reading a NULL pointer for scene.
Happened on frantic & quick editing.
2006-06-11 10:13:00 +00:00