Go Back   Steam Users' Forums > Steam Tool Discussions > Source Art & Sound Design

Reply
 
Thread Tools Display Modes
Old 07-24-2007, 06:19 PM   #1
RoxyChick
 
Guest
Posts: n/a
Maya to source (HL2 mod)

Hello

I'm just starting on my first mod and I'm decompiling some player models to get a feel for it and learn from the ground up.


- 1 -
when i decompile the phymodel.smd it's looking for a "phy.bmp" texture...anyone know where this might be? since i need a texture for compiling, i'm reckoning on using a 16x16 "phy.tga" with alpha set to 0%. since the texture wont be seen in game. am i totally off the mark here?


- 2 -
when i first make my animation, how should i be going about it? I know the animation is exported with the skeleton (ValveBiped_Bip01_Pelvis). the question is what is the best way of animating that skeleton? do i import a reference?


- 3 -
when i want to compile a set of 5 various animations. one of them is a "grab" action. so i have my;

grab_mid_center.smd
grab_mid_left.smd
grab_mid_right.smd

grab_up_center.smd, etc

grab_down_center.smd, etc

what is the best ways of compiling these into source?

any infor kind people would be a great help.
 
Reply With Quote
Old 07-24-2007, 08:43 PM   #2
Superpiccolo
 
Join Date: Feb 2004
Reputation: 2
Posts: 273
Phy.bmp can be anything as when you create a physics model you need to have just some sort of texture assigned to it, just create an empty file and call it "phy.bmp".

Well animating with the Valve biped skeleton is something I have not done as yet, but the best way to animate is to set the skeleton with an IK set so you can animate much more naturally.

I have tried once to set the skeleton with an auto IK via Maya (Add Fullboyd IK) and it kinda worked, but it didn't work perfectly. I haven't looked at animating bipeds since.
So you're best bet is to start by fooling around with that.

Not sure what you are meaning with 5 various animations.
Superpiccolo is offline   Reply With Quote
Old 07-25-2007, 08:42 AM   #3
RoxyChick
 
Guest
Posts: n/a
anyone rig the ValveBiped in maya? i was looking at the rig in XSI mod tool. looks sweet.

but how do i actually EXPORT the animation to the bones version?

thanks
  Reply With Quote
Old 07-25-2007, 08:46 AM   #4
Wanted Mod
 
Guest
Posts: n/a
I can recommend you some excellent training videos targeted towards HL2 Source Modding.....I've bought some myself and highly recommend them. The small company is literally making them for every poplular 3d application which includes XSI Mod Tool, Maya, and 3dsMax....you can grab them at

http://www.noesisinteractive.com/
  Reply With Quote
Old 07-25-2007, 07:11 PM   #5
RoxyChick
 
Guest
Posts: n/a
i've had a look at that link...seems they only model and export the mesh with maya. but the animation dvds are for xsi. I really only want to do it using maya.

anyone do it sucessfully? not the dvd, but using maya for the whole process (bar compiling)

Last edited by RoxyChick: 07-26-2007 at 01:46 AM.
  Reply With Quote
Old 07-27-2007, 08:38 PM   #6
Norse_Player
 
Join Date: Aug 2006
Reputation: 14
Posts: 134
Quote:
Originally Posted by Wanted Mod View Post
I can recommend you some excellent training videos targeted towards HL2 Source Modding.....I've bought some myself and highly recommend them. The small company is literally making them for every poplular 3d application which includes XSI Mod Tool, Maya, and 3dsMax....you can grab them at

http://www.noesisinteractive.com/
They have for XSI, Maya and the Valve software (SDK Hammer Editor and various game platforms), not 3D Studio Max!

Maybe you can tell I'm a Max-user. And I made some simple maps with the Hammer Editor a long time ago (nearly a year) for CS:S.
Norse_Player is offline   Reply With Quote
Old 07-27-2007, 08:57 PM   #7
Beky
 
Guest
Posts: n/a
1) First off if you're using maya I do believe 7.0 and above get pralls maya .smd exporter, it's the only one that can export the vertex animation type file for facial expressions.

2) Anyway, export .smd and check off the export animation flag. Go to the animation tab and give your sequence a name and input the start and end frames you will be exporting. Instead of putting the reference model name in the name of smd field put in the the name of the sequence.

3) The animation is a skeletal animation meaning it contains no mesh data, all the mesh data is found in the reference model smd. The skeletal animation is referenced in the qc file with a line like this:

$sequence Name "D:\Valve\SteamApps\SourceMods\Roz_NM\modelsrc\Roz _SMD\Roz_Cot01.smd" ACT_JUMP -1 fps 30.00

where the $sequence declares the referencing of the animation
the Name you would like to call the sequence as read from modelviewer
The directory where the uncompiled reference model and animation smds are to be found
ACT_JUMP is a reference to the activity name this is necessary for the code to call up the animation(this is a large tutorial in and of itself)
-1 is if it's the only one of its kind 2,3,4 would be varieties thereof again a code thing
and finally the frames per second the animation should playback at
you could also ad loop to the end to make it do a playback loop and I think there are a few other options.

In the exporter the add to the end of line stuff is if your compiling a QC automagically which never works quit right, in fact the texture export sucks to but ths exporter in terms of getting the job done through maya kicks ??? it only took me three weeks to get it working. There's some code needing changing in the export script for vta exports, it's a pretty basic change:

http://www.chatbear.com/unity2/668/5...31/1045244/0#2

keyframe in maya using the qwerty transforms and the channels dialogue for keying eh la voila.......................................Have fun!

Last edited by Beky: 07-27-2007 at 09:01 PM.
  Reply With Quote
Old 07-27-2007, 09:04 PM   #8
RoxyChick
 
Guest
Posts: n/a
Nice one guys....thanks for the updates! I'll let you know how i get on (so far so good)
  Reply With Quote
Old 07-29-2007, 08:25 PM   #9
RoxyChick
 
Guest
Posts: n/a
Ok, back again...

ok i've got my
- player model_reference file (skinned and with my custom control rig on top)

- i've got my ak-47 (imported as a reference)

now in my animation i have my characters left_hand_ctrl constrained to the ak47_control. while the right hand is reloading and moving to the belt and back to the gun, etc.

is this the correct way of going about this?

how do i "water down" my animation and export it as a skeletal animation with no mesh data?

thanks
Pati
  Reply With Quote
Old 07-30-2007, 05:01 AM   #10
RoxyChick
 
Guest
Posts: n/a
Question

another quick little question (but very important)

I see (using the XSI mod tool) that valve have their characters in the Y-up coordinate system. yet when i import the valve smd files, the default is Z-up.

this is not a problem to change for just the models. I'm more concerned about the making/exporting my animation.

should i use Z-up for the whole process? just wondering what way valve might have done it and in what order.

stumped
  Reply With Quote
Old 07-30-2007, 05:23 AM   #11
Norse_Player
 
Join Date: Aug 2006
Reputation: 14
Posts: 134
I'm no expert, but is it possible to check which coordinate system points up when exporting?

And referencing regarding your previous post, in Max we export/import socalled biped-files (BIP-files). Made something called "funny walk", but I know just as much as you about how to export through and make it into Valve's modelviewer. And I think it would be right to export it seperately from the mesh-data. Maybe this has something with the choreography-thing they have in modelviewer?
Norse_Player is offline   Reply With Quote
Old 07-30-2007, 06:04 AM   #12
RoxyChick
 
Guest
Posts: n/a
ah yes in the valve SMD export....still no luck though.

(I've been using Prall's)
  Reply With Quote
Old 07-30-2007, 01:25 PM   #13
Beky
 
Guest
Posts: n/a
The gun should be weighted to the Anim_Attachment_Hand that it should be in. If you don't have an anim_attachment add it (name: Anim_Attachment_LH or RH.) In maya this would be a bone with the hand as the parent, in XSI a NULL again with the hand as the parent. When you export the .smd with the mesh data delete the gun (or in maya you could just assign it to a layer) you'll want to join it to the model in code using EF_BONEMERGE or make the gun a standard pick up and have the engine deel with it. Then when you export the skeletal animation just export with the export animation checked off you don't have to change anything (eg. no deleting of mesh or anything.) Export the gun separately. It should be exported at a 0,0,0 reference point it's rotation again is set in code. Oh and the bone that you export the gun with should be named the same as the anim attachment it's attached to.

As for the y axis in XSI it seems to correct itself. In Maya I fixed it in the QC with the $UpAxisY but I had a problem with the physics mode not being oriented the same I assume I had to add the $UpAxisY to the collision model to but I'm not sure I switched to XSI before it became a problem.

Last edited by Beky: 07-30-2007 at 01:34 PM.
  Reply With Quote
Old 08-07-2007, 09:53 PM   #14
RoxyChick
 
Guest
Posts: n/a
thanks for the info Beky, I've noticed from looking at some of the HL2 animations in HLMV, that they seem to be sliding on the ground? is that done at compile time (animation made in the normal way, ie connected to the ground) or do i have to set up the sliding animation on the root joint. just curious on this part.

for example there is one called roofslide or something similar. any ideas?
thanks
Roxi
  Reply With Quote
Old 08-08-2007, 11:41 PM   #15
Beky
 
Guest
Posts: n/a
If you animate the slide then you'll have to compensate for the difference between origin and distance traveled when returning to an idle or a walk, otherwise it will snap back to the origin it started from. You could plant the feet and then animate the expressions and gestures made during the slide, then have the model slide across the floor in code by setting the players velocity; give it a good logarithmic function to drive its value.

Last edited by Beky: 08-08-2007 at 11:44 PM.
  Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Art & Sound Design


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.