# ParaView Rendering of vtu and vtkhdf data not the same

**URL:** https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088
**Category:** ParaView Support
**Tags:** vtk
**Created:** [July 19, 2024, 5:06pm UTC](https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088 "2024-07-19T17:06:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jpmorr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jpmorr/32/8745_2.png) [@jpmorr](https://discourse.paraview.org/u/jpmorr)
#### Post date: [July 19, 2024, 5:06pm UTC](https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088/1 "2024-07-19T17:06:08Z")

</div>

I’ve been testing writing out data from a simulation in both `vtu` and `vtkhdf`. I’m writing the same data to both files but when I open them in ParaView they look quite different and I can’t figure out why.

Here’s what they look like side by side on my screen.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/16677215e477f948cbd981d7d800b014c48a1600.png)

I can’t figure out if it’s something wrong with the data files (same data written to both) or if there is some strange setting in ParaView only affecting the `vtu` file. I’ve uploaded the two files below - maybe someone can spot the problem with the data or tell me what setting in ParaView I need to change to make the `vtu` look normal.

[revolution\_triangular\_mesh\_test.hdf](https://discourse.paraview.org/uploads/short-url/r3Dc9DpVTJo2SJKf2MhzIdvslR7.hdf) (111.2 KB)  
[revolution\_triangular\_mesh\_test.vtu](https://discourse.paraview.org/uploads/short-url/p2U15GQE6QJNM12KZHNMC3x0uiQ.vtu) (153.9 KB)

---

<div class="post-metadata">

### Author: ![jpmorr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jpmorr/32/8745_2.png) [@jpmorr](https://discourse.paraview.org/u/jpmorr)
#### Post date: [July 19, 2024, 5:20pm UTC](https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088/2 "2024-07-19T17:20:24Z")

</div>

Actually after some digging and finding the `Toggle Advanced Properties` button I’ve found that the lighting options were different for each file type:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/4/437b22e232aacd8ac281b36e7f1ce10dab39f653.png)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/6/6fd1a705d8f3fd64a1ee42f7556964a10abe513b.png)

Is there a reason that the `Normal Array` was set as `normals` for the `vtu` file but nothing was set for the `vtkhdf` file?

---

<div class="post-metadata">

### Author: ![jpmorr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jpmorr/32/8745_2.png) [@jpmorr](https://discourse.paraview.org/u/jpmorr)
#### Post date: [July 19, 2024, 5:56pm UTC](https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088/3 "2024-07-19T17:56:19Z")

</div>

More digging and I’ve had a look at the `vtu` and I presume this happened because `Normals="normals"` is specified in the `vtu` file. I did not realise that `Normals` would affect the rendering, I thought it was a more generic class.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 8, 2024, 9:56am UTC](https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088/4 "2024-08-08T09:56:01Z")

</div>

@Lucas_Givord should we identify the normals (and tangents and such) in vtkhdf if not already ?

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [August 8, 2024, 10:02am UTC](https://discourse.paraview.org/t/paraview-rendering-of-vtu-and-vtkhdf-data-not-the-same/15088/5 "2024-08-08T10:02:20Z")

</div>

yes it should be, we have a dedicate issue related to “special” array : [https://gitlab.kitware.com/vtk/vtk/-/issues/19192](https://gitlab.kitware.com/vtk/vtk/-/issues/19192)
