tuangD Posted August 5, 2002 Share Posted August 5, 2002 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 Quote Link to comment Share on other sites More sharing options...
tuangD Posted August 5, 2002 Author Share Posted August 5, 2002 hmm... may be I have to make more specific question. ok 1. if I have 2 null objects how can I get a vector point from first one to another? thnanks again. Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted August 5, 2002 Share Posted August 5, 2002 Hi Tuang, Can you use vtorigin function for that? The vtorigin will give you a vector that contain the translation value between 2 points. Hope that helps. Cheers, ALex Umm.... I guess I am way off the base. Quote Link to comment Share on other sites More sharing options...
Jason Posted August 5, 2002 Share Posted August 5, 2002 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, Quote Link to comment Share on other sites More sharing options...
tuangD Posted August 5, 2002 Author Share Posted August 5, 2002 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 Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted August 5, 2002 Share Posted August 5, 2002 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 Quote Link to comment Share on other sites More sharing options...
tuangD Posted August 6, 2002 Author Share Posted August 6, 2002 hi Alex, I just check the file. and try to correct it but it still not work. so may be I have to find another way. thanks for your reply cheers, -tuang Quote Link to comment Share on other sites More sharing options...
tuangD Posted August 6, 2002 Author Share Posted August 6, 2002 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 Quote Link to comment Share on other sites More sharing options...
danteA Posted August 6, 2002 Share Posted August 6, 2002 wow, that's really cool. I can't wait to see when you've got when you finish! Everyone should start modelling their cars right now. Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted August 7, 2002 Share Posted August 7, 2002 HAHAHAHAH!!!!! That was great, Tuang!! Looks like pretty soon we'll be designing some arcade games and playing while working in the office. Great job!! Quote Link to comment Share on other sites More sharing options...
tuangD Posted August 7, 2002 Author Share Posted August 7, 2002 thanks guys, glad that you like that.. -tuang Quote Link to comment Share on other sites More sharing options...
MG Posted August 25, 2002 Share Posted August 25, 2002 Impressive stuff indeed! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.