Materials for Google Earth Mesh? Solved for Redshift not Karma

   2768   7   2
User Avatar
Member
43 posts
Joined: 12月 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
Edited by polimpiado - 2023年8月27日 19:17:37

Attachments:
EARTHMESH.jpg (449.7 KB)

User Avatar
Member
43 posts
Joined: 12月 2016
Offline
Here is a screenshot diving inside the EarthMesh HDA.

He is using a loop and a Labs Quick material to generate the attributes

Attachments:
EARTHMESH INSIDE.jpg (117.7 KB)

User Avatar
Member
43 posts
Joined: 12月 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

Attachments:
Screenshot (35).png (4.1 MB)
Screenshot (36).png (2.1 MB)

User Avatar
Member
396 posts
Joined: 4月 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.
Edited by eikonoklastes - 2023年9月4日 03:38:26
User Avatar
Member
64 posts
Joined: 11月 2015
Offline
Curious what someone figures out. I'm trying to do this in Solaris/Karma, too.
User Avatar
Member
1 posts
Joined: 12月 2022
Offline
Was anyone able to figure it out using redshift? I cant transfer material overide to the RS Texture
User Avatar
Member
21 posts
Joined: 5月 2023
Offline
帕纳斯97
Was anyone able to figure it out using redshift? I cant transfer material overide to the RS Texture



Use Rs Material choose overide ?
User Avatar
Member
43 posts
Joined: 12月 2016
Offline
liang444366454
帕纳斯97
Was anyone able to figure it out using redshift? I cant transfer material overide to the RS Texture



Use Rs Material choose overide ?
Here is an video explaining the redshift material override process:

  • Quick Links