Materials for Google Earth Mesh? Solved for Redshift not Karma
2623 7 2- polimpiado
- Member
- 43 posts
- Joined: Dec. 2016
- Offline
Hello,
I have been playing with Daniel Gallardo's Earth Mesh HDA: https://github.com/xjorma/EarthMeshHoudini [github.com]
It generates a mesh with three prim attributes: "material_name", "material_override", and "shop_materialpath". The material texture renders in the viewport but I do not understand the process of translating this to Karma or other renderer.
There are over 2000 separate materials
Is there a tutorial or relevant documentation that explains this?
See attached screenshots
Any advice is much appreciated.
Thank you
I have been playing with Daniel Gallardo's Earth Mesh HDA: https://github.com/xjorma/EarthMeshHoudini [github.com]
It generates a mesh with three prim attributes: "material_name", "material_override", and "shop_materialpath". The material texture renders in the viewport but I do not understand the process of translating this to Karma or other renderer.
There are over 2000 separate materials
Is there a tutorial or relevant documentation that explains this?
See attached screenshots
Any advice is much appreciated.
Thank you
Edited by polimpiado - Aug. 27, 2023 19:17:37
- polimpiado
- Member
- 43 posts
- Joined: Dec. 2016
- Offline
- polimpiado
- Member
- 43 posts
- Joined: Dec. 2016
- Offline
I managed to solve it for redshift renderer by calling up the "basecolor_texture" attribute as a local string parameter on the Material node then referencing that inside on the RStexture node plugged into the base color...
I had to transfer the 'material_override' attribute back onto the geo after the material node as it overwites that attribute.
Also there is som issue with the UVs but they seem to get corrected if I merge it with a grid with UVs, I dont really understand whats going on. I tried promoting UVs from point to vertex but it didnt help.
I would love to get this working in Karma. I found this tutorial [www.youtube.com] which may be a part of the answer but it does not solve the matching per prim...
If anyone has any better ideas or want more detail into my hacky solution lmk
I had to transfer the 'material_override' attribute back onto the geo after the material node as it overwites that attribute.
Also there is som issue with the UVs but they seem to get corrected if I merge it with a grid with UVs, I dont really understand whats going on. I tried promoting UVs from point to vertex but it didnt help.
I would love to get this working in Karma. I found this tutorial [www.youtube.com] which may be a part of the answer but it does not solve the matching per prim...
If anyone has any better ideas or want more detail into my hacky solution lmk
- eikonoklastes
- Member
- 395 posts
- Joined: April 2018
- Online
Can you post the geo for this (or a subset of it, if it's large)? Setting up the HDA requires a Google account and a credit card to register.
I've written Python scripts for SOPs and for Solaris that can read texture files from a folder and assign them to geometry automatically, but I haven't done a transition of material overrides from SOPs to Solaris.
I've written Python scripts for SOPs and for Solaris that can read texture files from a folder and assign them to geometry automatically, but I haven't done a transition of material overrides from SOPs to Solaris.
Edited by eikonoklastes - Sept. 4, 2023 03:38:26
- Terence Ziegler
- Member
- 64 posts
- Joined: Nov. 2015
- Offline
- Panas97
- Member
- 1 posts
- Joined: Dec. 2022
- Offline
- liang444366454
- Member
- 21 posts
- Joined: May 2023
- Offline
- polimpiado
- Member
- 43 posts
- Joined: Dec. 2016
- Offline
-
- Quick Links