Solaris opacity map XPU

   3728   10   1
User Avatar
Member
15 posts
Joined: 11月 2021
オフライン
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?

Attachments:
Screenshot 2023-06-14 132704.png (392.1 KB)
Screenshot 2023-06-14 132813.png (231.8 KB)

User Avatar
スタッフ
584 posts
Joined: 5月 2019
オフライン
could you post a simple scene demonstrating the issue?
thanks
User Avatar
Member
15 posts
Joined: 11月 2021
オフライン
brians
could you post a simple scene demonstrating the issue?
thanks
Sure

Attachments:
SEND.zip (7.7 MB)

User Avatar
スタッフ
584 posts
Joined: 5月 2019
オフライン
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

Attachments:
disable_mipmaps.PNG (1.5 MB)

User Avatar
Member
15 posts
Joined: 11月 2021
オフライン
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=1

Image Not Found
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?
User Avatar
Member
8177 posts
Joined: 9月 2011
オフライン
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.
User Avatar
Member
8177 posts
Joined: 9月 2011
オフライン
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=1

Image 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?
User Avatar
Member
15 posts
Joined: 11月 2021
オフライン
jsmack
export KARMA_XPU_DISABLE_MIPMAPS=1
on windows? for launching Houdini I use shortcut on start menu
Edited by Hyperreal-Studios - 2023年6月16日 15:45:10
User Avatar
Member
276 posts
Joined: 1月 2015
オフライン
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]
User Avatar
スタッフ
584 posts
Joined: 5月 2019
オフライン
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.
User Avatar
Member
67 posts
Joined: 5月 2019
オフライン
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 - 2023年12月31日 02:25:56
Generalist. Transforming still images to 3D animation 🔮
Socials: https://linktr.ee/AnimGraphLab [linktr.ee]
  • Quick Links