Jump to content
Sign in to follow this  

roads HDA

Recommended Posts

Hi all!

Have a question that i know have already been asked (or similar, like this post: https://forums.odforce.net/topic/9227-handles-in-digital-asset/) but... yes, i didn't find any answer!

So, i will have to make an HDA that will be used in maya, and/or unity, to make simple roads.
Curves will be the input geo to build the roads.
I would like to be able to edit the bank and the width of the roads, but it would be great to have the asset to "build" some handles, or manipulators, at a user-defined interval on the curve...
I mean, i pretend to copy lines perpendiculars to the input curve at each point of that curve, then rotate them using the tangentu axis (thanks polyframe) of the curve's points for banking, and scale them in length for width...
(Then, later, using surface nodes to create mesh..)

But... For now, on a quick version, i'm tweaking those datas with two ramps, mapping them by the curveU... It kind of works, but as my ramps from 0 to 1 represents the entire length of the road's curve, the longer the road, the harder to make detailed tweaks...
So, i was thinking it would be great to make my asset "creates" let's say circles at each 10 meters of my curve, aligned with the road, and beeing able to rotate/scale those circles to shape my road...

But is it even possible? I guess in houdini i could have a script in my hou.module() that create and orient circles at object level, then connect them to my curve's points attributes, but would it work in houdini engine? And to start simple... would it works in houdini??
Or have anyone of you guys another idea?

I've also seen that the new python viewer states could be a way to go, but apart from the fact that it seems to be way beyond my knowledges, i also don't know if that would work in houdini engine (for maya...)
(what i am refering to here: https://forums.odforce.net/topic/40243-bezier-handle-state/)

(I made another test with a paint sop, then in unity i was able to paint my bank and width attributes, but it's really hard to refine the shape that way, and anyway, each time i was painting a stroke in unity, the whole "deformation" that my HDA was cooking was disappearing and i had to recook the entire HDA after each stroke...)

Thanks for your time, hope someone can help..!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this