# Rendering issues when tried vtk examples

**URL:** https://discourse.vtk.org/t/rendering-issues-when-tried-vtk-examples/13653
**Category:** Support
**Created:** [March 30, 2024, 9:52am UTC](https://discourse.vtk.org/t/rendering-issues-when-tried-vtk-examples/13653 "2024-03-30T09:52:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MJamal](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@MJamal](https://discourse.vtk.org/u/MJamal)
#### Post date: [March 30, 2024, 9:52am UTC](https://discourse.vtk.org/t/rendering-issues-when-tried-vtk-examples/13653/1 "2024-03-30T09:52:28Z")

</div>

Hello,

I’ve successfully built vtk by following [this](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/dev/build_windows_vs.md) documentation without any errors. When trying out the examples, I am facing difficulties related to how the scene renders in the window.

I’ve tried the two examples: [CylinderExample](https://examples.vtk.org/site/Cxx/GeometricObjects/Cylinder/) and [HighlightPickedActor](https://examples.vtk.org/site/Cxx/Picking/HighlightPickedActor/) and I got completely different output:

![image](https://discourse.vtk.org/uploads/default/original/2X/7/7f51530b9f25c63ebb1511abbd6efb1190271f59.png)

 ![image](https://discourse.vtk.org/uploads/default/original/2X/a/acabea840bbb9e547ca2d7759a999e7e1693f028.jpeg)

In the first example, the cylinder does not appear, nor does the background color.

In the second example, there is the same issue with the background color, and when I click on any of the spheres, it turns black.

Can anybody help me to solve these issues?

---

<div class="post-metadata">

### Author: ![MJamal](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@MJamal](https://discourse.vtk.org/u/MJamal)
#### Post date: [March 31, 2024, 2:39pm UTC](https://discourse.vtk.org/t/rendering-issues-when-tried-vtk-examples/13653/2 "2024-03-31T14:39:12Z")

</div>

Okay, I’ve tried yet another [CircleExample](https://examples.vtk.org/site/Cxx/GeometricObjects/Circle/) and in this example, two colors, Cornsilk and DarkGreen, are used to set the background for the actor and renderer, respectively. However, when I try to check if they really exist using vtkNamedColors’s `ColorExists` method, it returns false.

I’ve also tried to manually set the color using the `SetColor` method, but `ColorExists` still returns false.

I think that’s probably the reason I am getting a black background in the renderer as the default behavior of vtkNamedColor’s `GetColor3d` method.

Why am I getting this behavior? Is this related to my hardware issue or something?

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [March 31, 2024, 10:15pm UTC](https://discourse.vtk.org/t/rendering-issues-when-tried-vtk-examples/13653/3 "2024-03-31T22:15:37Z")

</div>

Hello,

Which VTK version did you build?

best,

PC

---

<div class="post-metadata">

### Author: ![MJamal](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@MJamal](https://discourse.vtk.org/u/MJamal)
#### Post date: [April 1, 2024, 4:00am UTC](https://discourse.vtk.org/t/rendering-issues-when-tried-vtk-examples/13653/4 "2024-04-01T04:00:26Z")

</div>

@Paulo_Carvalho I’ve built the latest version 9.3.

Never mind, got it working. I had to change solution configuration type in visual studio from Debug to Release.
