# Dataset with large-value coordinates renders black in VTK9.1, normal in VTK8.1

**URL:** https://discourse.vtk.org/t/dataset-with-large-value-coordinates-renders-black-in-vtk9-1-normal-in-vtk8-1/7757
**Category:** Support
**Created:** [February 2, 2022, 6:14pm UTC](https://discourse.vtk.org/t/dataset-with-large-value-coordinates-renders-black-in-vtk9-1-normal-in-vtk8-1/7757 "2022-02-02T18:14:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![biagas](https://discourse.vtk.org/user_avatar/discourse.vtk.org/biagas/32/7380_2.png) [@biagas](https://discourse.vtk.org/u/biagas)
#### Post date: [February 2, 2022, 6:14pm UTC](https://discourse.vtk.org/t/dataset-with-large-value-coordinates-renders-black-in-vtk9-1-normal-in-vtk8-1/7757/1 "2022-02-02T18:14:56Z")

</div>

I encountered this with a more complex dataset, but have created a simple example that demonstrates the issue. It creates a 2x2x2 rectilinear grid with coordinate values of -5.5e+20 and 2.5e+20 for each dimension, then renders the grid.

With VTK-8 it renders red as expected, but with VTK-9 it renders black.  
It makes me wonder if there was some flag I missed when I compiled VTK-9.

If I change the coordinates to -5.5e+10 and 2.5e+10 then it renders correctly in VTK-9 as well.

I’ve attached the sample program, the CMakeLists.txt used to build, results from VTK-8 and 9 (snapshots) and the initial CMakeCache.txt that shows how I compiled VTK-9.

[renderLargeCoords.cxx](https://discourse.vtk.org/uploads/short-url/27UvWqvjZXEPYywM1qttxJtbQrQ.cxx) (1.6 KB)  
[CMakeLists.txt](https://discourse.vtk.org/uploads/short-url/8kbfz8iAK1gHBsJuN587D18RLlh.txt) (419 Bytes)  
 ![VTK8.1-results](https://discourse.vtk.org/uploads/default/original/2X/d/d4ef6e23d5035e58d4f5676ca85fdd8767e0fdfb.png)  
 ![VTK9.1-results](https://discourse.vtk.org/uploads/default/original/2X/7/70d51be6b449c5cfde48ad5dc3ba8a953fc36cfd.png)

[CMakeCache.txt](https://discourse.vtk.org/uploads/short-url/18yntu2n9MgC7lUaY1w2iXC78P.txt) (1.3 KB)
