Solaris opacity map XPU
1934 10 1- Hyperreal-Studios
- Member
- 15 posts
- Joined: Nov. 2021
- Offline
Hello,
I have 3d models of grass from Megascans. I set-up materials using MaterialX. And when I rendering it on CPU, but rendering very-very-very slow (ETA for 720x960 50minutes), result is good but to get good quliaty I need to wait forever , so I decided switch to XPU, but for some reasons XPU looks like it has no shadows
. SO this is the problem in some settings or current limitation of XPU, can it be somehow solved?
I have 3d models of grass from Megascans. I set-up materials using MaterialX. And when I rendering it on CPU, but rendering very-very-very slow (ETA for 720x960 50minutes), result is good but to get good quliaty I need to wait forever , so I decided switch to XPU, but for some reasons XPU looks like it has no shadows
. SO this is the problem in some settings or current limitation of XPU, can it be somehow solved?
- brians
- Staff
- 470 posts
- Joined: May 2019
- Offline
- Hyperreal-Studios
- Member
- 15 posts
- Joined: Nov. 2021
- Offline
- brians
- Staff
- 470 posts
- Joined: May 2019
- Offline
It seems to be the mipmapping on the opacity texture which is causing the issue.
Because presumably, grass is very small geometry, meaning the UV-derivative code is calculating some pretty extreme values.
KarmaCPU and KarmaXPU calculate mipmapping slightly differently, which is why you're seeing a difference.
You could try disabling XPU mipmapping altogether?
ie
export KARMA_XPU_DISABLE_MIPMAPS=1
Because presumably, grass is very small geometry, meaning the UV-derivative code is calculating some pretty extreme values.
KarmaCPU and KarmaXPU calculate mipmapping slightly differently, which is why you're seeing a difference.
You could try disabling XPU mipmapping altogether?
ie
export KARMA_XPU_DISABLE_MIPMAPS=1
- Hyperreal-Studios
- Member
- 15 posts
- Joined: Nov. 2021
- Offline
briansThanks. export KARMA_XPU_DISABLE_MIPMAPS=1 it can be done in wrangle in Solaris? and can be done only for specidic materials? or global for all scenes?
It seems to be the mipmapping on the opacity texture which is causing the issue.
Because presumably, grass is very small geometry, meaning the UV-derivative code is calculating some pretty extreme values.
KarmaCPU and KarmaXPU calculate mipmapping slightly differently, which is why you're seeing a difference.
You could try disabling XPU mipmapping altogether?
ie
export KARMA_XPU_DISABLE_MIPMAPS=1Image Not Found
- jsmack
- Member
- 7771 posts
- Joined: Sept. 2011
- Offline
Hyperreal-Studios
Thanks. export KARMA_XPU_DISABLE_MIPMAPS=1 it can be done in wrangle in Solaris? and can be done only for specidic materials? or global for all scenes?
you run it in the command line shell you use to launch Houdini. It's an environment variable and therefore global to the application.
- jsmack
- Member
- 7771 posts
- Joined: Sept. 2011
- Offline
brians
It seems to be the mipmapping on the opacity texture which is causing the issue.
Because presumably, grass is very small geometry, meaning the UV-derivative code is calculating some pretty extreme values.
KarmaCPU and KarmaXPU calculate mipmapping slightly differently, which is why you're seeing a difference.
You could try disabling XPU mipmapping altogether?
ie
export KARMA_XPU_DISABLE_MIPMAPS=1Image Not Found
Would using an image format that doesn't already have mipmaps, e.g. png exr tif, as opposed to rat or exr with mipmaps, also effectively disable mipmapping since the mip levels don't exist? Does XPU automatically generate mipmaps for all images?
- Hyperreal-Studios
- Member
- 15 posts
- Joined: Nov. 2021
- Offline
- Heileif
- Member
- 127 posts
- Joined: Jan. 2015
- Offline
You can set it global on the machine to.
https://docs.oracle.com/en/database/oracle/machine-learning/oml4r/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html [docs.oracle.com]
https://docs.oracle.com/en/database/oracle/machine-learning/oml4r/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html [docs.oracle.com]
- brians
- Staff
- 470 posts
- Joined: May 2019
- Offline
jsmack
Would using an image format that doesn't already have mipmaps, e.g. png exr tif, as opposed to rat or exr with mipmaps, also effectively disable mipmapping since the mip levels don't exist? Does XPU automatically generate mipmaps for all images?
At the moment XPU does automatically generate mipmaps for all images (even if they don't exist in the file).
But that will probably change in the next version of Houdini (that area is being actively worked on). The goal is to have it behave more similarly to whatever KarmaCPU does.
- AnimGraphLab
- Member
- 49 posts
- Joined: May 2019
- Offline
Hyperreal-Studios
on windows? for launching Houdini I use shortcut on start menu
In case you're still wondering: https://www.sidefx.com/docs/houdini/basics/config_env.html#setting-environment-variables [www.sidefx.com]
So, it will be at this location (if you want to set it permanently i.e Houdini will launch with this setting every time):
C:\Users\<YOUR_USER>\Documents\houdini<VERSION OF HOUDINI>\houdini.env
List of all Houdini environment variables: https://www.sidefx.com/docs/houdini/ref/env.html [www.sidefx.com]
Edited by AnimGraphLab - Dec. 31, 2023 02:25:56
3D Generalist. Transforming 2D images to 3D animations.
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
-
- Quick Links