DominikLingenover / DMNK-Tools

DMNK Shelf | Workflow oriented Python Scripts / HDAs
https://dominiklingenover.com/
MIT License
97 stars 19 forks source link

Speedtree to Redshift broken #7

Open joshuazt opened 3 years ago

joshuazt commented 3 years ago

Hey

I think the latest update for Redshift broke the importer tool. The material networks render black until I recreate the material network.

I am on: Houdini 18.5.499 Redshift 3.0.41

joshuazt commented 3 years ago

Incase anyone else has the same issue, It was due to Redshift adding a sheen parameter to their materils. Ive gone through and adjusted the pythong script to reflect the new parameter locations. Replace your speedtree_importer_core.py with this

edit: updated the script to fix the opacity

speedtree_importer_core.txt

darko97400 commented 3 years ago

Hi ! there is the same problem with the Opacity Channel who is connected to the Coat Thickness

joshuazt commented 3 years ago

Hey, ah yea makes sense.

Im bit smashed at work today. Buy ill adjust that tweaked python file to fix that either tonight or tomorrow.

darko97400 commented 3 years ago

thanks :)

joshuazt commented 3 years ago

Hey

Im having trouble recreating your issue. My opacity is always loaded in through the redshift sprite node.

Can you send me a ZIP to test?

darko97400 commented 3 years ago

hey no problem, i send you zip with the Speedtree tree & shader with the Hip Files, i import the tree in ABC ( ogawa ) in Houdini 18.5.563 but , i don't have the Sprite Node in my configuration ? just the node configuration with Opacity > Coat i've the last release of DMNK

Link : https://we.tl/t-4uv84BmSOL

joshuazt commented 3 years ago

Hey cheers I see what going on ill adjust the python now.

Another little tip, tick on the ' Opacity as Stencil', see image below. This is more efficient then the using the opacity channel through the shader. Also this still works, until I update the python script.

Screenshot from 2021-05-14 16-24-16

darko97400 commented 3 years ago

cool ! that's great indeed with this option checked, it works thanks Joshua

joshuazt commented 3 years ago

No worries :)

I have updated the 'speedtree_importer_core' to fix that opacity input to:

speedtree_importer_core.txt