vtkLightKit and OffScreenRendering

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

vtkLightKit and OffScreenRendering

Yianis Nikolaou
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


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

RE: vtkLightKit and OffScreenRendering

Paul Tait - OPES
Message
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=[hidden email] [mailto:vtkusers-bounces+paul=[hidden email]] On Behalf Of Yianis Nikolaou
Sent: Tuesday, 17 January 2006 7:33 PM
To: [hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: vtkLightKit and OffScreenRendering

Jeff Lee

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=[hidden email]
>     [mailto:vtkusers-bounces+paul=[hidden email]] *On Behalf Of
>     *Yianis Nikolaou
>     *Sent:* Tuesday, 17 January 2006 7:33 PM
>     *To:* [hidden email]
>     *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?
>
I can confirm this behavior too.  Is this problem known to only happen
when the user adds their own lights to the scene?
Jeff

>
>     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
Reply | Threaded
Open this post in threaded view
|

Re: vtkLightKit and OffScreenRendering

Mathieu Malaterre-2
In reply to this post by Paul Tait - OPES
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=[hidden email]
>     [mailto:vtkusers-bounces+paul=[hidden email]] *On Behalf Of
>     *Yianis Nikolaou
>     *Sent:* Tuesday, 17 January 2006 7:33 PM
>     *To:* [hidden email]
>     *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
Reply | Threaded
Open this post in threaded view
|

Re: vtkLightKit and OffScreenRendering

Jeff Lee
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=[hidden email]
>>     [mailto:vtkusers-bounces+paul=[hidden email]] *On Behalf Of
>>     *Yianis Nikolaou
>>     *Sent:* Tuesday, 17 January 2006 7:33 PM
>>     *To:* [hidden email]
>>     *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
>
>
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: vtkLightKit and OffScreenRendering

Yianis Nikolaou
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?
 
regards,
yianis

 
On 1/19/06, Jeff Lee <[hidden email]> 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=[hidden email]
>>     [mailto:[hidden email]] *On Behalf Of
>>     *Yianis Nikolaou
>>     *Sent:* Tuesday, 17 January 2006 7:33 PM
>>     *To:* [hidden email]
>>     *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
>
>
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: vtkLightKit and OffScreenRendering

Jeff Lee


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* <[hidden email]
> <mailto:[hidden email]>> 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=[hidden email]
>     <mailto:[hidden email]>
>     >>     [mailto:vtkusers-bounces+paul=[hidden email]
>     <mailto:vtkusers-bounces+paul=[hidden email]>] *On Behalf Of
>     >>     *Yianis Nikolaou
>     >>     *Sent:* Tuesday, 17 January 2006 7:33 PM
>     >>     *To:* [hidden email] <mailto:[hidden email]>
>     >>     *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
>  
>
_______________________________________________
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