Differences between Karma CPU & XPU renders
4566 12 3- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
I know the 'XPU is darker' issue is already logged, but I'm trying to figure out why Karma CPU vs XPU renders look so different in other ways.
An easy example - load Crag into solaris, light with a dome light / distant light and look at the results. The XPU render is really glossy. Looks like either / both roughness and normals are behaving very differently.
Or is this just an issue with
my config?
An easy example - load Crag into solaris, light with a dome light / distant light and look at the results. The XPU render is really glossy. Looks like either / both roughness and normals are behaving very differently.
Or is this just an issue with
my config?
Edited by mrboni - Nov. 29, 2021 17:27:18
- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
Another example. Here we have a simple road material (mtlx) with Base Colour, Roughness, and Tangent Normal Map. Not only do you see a huge differenct in the 'texture' quality, but there is a strange divergence / blurring the further from camera we get. See the white line road markings in particular.
Edited by mrboni - Nov. 29, 2021 17:34:43
- johnp
- Member
- 10 posts
- Joined: June 2015
- Offline
mrboni
Another example. Here we have a simple road material (mtlx) with Base Colour, Roughness, and Tangent Normal Map. Not only do you see a huge differenct in the 'texture' quality, but there is a strange divergence / blurring the further from camera we get. See the white line road markings in particular.
Hey this caught me out the other day in regards to texture res!
If you go through the XPU page in the docs:
https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html [www.sidefx.com]
You will find this gem:
Texture resolution is limited to 2048×2048 (configurable via the environment variable KARMA_XPU_MAX_TEXTURE_RES).
So to fix the problem and assuming you have enough VRAM you can set KARMA_XPU_MAX_TEXTURE_RES="8192" for example
- johnp
- Member
- 10 posts
- Joined: June 2015
- Offline
mrboni
I know the 'XPU is darker' issue is already logged, but I'm trying to figure out why Karma CPU vs XPU renders look so different in other ways.
An easy example - load Crag into solaris, light with a dome light / distant light and look at the results. The XPU render is really glossy. Looks like either / both roughness and normals are behaving very differently.
Or is this just an issue with
my config?
Looks like the Crag test geometry is using a principled shader
XPU only supports materialX and USD Preview Surface
Edited by johnp - Nov. 30, 2021 11:26:49
- jsmack
- Member
- 8043 posts
- Joined: Sept. 2011
- Online
johnpmrboni
I know the 'XPU is darker' issue is already logged, but I'm trying to figure out why Karma CPU vs XPU renders look so different in other ways.
An easy example - load Crag into solaris, light with a dome light / distant light and look at the results. The XPU render is really glossy. Looks like either / both roughness and normals are behaving very differently.
Or is this just an issue with
my config?
Looks like the Crag test geometry is using a principled shader
XPU only supports materialX and USD Preview Surface
Crag's textures are also jpg's, XPU is probably erroneously gamma correcting the roughness map since the gamma correction parameter is not translated from the principled to usd preview surface.
- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
Hey this caught me out the other day in regards to texture res!
If you go through the XPU page in the docs:
https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html [www.sidefx.com]
You will find this gem:
So to fix the problem and assuming you have enough VRAM you can set KARMA_XPU_MAX_TEXTURE_RES="8192" for example
Useful doc, thanks! I tried increasing the texture res (although the argument didn't show up when asking 'hconfig -a', should it have done?) and it didn't affect the blurring issue. Anyway, I'd imagine the issue is more to do with texture filtering than resolution, as there are clearly enough pixels in the texture when it's close to the camera
If you go through the XPU page in the docs:
https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html [www.sidefx.com]
You will find this gem:
Texture resolution is limited to 2048×2048 (configurable via the environment variable KARMA_XPU_MAX_TEXTURE_RES).
So to fix the problem and assuming you have enough VRAM you can set KARMA_XPU_MAX_TEXTURE_RES="8192" for example
Useful doc, thanks! I tried increasing the texture res (although the argument didn't show up when asking 'hconfig -a', should it have done?) and it didn't affect the blurring issue. Anyway, I'd imagine the issue is more to do with texture filtering than resolution, as there are clearly enough pixels in the texture when it's close to the camera
- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
So there are at least two issues at the moment.
The first one is represented in the previous image and is to do with the dome light - in CPU rendering the lighting result is significantly 'brighter'. I've tried a variety of images as source, all latlong, in exr / hdr / jpg formats. Is the same for all.
The second issue is visible in the textured road images above and appears to be significant texture filtering artefacts, not connected to the resolution of the source textures (btw I checked and the images are 2048px anyway ) This issue is still present when using lights other than dome. (Also just tried using 'Simplified Shading' and its still there)
The first one is represented in the previous image and is to do with the dome light - in CPU rendering the lighting result is significantly 'brighter'. I've tried a variety of images as source, all latlong, in exr / hdr / jpg formats. Is the same for all.
The second issue is visible in the textured road images above and appears to be significant texture filtering artefacts, not connected to the resolution of the source textures (btw I checked and the images are 2048px anyway ) This issue is still present when using lights other than dome. (Also just tried using 'Simplified Shading' and its still there)
Edited by mrboni - Nov. 30, 2021 13:58:40
- johnp
- Member
- 10 posts
- Joined: June 2015
- Offline
mrboni
The second issue is visible in the textured road images above and appears to be significant texture filtering artefacts, not connected to the resolution of the source textures (btw I checked and the images are 2048px anyway ) This issue is still present when using lights other than dome. (Also just tried using 'Simplified Shading' and its still there)
So I was just testing this myself and using a tiled texture I seeing the same problem with XPU and not with CPU. However, if you use a USD Preview Surface material instead of a MaterialX Standard Surface the issue looks a little more improved (in my test) but definitely not as good as the CPU result.
Edited by johnp - Nov. 30, 2021 14:19:36
- Siavash Tehrani
- Member
- 729 posts
- Joined: July 2005
- Offline
mrboni
Even without textures there is a large discrepancy when looking into the distance along the surface. The following is a mtlxstandard_surface with no textures (or any nodes) connected
This is most likely the same XPU edge-darkening issue we've been seeing. Today's .454 daily build appears to have a fix for it:
Energy-preserving rough GGX implemented, fixing a bug where rough surfaces could look overly dark at grazing angles
The distance texture blurring looks exactly like a lack of anisotropic filtering you would see in video games.
Edited by Siavash Tehrani - Nov. 30, 2021 17:29:05
- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
DaJuicemrboni
Even without textures there is a large discrepancy when looking into the distance along the surface. The following is a mtlxstandard_surface with no textures (or any nodes) connected
This is most likely the same XPU edge-darkening issue we've been seeing. Today's .454 daily build appears to have a fix for it:Energy-preserving rough GGX implemented, fixing a bug where rough surfaces could look overly dark at grazing angles
The distance texture blurring looks exactly like a lack of anisotropic filtering you would see in video games.
Ah great, will try the daily build, thanks.
Yes you're right the texture blurring does look like no anisotropic filtering. Any idea how I'd proceed with this? Should I email SideFX support?
- brians
- Staff
- 531 posts
- Joined: May 2019
- Offline
- mrboni
- Member
- 38 posts
- Joined: Sept. 2017
- Offline
-
- Quick Links