PDA

View Full Version : Record Walkthrough


SoLiTuDe
11-07-2005, 05:05 AM
well... I want to learn maxscript, but don't have the time yet ( 3 days of school + 4 days of work... plus 7 days of homework) ...so please don't give me the whole press f1 to learn maxscript crap :) ...I was wondering if anybody know of a quick way to record the walkthrough mode movements to a camera. I can record (via motion capture) basic x and y movements with my mouse, but that's nothing compared to what I'd be looking for... it'd be cool to be able to record your first person movements (like a first person shooter) If anybody knows of a way, or wants to point me in the right direction of where to get started it'd be greatly appreciated. If somebody wants to write it then hey! woohoo! if not, does anybody know what functions and such would need to be called up in maxscript for something like this to work? (so i can look into it in the future) This would be helpful to a lot people i'm sure (if it's not already available... and yes... i did look!)

Thanks!:D

Wahooney
11-07-2005, 05:28 AM
Well, if you want to make it yourself, and learn along the way ;), your best bet will be to use the redraw views callback (check the manual for exact usage). What this will let you do is that each time the viewport redraws you can grab the view's transformation matrix, which you can put into an array and then you can do whatever you want with it.

A few things you should probably do to make it better:


Use a last matrix variable and only grab a new matrix if it's different to your last matrix.
Sample rate to only grab every nth viewport update.
If you want to use one that's already been made try Bobo's Record Navigation Path (http://www.scriptspot.com/bobo/mxs7/RecordNavPath) script, I've never used it but you can give it a try.

SoLiTuDe
11-07-2005, 05:36 AM
sweet man... wahooney is the sheezy... I guess i didn't look hard enough through bobo's republic... though I do remember looking.. like when you look for your sunglasses and they're on your head. That's exactly what I'm looking for, but it's great to know what it's actually doing...if that's how it was written. I honestly never would've thought that that's how something could be recorded... i really need to get my butt in gear and learn it. Only problem is having the free time.

What would be the best place to start learning maxscript from the start?

Thanks again Wahooney -- you're the $#!+

Bobo
11-07-2005, 03:53 PM
well... I want to learn maxscript, but don't have the time yet ( 3 days of school + 4 days of work... plus 7 days of homework) ...so please don't give me the whole press f1 to learn maxscript crap :) ...I was wondering if anybody know of a quick way to record the walkthrough mode movements to a camera. I can record (via motion capture) basic x and y movements with my mouse, but that's nothing compared to what I'd be looking for... it'd be cool to be able to record your first person movements (like a first person shooter) If anybody knows of a way, or wants to point me in the right direction of where to get started it'd be greatly appreciated. If somebody wants to write it then hey! woohoo! if not, does anybody know what functions and such would need to be called up in maxscript for something like this to work? (so i can look into it in the future) This would be helpful to a lot people i'm sure (if it's not already available... and yes... i did look!)

Thanks!:D


Not a quick way, but has been around since Max 7 came out...
You can take a look at the code to figure out what it is doing...

http://www.scriptspot.com/bobo/mxs7/RecordNavPath/

CGTalk Moderation
11-07-2005, 03:53 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.