Jump to content

control system in Houdini


Recommended Posts

Hi all,

I'm kinda new to this board and to Houdini too.

Using it for my summer class for a month now. :)

In my class I have created a project that try to imitate a race game

in Houdini. (yeah! with vehicles, tracks, cameras, control system)

I'm now in the point of designing a control system using "keyboard chop"

the prototype I can now moving an object by using keyboard chops and Align Sops together so vehicle will creep along UV of the track.

forward backward left right.

then I reach a problem when I try to move car by using steering method

the vehicle should move toward the direction which it's facing.

like when it turn left then it move to that direction and so on.

I'm trying to research on tranform matrix, and basics physics stuff(velocity,

acceleration,etc)

Now I'm trying use "object CHOPs" to get information about angle vehicle's facing and try to use that information for moving vehicle.

And still developing the scheme.

Just want to ask for any suggestions, information anything at all. That would be great!!

What do you guys think it should help me?

Thanks a lot in advance..

cheers.

-tuang :D

Link to comment
Share on other sites

If you're not willing/able to go through CHOPS using the Object CHOP and all, then I'd suggest that you take a look at the point() expressions.

You could ObjectMerge both points into a thrird object with "keep position when parenting" and then using the point() expression to find the difference.

use

exhelp point

and

exhelp -k distance

to help you,

Cheers,

J,

Link to comment
Share on other sites

thanks Alex and Jason,

hmm...

I've made a test file using object chops and can manage to get some values out of it.

But when I try to export it back to the null object an error happen on the

tx transform. it's saying that the evaluation recursing happen (only on tx, tz is ok)

so I guess I have made a mistake somewhere.

please take a look.

http://www2.sva.edu/~tuang/testHIP.zip

oh you can use w key to trigger the chops

thanks.

-tuang

:)

Link to comment
Share on other sites

Hey Tuang,

Did you wanted to export to all 3 Nulls or just a specific one? I am taking a look at your file, and all 3 Nulls have override on there tx and tz channel. Are there no duplicate naming in CHOPs or exporting errors?

Although I haven't used CHOP that much, but from what it seem like you're grabbing a channel and then exported it back to that same channel again form CHOPs. Perhaps this is what gives you an infinite recursion?

Take care,

ALex

Link to comment
Share on other sites

hi guys,

I've made a little progress... :)

after struggle with that recursing problem.

finally I decided just to fetch ry channel from null object.

And split chops in 2 network.

then there's no recursive problem anymore.

you guys can check this file here.

http://www2.sva.edu/~tuang/move.zip

run the scene, push scroll lock, then

use 'w''a''s''d' keys to control movement.

any comment will be welcome

thanks

-tuang

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...