Last update on 12/2/22, by Jimmy Chen
https://www.sidefx.com/forum/topic/66357/
https://www.youtube.com/watch?v=bTlY9ahThdQ&feature=emb_title
The tool can generate the city road with defined outline. Also, the tool can generate intersection if there are multiple splines connect. To make the road looks more lively, we also let users to add road side and ornaments along the road. By segmenting different parts of the road, we help users to apply different kinds of materials on the road easier.
While testing the previous version, I found out that some external model will be translated after feeding the model to Houdini Engine. It turns out that every model has its own pivot point, and using current translation procedure cannot fix the problem.
Hence, I look into the way to automatically detect the offset from pivot point to the origin. Then, I found one solution using the centroid function in the Houdini. The function simply fetch the pivot position for the model, and I use that as the offset value for the transform node. Also, I need to add a negative value for the translate field to make the position correct.
Some results are as follows:
Also, I add some adjustable fields for the user to change the scale and position of the model.