• Simple prop animation
    7 replies, posted
Hey everyone Im having some problems making a simple animated prop for source. After compiling the .smd's with Crowbar the animations dont work in hammer. (I know that the textures are missing I am just testing atm) Im using [URL="https://www.blender.org/download/"]Blender 2.78a 64 bit[/URL], [URL="http://steamreview.org/BlenderSourceTools/"]Blender Source Tools 2.7.1[/URL] and Crowbar Version 0.24.0.0 The following pictures show what I have so far: one reference smd with no animation one idle smd with an animation that doesnt do anything ONE smd that is being animated (I used "Shape Keys" ) My .qc file: [CODE]$modelname mymodels/glass_door_anim.mdl $model "Body" "glass_door_anim_ref.smd" $cdmaterials "" $surfaceprop "glass" $sequence "idle" "glass_door_anim_idle.smd" fps 1 loop $sequence "open" "glass_door_anim_open.smd" fps 30 $collisionmodel "glass_door_anim_phys.smd" { $Mass 100 $concave }[/CODE] [DEL]all the files can be downloaded [URL="https://drive.google.com/open?id=0B47HjQv-pdk4X1MtcURIRDc0dFk"]here[/URL][/DEL] [IMG]http://i.imgur.com/AoBzbQb.png[/IMG] To export a .smd I clicked on the "scene export" for the reference and the phys and on "glass_door_ref.smd" for the others (changed names later) [IMG]http://i.imgur.com/JTssCJO.png[/IMG] [url][/url] [editline]24th November 2016[/editline] I made some progress!!! Animations work now (for one side of the door). Turns out I have to use bones! Iwas using 3ds max first and you didnt have to there. Heres what helped me: [url]https://developer.valvesoftware.com/wiki/Animation_in_Blender[/url]
This does not work tho (animation doesnt do anything again) >:( Bones are from the same Skeleton [IMG]http://i.imgur.com/s6ktE4W.png[/IMG]
give it to me i will do it for you
[QUOTE=Sillirion;51426478]give it to me i will do it for you[/QUOTE] Thank you! [DEL]Heres a link: [URL="https://drive.google.com/open?id=0B47HjQv-pdk4RjZoV01UeWgwWDQ"]Google Drive download[/URL][/DEL] I dont care about textures yet I just want to see how its done properly so I know how to do it in the future Also I have no idea how to use collisions that go with the animation
[QUOTE=KingPommes;51426972]Thank you! Heres a link: [URL="https://drive.google.com/open?id=0B47HjQv-pdk4RjZoV01UeWgwWDQ"]Google Drive download[/URL] I dont care about textures yet I just want to see how its done properly so I know how to do it in the future Also I have no idea how to use collisions that go with the animation[/QUOTE] well, you have 2 solutions i think, one is change collisiontype on animation by lua or make 2 separate models, one for the left, one for the right door, giving the impression of only door on animations. what do you prefer?
[QUOTE=Sillirion;51430286]well, you have 2 solutions i think, one is change collisiontype on animation by lua or make 2 separate models, one for the left, one for the right door, giving the impression of only door on animations. what do you prefer?[/QUOTE] Mhhh Just one door I guess. I had that working myself before. Why is it not working when I add another bone ?! About the collsion: Its weird that its not possible since there are models that come with source that pretty much are what I want just with a different model.... I think you just give the phys.smd some bones similar to the ones in the other smds and it works? [IMG]http://i.imgur.com/9DDFwOn.png[/IMG] [IMG]http://i.imgur.com/9QzW76I.png[/IMG]
It worked !!!! I will find out how to create a collision that moves with the model and post a in depth guide on what I did since I did not find any tutorials [IMG]http://i.imgur.com/uzNsnWk.png[/IMG]
ok, fine... congrats
Sorry, you need to Log In to post a reply to this thread.