View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002741VTK(No Category)public2006-01-19 15:302016-08-12 09:54
ReporterJeff Lee 
Assigned ToKitware Robot 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002741: offscreen rendering images dim on win32
Descriptioncaptured images from a vtkWin32OpenGLRenderWindow offscreen context are dimmer than their onscreen counterparts. this seems to happen only when the user adds lights to the scene. Some initial scanning of the mailing lists give
http://public.kitware.com/pipermail/vtkusers/2003-March/066054.htm [^]
and also
http://public.kitware.com/pipermail/vtkusers/2003-April/066928.html [^]
as hints.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0003976)
Mathieu Malaterre (developer)
2006-04-06 17:09

copying comments from 2nd url

I've also struck the problem of images rendering fine on-screen
but losing their user-defined lighting when rendered off-screen.
e.g. into the clipboard. One place damage may occur is here:
 
void vtkOpenGLRenderer::DeviceRender(void)
{
  this->RenderWindow->MakeCurrent();
  this->ClearLights(); <--- clears all lights!
  this->UpdateCamera();
  this->UpdateLightGeometry();
  this->UpdateLights(); <--- not properly restored?
  glMatrixMode(GL_MODELVIEW);
  this->UpdateGeometry();
  glMatrixMode(GL_MODELVIEW);
  glPopMatrix();
}
 
If no user-defined lights are active, then UpdateLights() adds
a headlight and at least there is some light in the image. But
(guessing here) if we have added a custom set of lights, then
these are lost in the call to ClearLights(); but not restored
in UpdateLights(). And since there is a "non-zero" number of
lights, the default headlight is not added, and scene is dark.
 
My (solution :-) when making movies, is to turn off light-kits
or other user-defined lights, and adjust the scene to be visible
with just the default headlight (which is better than nothing).
If I get time, I plan to build a debug Vtk and trace this.
(0036819)
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-11-30 09:14 Mathieu Malaterre Assigned To Mathieu Malaterre => François Bertel
2010-09-07 13:46 François Bertel Assigned To François Bertel =>
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036819
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team