hi,
probably this was asked before, but i want to "add" (not mix) two materials together to achive a specific look.
adding a constant (unlit) shader, that has a texture applied, and a diffuse shader, that is white and gets the lighting.
how can i achieve this in materialX?
i.e. in redshift there is the materialBlender that has an additive option...
(and does the mtlx-ambient-occlusion not working in karma XPU?)
Found 13291 posts.
Search results Show results as topic list.
Solaris and Karma » adding two materials together?
- soulcage_dpt
- 46 posts
- Offline
Houdini Indie and Apprentice » Error Black Boxing HDAs with Material VOPs or Material X
- sharanvaswani93
- 14 posts
- Offline
Hi everyone,
I am getting an error whenever I try to blackbox HDAs.
--------------------------
Traceback (most recent call last):
File "<stdin>", line 17, in <module>
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 39, in create_instance return _create_vop_instance(node_type)
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 105, in _create_vop_instance
assert not "Could not determine the VOP context for this VOP asset"
AssertionError
--------------------------
This happens for some HDAs and some blackbox correctly. I am not sure if it is because these HDAs are Material X nodes & Material VOPs (guess I saw the same thing happen randomly with Vex VOPs in shaders as well) or is it because I had previously saved the HDAs as a different name and did a "Save As" to rename the HDAs and format the names correctly or is it some other issue?
Any information or help would be really helpful!
I am getting an error whenever I try to blackbox HDAs.
--------------------------
Traceback (most recent call last):
File "<stdin>", line 17, in <module>
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 39, in create_instance return _create_vop_instance(node_type)
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 105, in _create_vop_instance
assert not "Could not determine the VOP context for this VOP asset"
AssertionError
--------------------------
This happens for some HDAs and some blackbox correctly. I am not sure if it is because these HDAs are Material X nodes & Material VOPs (guess I saw the same thing happen randomly with Vex VOPs in shaders as well) or is it because I had previously saved the HDAs as a different name and did a "Save As" to rename the HDAs and format the names correctly or is it some other issue?
Any information or help would be really helpful!
Technical Discussion » Can't select OCIO in color settings
- Manan Bachkaniwala
- 11 posts
- Offline
Hi!
as the title suggests, i cannot select my ocio config in the color settings.
I even tried uninstalling houdini and then reinstalling it!
Any help would be very much appreciated!
thank you!
as the title suggests, i cannot select my ocio config in the color settings.
I even tried uninstalling houdini and then reinstalling it!
Any help would be very much appreciated!
thank you!
Technical Discussion » HDA/OTL Create split UV view like UV Layout node
- AdamChabane
- 10 posts
- Online
Hey all, I'm using Houdini 20 and building my own tool to do Automatic UVs and UV layout for a specific project and I want to recreate the functionality of the UV Layout (3.0) SOP.
When you select the UV Layout SOP it splits the viewport view automatically - see screenshot. I really like this feature, is there a way to replicate this in user built HDAs/OTLs?
Cheers,
Adam
When you select the UV Layout SOP it splits the viewport view automatically - see screenshot. I really like this feature, is there a way to replicate this in user built HDAs/OTLs?
Cheers,
Adam
Solaris and Karma » Setting primvar interpolation to 'constant' or 'uniform'
- petkoe9ead5d0f2e542e7
- 2 posts
- Offline
Hello,
I'm trying to get a cryptomatte AOV for each instance in a copy to points scenario. I have an unique unchanging int 'id' attribute for each point which is a primvar with varying interpolation in Solaris. I already tried to use it to create a Cryptomatte AOV, and on the surface it looks like it's working, but when I try to read it in Nuke, it's wrong. From my limited understanding, It's not working because Karma expects a primvar that is with 'constant' or 'uniform' interpolation. I tried using a wrangle to change the interpolation with 'usd_setprimvarinterpolation(0, '/copytopoints1', 'id', 'uniform');', and judging from the scene graph details, it's working, but it breaks everything else that relies on this primvar(material randomizations, etc..). I'd appreciate the help if anyone knows something on the subject.
Petko Ganev
I'm trying to get a cryptomatte AOV for each instance in a copy to points scenario. I have an unique unchanging int 'id' attribute for each point which is a primvar with varying interpolation in Solaris. I already tried to use it to create a Cryptomatte AOV, and on the surface it looks like it's working, but when I try to read it in Nuke, it's wrong. From my limited understanding, It's not working because Karma expects a primvar that is with 'constant' or 'uniform' interpolation. I tried using a wrangle to change the interpolation with 'usd_setprimvarinterpolation(0, '/copytopoints1', 'id', 'uniform');', and judging from the scene graph details, it's working, but it breaks everything else that relies on this primvar(material randomizations, etc..). I'd appreciate the help if anyone knows something on the subject.
Petko Ganev
Technical Discussion » Initial parameters values for nodes created with Python
- Raytracing6478
- 8 posts
- Offline
When I create a node using python, it will create it with initial parameters values different from when I use the Tab, how to let python create a node with the same parameters values as the Tab version?
Technical Discussion » scale bias for specific voronoi fracture cell points
- NNNenov
- 36 posts
- Offline
Ello, I was wondering, is it possible to bias the distance ratio uniquely per point in a voronoi fracture?
Houdini Lounge » UV Image Viewer
- tomtm
- 124 posts
- Offline
Hi,
Do I miss it for years or is it really missing?
If you would like to see your imported texture in Karma Material Builer, I would welcome to have something like
a texture viever in all other programs.
Maybe I really miss it, but I could not find it.
Do I miss it for years or is it really missing?
If you would like to see your imported texture in Karma Material Builer, I would welcome to have something like
a texture viever in all other programs.
Maybe I really miss it, but I could not find it.
News » Houdini 20 Production Build updated to 20.0.688
- chrism
- 2493 posts
- Offline
Hidey ho! The Houdini 20 Production Build has been updated to 20.0.688.
Here's a link to the journal for all the changes that went in since the last production build:
https://www.sidefx.com/changelog/?journal=20.0&categories=&body=&version=20.0&build_0=653&build_1=688&show_versions=on&show_compatibility=on&items_per_page= [www.sidefx.com]
Here's a link to the journal for all the changes that went in since the last production build:
https://www.sidefx.com/changelog/?journal=20.0&categories=&body=&version=20.0&build_0=653&build_1=688&show_versions=on&show_compatibility=on&items_per_page= [www.sidefx.com]
Solaris and Karma » Karma XPU stuck on initialization and geo refuse to load
- Justinngjw
- 7 posts
- Offline
I am having an issue while trying to render a heavy spaceship in USD format using Karma XPU. My setup is unable to render the asset properly, and I am unsure of the cause.
When I first switch to Karma XPU, it takes 20–30 seconds for the spaceship to load in and begin rendering. However, when I move the viewport, the spaceship freezes in the same position and does not recalculate. Additionally, both of my GPUs become stuck during initialization and do not proceed to render.
while it's trying to load, i have no issue moving around the viewport and the UI, but the moment i try to click anything, Houidni will turn strange not responding;(
My system specifications:
AMD Ryzen 9 3900X, 12-core processor
64GB RAM
2 x RTX 2070 Super GPUs
Houdini 20.0.547
things i've tried:
- Updated the drivers
- Loaded the file on another computer, where it worked smoothly without issues
I would greatly appreciate any assistance or advice.
Thank you!
When I first switch to Karma XPU, it takes 20–30 seconds for the spaceship to load in and begin rendering. However, when I move the viewport, the spaceship freezes in the same position and does not recalculate. Additionally, both of my GPUs become stuck during initialization and do not proceed to render.
while it's trying to load, i have no issue moving around the viewport and the UI, but the moment i try to click anything, Houidni will turn strange not responding;(
My system specifications:
AMD Ryzen 9 3900X, 12-core processor
64GB RAM
2 x RTX 2070 Super GPUs
Houdini 20.0.547
things i've tried:
- Updated the drivers
- Loaded the file on another computer, where it worked smoothly without issues
I would greatly appreciate any assistance or advice.
Thank you!
Edited by Justinngjw - 昨日 11:40:17
Houdini Indie and Apprentice » No Alpha Channel When Compositing
- youngzo34
- 7 posts
- Offline
I rendered this sequence in exr. Sent over to compositing and there's no alpha channel only the AOVs i created
Houdini for Realtime » SideFX Labs on steam
- unrek3n19ma
- 1 posts
- Offline
Technical Discussion » How to make realistic honey drop?
- raincole
- 441 posts
- Offline
As thie video shows (start from 1:00 mark), when a honey droplet drops it has this "spring back" effect. No matter how high the viscosity I set for Vellum fluid, when it drops it just drops.
Is Vellum not suitable for this and I need to use FLIP? Or is there some tricks that I've missed?
By "spring back" I meant this:
Edited by raincole - 昨日 10:01:03
Technical Discussion » How to create nested obj level transforms?
- catchyid
- 38 posts
- Offline
Hi!
I want to mimic Maya transforms structure in Houdini, i.e. transform node A, when you dive, you will find another transform node B, when you dive in you find transform C.
Just to clarify, I understand I can flatten this hierarchy by connecting obj level transforms in parent-child relationship (so all nodes will be on top level obj), but I don't want this.
The only way I am to do is by creating obj sub-networks, for example: root obj --contains--> object sub-network A --dive in--> obj sub-network B. Is there any other solution?
Tx
I want to mimic Maya transforms structure in Houdini, i.e. transform node A, when you dive, you will find another transform node B, when you dive in you find transform C.
Just to clarify, I understand I can flatten this hierarchy by connecting obj level transforms in parent-child relationship (so all nodes will be on top level obj), but I don't want this.
The only way I am to do is by creating obj sub-networks, for example: root obj --contains--> object sub-network A --dive in--> obj sub-network B. Is there any other solution?
Tx
Edited by catchyid - 昨日 09:00:23
Solaris and Karma » XPU region render blurry textures
- spektra
- 25 posts
- Offline
I'm trying to render a region of image to save some render time but textures seem to get blurry doing so. Increasing region size makes textures more blurry but it doesn't seem to affect geometry. I have tried disabling mipmapping but it didn't fix it. Tested on Houdini 20.0.653. Everything works correctly in CPU mode.
Edited by spektra - 昨日 06:51:43
Technical Discussion » Karma render use DCM (Deep Camera Map) as matte for Effect
- AAaronLi
- 7 posts
- Offline
I've found that Karma can render DCM(Deep Camera Map) output. This is a good feature.
But I didn't found how can I use DCM as matte for Effect, Instead of importing the scene and then setting the Holdout Mode to matte in the geometry render settings.
It's like rendering with Mantra and setting the camera parameters in the SOP.
Does Karma have this feature?
Any help would be greatly appreciated.
- Aaron
But I didn't found how can I use DCM as matte for Effect, Instead of importing the scene and then setting the Holdout Mode to matte in the geometry render settings.
It's like rendering with Mantra and setting the camera parameters in the SOP.
Does Karma have this feature?
Any help would be greatly appreciated.
- Aaron
PDG/TOPs » How to access current cook value of an attribute in Python?
- alexmajewski
- 3 posts
- Online
I would like to check current cook value of a wedge attribute in a Python expression.
The same way that we use `@pdg_index` in string parameters etc. but this time we'd like to grab that value in a script. How can I do that?
The same way that we use `@pdg_index` in string parameters etc. but this time we'd like to grab that value in a script. How can I do that?
Technical Discussion » Error Black Boxing HDAs with Material VOPs or Material X
- sharanvaswani93
- 14 posts
- Offline
Hi everyone,
I am getting an error whenever I try to blackbox HDAs.
--------------------------
Traceback (most recent call last):
File "<stdin>", line 17, in <module>
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 39, in create_instance return _create_vop_instance(node_type)
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 105, in _create_vop_instance
assert not "Could not determine the VOP context for this VOP asset"
AssertionError
--------------------------
This happens for some HDAs and some blackbox correctly. I am not sure if it is because these HDAs are Material X nodes & Material VOPs (guess I saw the same thing happen randomly with Vex VOPs in shaders as well) or is it because I had previously saved the HDAs as a different name and did a "Save As" to rename the HDAs and format the names correctly or is it some other issue?
Any information or help would be really helpful!
Thanks!
I am getting an error whenever I try to blackbox HDAs.
--------------------------
Traceback (most recent call last):
File "<stdin>", line 17, in <module>
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 39, in create_instance return _create_vop_instance(node_type)
File "C:\PROGRA~1/SIDEEF~1/Houdini 20.0.625/houdini/python3.10libs\digitalassetsupport.py", line 105, in _create_vop_instance
assert not "Could not determine the VOP context for this VOP asset"
AssertionError
--------------------------
This happens for some HDAs and some blackbox correctly. I am not sure if it is because these HDAs are Material X nodes & Material VOPs (guess I saw the same thing happen randomly with Vex VOPs in shaders as well) or is it because I had previously saved the HDAs as a different name and did a "Save As" to rename the HDAs and format the names correctly or is it some other issue?
Any information or help would be really helpful!
Thanks!
Technical Discussion » [libpng error] Karma | Substance Painter - Houdini [SOLVED]
- AnimGraphLab
- 49 posts
- Offline
This is a solved issue. I want to document it for someone who possibly encounters it in the future.
SideFX team, if there's an option to improve the error message, it would be a blessing
Context:
- Substance Painter to Houdini USD workflow
- UDIMs
- Karma render
Error messages:
- libpng error: bad adaptive filter value
- libpng error: IDAT: invalid block type
Writing error message and a picture since it will better be indexed in Google search.
Solution:
- delete exported textures from Substance Painter
- export textures again
- optional: Render menu at the top -> update textures [www.sidefx.com] | Perspective -> Reset Karma XPU (or Shift+P)
I somehow understood that it's related to textures after reading through this and searching occurrences of libpng: https://www.sidefx.com/docs/hdk/png_8h_source.html [www.sidefx.com]
Why it happened (my guess)
Substance Painter exported 1 UDIM tile texture cropped i.e. half of the texture was black and only half of the top part was with texture. And Karma didn't know what to do about it. Although the Painter export message said, "export finished successfully".
All the best
SideFX team, if there's an option to improve the error message, it would be a blessing
Context:
- Substance Painter to Houdini USD workflow
- UDIMs
- Karma render
Error messages:
- libpng error: bad adaptive filter value
- libpng error: IDAT: invalid block type
Writing error message and a picture since it will better be indexed in Google search.
Solution:
- delete exported textures from Substance Painter
- export textures again
- optional: Render menu at the top -> update textures [www.sidefx.com] | Perspective -> Reset Karma XPU (or Shift+P)
I somehow understood that it's related to textures after reading through this and searching occurrences of libpng: https://www.sidefx.com/docs/hdk/png_8h_source.html [www.sidefx.com]
Why it happened (my guess)
Substance Painter exported 1 UDIM tile texture cropped i.e. half of the texture was black and only half of the top part was with texture. And Karma didn't know what to do about it. Although the Painter export message said, "export finished successfully".
All the best
Edited by AnimGraphLab - 昨日 01:25:12
Technical Discussion » How to dynamic load custom "Dynamic Simulations" plugins?
- DlPF
- 1 posts
- Offline
Hi all,
I wrote a plugin. The plugin's code referenced houdini HDK, Dynamic Simulations plugin example, see this page: https://www.sidefx.com/docs/hdk/_h_d_k__intro__creating_plugins.html [www.sidefx.com]
Now I want to implement dynamic loading for this plugin. But there were some problems.
First, I tried to use python API to load it.
Since its registration function is initializeSIM () and not newDopOperator (). Therefore the load fails.
Then, I tried to use _ctypes to load it.
The handle is not None. But I can't create the node in Dop Network. I think I missed some operations like registering it in houdini. But I don't know how to do it.
Due to my SOP plugins can be loaded by
Maybe I can use a SOP to load Dynamic Simulations plugins! I made the following attempts in a SOP plugin C++ code.
I think the dll is loaded, but it still not create node in dop network.
Another idea is to dynamic update the HOUDINI_DSO_PATH, and rescan this path.
The python code like:
But I can't find the rescan command.
My expectation is that when this plugin is not in the dso folder, it can be loaded and used without restarting houdini.
Is there any solution for this problem?
Thank you very much!
I wrote a plugin. The plugin's code referenced houdini HDK, Dynamic Simulations plugin example, see this page: https://www.sidefx.com/docs/hdk/_h_d_k__intro__creating_plugins.html [www.sidefx.com]
Now I want to implement dynamic loading for this plugin. But there were some problems.
First, I tried to use python API to load it.
hou.nodeTypeCategories()['Dop'].loadDSO('--dll path--')
Then, I tried to use _ctypes to load it.
import _ctypes handle = _ctypes.LoadLibrary('--dll path--')
Due to my SOP plugins can be loaded by
hou.nodeTypeCategories()['Sop'].loadDSO('--dll path--')
static UT_DSOHandle* dsoHandle; UT_DSO dso; UT_String* errorOutput = NULL; const char dsoFile[] = "--dll path--"; dsoHandle = dso.loadDSO(dsoFile, false, errorOutput ); const char symbolName[] = "initializeSIM"; UT_StringHolder* errorOutput1 = NULL; UT_StringHolder fileName = dso.getFilePath(dsoHandle, *errorOutput1); bool result = dso.run(dsoFile, symbolName);
Another idea is to dynamic update the HOUDINI_DSO_PATH, and rescan this path.
The python code like:
import hou current_dso_path = hou.getenv("HOUDINI_DSO_PATH") my_plugin_path = "/path/to/my/custom/plugins" new_dso_path = current_dso_path + ";" + my_plugin_path hou.putenv("HOUDINI_DSO_PATH", new_dso_path)
My expectation is that when this plugin is not in the dso folder, it can be loaded and used without restarting houdini.
Is there any solution for this problem?
Thank you very much!
-
- Quick Links