possible to control mipmap level in materialX?

   3022   9   2
User Avatar
Member
34 posts
Joined: July 2015
Offline
I want to be able to control the mipmap level for textures in the shader with a parameter but not sure thats possible. But wanted to check if there is something i missed. Im refering to materialX in karma.

Like in the image belowe I would like for example on this distance to read in the the 256k instead or I would want it to be higher because its a hero asset so it would read 2k at this distance.
Edited by leoYfver - Nov. 23, 2023 16:00:01

Attachments:
mipmap_level.png (1.3 MB)

cg supervisor @goodbyekansas
User Avatar
Member
37 posts
Joined: Feb. 2016
Offline
From the docs

Shading Quality
This parameter controls the quality of surface shading. Adjusting this parameter affects shading derivatives, which affects MIP map choices for example
https://behance.net/derya [behance.net]
User Avatar
Member
34 posts
Joined: July 2015
Offline
That was it! thank you!
cg supervisor @goodbyekansas
User Avatar
Member
68 posts
Joined: Feb. 2016
Offline
Hi! 2 years after, I could not find "Shading Quality" parameter? I looked in different image loading nodes but could not find this parameter, same for render geometry setting?
User Avatar
Member
8173 posts
Joined: Sept. 2011
Offline
catchyid
Hi! 2 years after, I could not find "Shading Quality" parameter? I looked in different image loading nodes but could not find this parameter, same for render geometry setting?

It is on the Karma render settings node
User Avatar
Staff
4259 posts
Joined: Sept. 2007
Offline
mtlximage has a recipe in 20.5, which adds some texture controls.

https://www.sidefx.com/docs/houdini/solaris/kug/textures.html#filter_controls [www.sidefx.com]
I'm o.d.d.
User Avatar
Member
8173 posts
Joined: Sept. 2011
Offline
goldleaf
mtlximage has a recipe in 20.5, which adds some texture controls.

https://www.sidefx.com/docs/houdini/solaris/kug/textures.html#filter_controls [www.sidefx.com]

what about direct control of mip bias?
User Avatar
Member
68 posts
Joined: Feb. 2016
Offline
Thx goldleaf and jsmack ...

The documenation https://www.sidefx.com/docs/houdini/solaris/kug/textures.html#filter_controls [www.sidefx.com] says: Normally Karma automatically handles choosing mip-levels and texture map filtering".

I tried to change "Texture Blur" from 0 (no blur) to 1 (full blur), but I could not see the difference (see image)! The image is jpg. Do I need to convert the image to a different format (or RAT), do I need build multiple mips level myself, how houdini choose the right mip level (e.g. could not see something like from this distance start using lower resolution mips...). Still learning the proper workflow, and info will be super appreciated

Attachments:
Enter_a_filename.png (2.1 MB)

User Avatar
Member
8173 posts
Joined: Sept. 2011
Offline
catchyid
The image is jpg. Do I need to convert the image to a different format (or RAT)
yes, Karma CPU will use non-mipped images as-is without mip levels. Karma XPU will automatically convert to RAT.
User Avatar
Member
17 posts
Joined: Feb. 2023
Offline
I check here from time to time to see if there is a solution, but for now the only thing that works for me is to convert the images to .rat, then run the .rat files again with inconvert with the -m2 parameter and create a much smaller file.
  • Quick Links