[vtkusers] vtkLightKit and OffScreenRendering

Jeff Lee jeff at cdnorthamerica.com
Fri Jan 20 08:54:04 EST 2006



Yianis Nikolaou wrote:

> thanks Jeff for adding this to the bug tracker.
>  
> From your previous reply I understand that any custom light
> I add in my scene will not work when i use OffScreenRendering.
>  
> Is this correct?

This seems to be what is happening, but I am not certain.  All I really 
know is that this doesn't happen on linux/unix.
Jeff

>  
> regards,
> yianis
>
>  
> On 1/19/06, *Jeff Lee* <jeff at cdnorthamerica.com 
> <mailto:jeff at cdnorthamerica.com>> wrote:
>
>     I submitted this as a bug (#2741).
>     Regards,
>     Jeff
>
>     Mathieu Malaterre wrote:
>
>     > Paul or Yianis,
>     >
>     >     Could you add this to the bug tracker at: http://vtk.org/Bug so
>     > that we have at least a reference to this problem.
>     >
>     > Thanks
>     > Mathieu
>     >
>     > Paul Tait - OPES wrote:
>     >
>     >> Hi
>     >>
>     >> I can confirm that this happens but no one knows why!!!! I
>     asked the
>     >> group about this over a year ago and the only suggestion was to
>     turn
>     >> the vtkLightKit off before rendering off screen to force the use of
>     >> the standard lights. Let me know how you go
>     >>
>     >> Paul Tait
>     >>
>     >>     -----Original Message-----
>     >>     *From:* vtkusers-bounces+paul=opes.com.au at vtk.org
>     <mailto:opes.com.au at vtk.org>
>     >>     [mailto:vtkusers-bounces+paul=opes.com.au at vtk.org
>     <mailto:vtkusers-bounces+paul=opes.com.au at vtk.org>] *On Behalf Of
>     >>     *Yianis Nikolaou
>     >>     *Sent:* Tuesday, 17 January 2006 7:33 PM
>     >>     *To:* vtkusers at vtk.org <mailto:vtkusers at vtk.org>
>     >>     *Subject:* [vtkusers] vtkLightKit and OffScreenRendering
>     >>
>     >>     hi,
>     >>
>     >>     I'm using the vtkLightKit class to adjust the lighting of
>     my scene.
>     >>
>     >>     When I switch to OffScreenRendering and use then
>     vtkBMPWriter to get
>     >>     a screenshot,
>     >>     the colors of the image are dimmed, as thought there was no
>     lighting
>     >>     present.
>     >>
>     >>      I also tried to use the
>     >>     dynamic_cast<vtkWin32OpenGLRenderWindow
>     >>     *>(renWin)->SetupMemoryRendering(size[0], size[1],
>     GetDC(p_hwnd));
>     >>     capability of the OPENGL32Window directly, with the same poor
>     >> results.
>     >>
>     >>     Any ideas?
>     >>
>     >>     VTK 5.1 (CVS updated on 10.01.06)
>     >>     VS 2003
>     >>     CMake 2.2 1-beta
>     >>
>     >>     thank you in advance,
>     >>
>     >>     yianis
>     >>
>     >>
>     >>     --
>     >>     No virus found in this incoming message.
>     >>     Checked by AVG Free Edition.
>     >>     Version: 7.1.375 / Virus Database: 267.14.19/231 - Release
>     Date:
>     >>     16/01/2006
>     >>
>     >>
>     >> --
>     >> No virus found in this outgoing message.
>     >> Checked by AVG Free Edition.
>     >> Version: 7.1.375 / Virus Database: 267.14.20/234 - Release Date:
>     >> 18/01/2006
>     >>
>     >>
>     >>
>     ------------------------------------------------------------------------
>     >>
>     >> _______________________________________________
>     >> This is the private VTK discussion list. Please keep messages
>     >> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>     >> Follow this link to subscribe/unsubscribe:
>     >> http://www.vtk.org/mailman/listinfo/vtkusers
>     >
>     >
>     > _______________________________________________
>     > This is the private VTK discussion list. Please keep messages
>     > on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>     > Follow this link to subscribe/unsubscribe:
>     > http://www.vtk.org/mailman/listinfo/vtkusers
>     <http://www.vtk.org/mailman/listinfo/vtkusers>
>     >
>     >
>     _______________________________________________
>     This is the private VTK discussion list.
>     Please keep messages on-topic. Check the FAQ at:
>     http://www.vtk.org/Wiki/VTK_FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
>     Follow this link to subscribe/unsubscribe:
>     http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>  
>



More information about the vtkusers mailing list