[vtkusers] volumeRendering error with light
Aashish Chaudhary
aashish.chaudhary at kitware.com
Thu Jan 18 10:21:27 EST 2018
can you provide more details on the error?
On Thu, Jan 18, 2018 at 5:52 AM 舞法舞天 <278124177 at qq.com> wrote:
> when i add vtklight to the renderer and then use the vtkgpuvolumemapper to
> render a volume, the error has happened at this float status =
> light->GetSwitch();
> if (status > 0.0)
> {
> double* aColor = light->GetAmbientColor();
> double* dColor = light->GetDiffuseColor();
> double* sColor = light->GetDiffuseColor();
> double intensity = light->GetIntensity();
> lightAmbientColor[numberOfLights][0] = aColor[0] * intensity;
> lightAmbientColor[numberOfLights][1] = aColor[1] * intensity;
> lightAmbientColor[numberOfLights][2] = aColor[2] * intensity;
> lightDiffuseColor[numberOfLights][0] = dColor[0] * intensity;
> lightDiffuseColor[numberOfLights][1] = dColor[1] * intensity;
> lightDiffuseColor[numberOfLights][2] = dColor[2] * intensity;
> lightSpecularColor[numberOfLights][0] = sColor[0] * intensity;
> lightSpecularColor[numberOfLights][1] = sColor[1] * intensity;
> lightSpecularColor[numberOfLights][2] = sColor[2] * intensity;
> 0x00007FFF5705CA91 (vtkRenderingVolumeOpenGL2-8.1.dll)
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180118/c2275f10/attachment.html>
More information about the vtkusers
mailing list