Radu Mitroi

radumitroi95

About Me

EXPERTISE
Game Artist
INDUSTRY
Gamedev

Connect

LOCATION
Romania
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Unity Tree Prototype using for-loop May 6, 2022, 12:19 p.m.

Hello!

How should I go about assigning the value to multiple "s@unity_hf_tree_prototype" inside a for-loop? I basically want to make something like:

for(int x = 0; x < ch("XXX"); x++)
{
     s@unity_hf_tree_prototype[x] = ch("parameter[x]");
}

where the value of x is the one from the for-loop, but the tree_prototype function doesn't work as a list, so I don't know how to reference the i value at the end of that function.
* ch("XXX") is going to be a multiparm list folder and ch("parameter") should be string parameters created inside that folder.

The number has to be decided in the UI, so I don't know how many instances need to exist, hence why I have to use a for-loop.

JSON Exporter HDA not outputting files when within Unity March 30, 2022, 2:14 p.m.

Hi! So I'm pretty much using this tutorial here: https://youtu.be/9C1ZGnF2Y6A [youtu.be]

I built an HDA based on this tutorial, I just made slight changes to it in order to fit my needs (using an object merge node to be able to choose where I get the data from inside Unity). I basically need to use this to export the points I scattered using the Heightfield Scatter node into a JSON file.
Everything works really well when I'm using this inside of Houdini, the JSON file gets exported to the right location and inside I can find all the data I wanted. However, when I try using the exact same thing inside of Unity, nothing gets exported. The HDA itself seems to be working fine, it's just that there's no JSON file getting exported.

Here are a couple of screenshots showing my JSON HDA graph and its parameters: https://imgur.com/gallery/XO03Ypt [imgur.com]

What I want to happen in the end is to be able to use this HDA together with my terrain generator HDA inside of Unity. I should be able to input the terrain generator HDA into that object merge input parameter and then just hit export and output a JSON file including all my points on that piece of terrain.

Is there something I'm missing? Is it Unity at fault - does it not recognize Python scripts inside the HDA or something?

C++ Library error when using the input from an HDA March 22, 2022, 1:18 p.m.

Oh, by the way, I should add that the same HDA works just fine when the input from Unity is set as another HDA.
But as soon as the input type is set to Unity Mesh or Terrain, once I add something to the input slot, the C++ error appears and I get a crash.