FXWars! Catapult! (Trebuchet) : Westiemad


#25

yeah i think it might tilt the frame slightly, i’ll have to have a look, i tried a few values.


#26

Could you post a shot of the rig? Maybe just the constraints visible, or explain how it’s set up or whatever you want. What kind of constraints are holding the whole thing together and such.

Not just to satisfy my curiosity :), I was thinking someone here could maybe come up with a solution for those wheels once the details are known.


#27

Sure.

The Rig:
The major parts are all grouped together, so u have each wheel, the frame and the arm all in seperate groups. These are then all made in active rigid bodies. Hinge constaints are then made between the arm and the frame, then each wheel and the frame. The hinges can then be moved into position (of where u want it to pivot). I had a problem with whated out hinge constraints, so i created pins, then moved them into position, changed them to directionalhinge, and rotated them, and then changed those to hinge. You can just create hinge tho. All parts have gravity. I have changed the collision layers for the objects. Basically, if you have a number of objects and they are all on different collision layers, they will never hit each other. This makes it easier on the solver to deal with everything. The frame is on layer 0, arm is on layer 1, and the wheels on layer 2. I have used stand ins for the wheels. A stand in is exactly that, it stands in to the object, but is perfect in tesselation, so the wheels are spheres. To make the arm swing I have used a spring constraint. One end is on the arm, (which has its centre of mass out towards the weights), and the other end is parented to the frame (not constrained to it, eg i didn’t select the arm and the frame and make a hinge, as this causes the 2 to jump together). Its parented to the frame so that as the catapult moves, the arm can still return to the centre of the swing, and not try and go back to its original position somewhere in the distance.

Things to check> normals, bit me again today, mass, things act very differently on the mass attribute, collision layers.

I’m having probs with the sack, still its all good fun, i don’t think this is gonna be as impressive as Derbys tho (by a long way).


#28

i made my catapult completely dynamic, it releases the stone exactly like one would in the real world, and it plated back in the viewport. The downside was that after much tweaking, I couldn’t get the stone to fly more than 50ft. So I have taken that completely dynamic idea away, and have stuck to a rope and a large fireball. Not as complete as Derby’s, but hey ho.


#29

mental note large fluid containers take far to long to render, although the effects look nice. 191 640*480 frames took a night to render, way to slow for me. must finish destory and cache all.


#30

I’m not dead. Or have i finished, I have to finish writing a script and then rendering it out (after baking it), here is a render of the catapult, not in its final surroundings mind, but i hope its dynamic enough for u, no keyframes at all.

To do:
Landscape - model the ground, and maybe a tree (only 1 tho, jk)
Rigid body expression - clever bit to make it play in the viewport
Bake simulations - make everything predictable
Render - yes you will have to perfom a crappy lighting job on it all, and not make everyone sick with your camera cuts.

TEST ANIMATION:

www.members.lycos.co.uk/westiemad/catapult.avi (1.36mb)


#31

yay the coding is complete, after spending the morning trying debug something. Hopefully u guys will give me some feedback on the animation on the above post, that fireball will smash into the tower on the first or second page. Can get on with that bit now.


#32

Hey Westie atlast we got to see your fireball it looks really good. The particles may be to big and to few, when its sitting still its buring the frame to much (maybe lowering the wind) and it looks too systematic. Ofcourse i can understand that adding more particles could make the rendering time unbearable.

Have fun
BR


#33

many thanks squire, I shall make the changes, I’m sure if i ramp the rate up a few times it won’t make too much difference.

Thanks for the feedback.


#34

Good job so far! Could you please explain how you did the ropes?


#35

Looks awesome :slight_smile: although, maybe after it rolls forward,and goes back, make the front ropes go taught and have a slight bit of roll the other direction agtain, just to show this is an incredible force.


#36

Ropes:

Make a cylinder and scale it out.

Increase the number of divisions along its length (i think mine are 10)

Select all the points at each division and make a cluster (you’ll end up with 10 clusters i think)

next create a poly cube (i scaled my cubes to 0.5 in all axis)

point snap the cube to a cluster, then duplicate the cube and point snap it to the next one and so on, until you have a cube at the position of each cluster.

freeze transform all the cube values

select the cubes and make them active rigid bodies

with the still selected add them to gravity

press play to check that the all fall, then rewind

create a pin constraint between all the cubes, first and second, second and thrid, thrid and fourth etc.

press play and they will all fall to earth connected

you can then pin or spring constrain one of the end cubes to a passive rigid body so it doesn’t fall forever.

Thanks for the feedback guys, I will try and get it all sorted. Much appriciated


#37

damn i forgot to mention. once the cubes all fall how you want, point constain the coresponding cluster to its cube this way it will move the cylinder, don’t orient constrain it tho as the cubes will spin.


#38

hey Westie

tx for the info on the ropes…
im begining to work my dynamics, and was craking my head on that :slight_smile:
cool work M8


#39

glad i could help you out m8, any questions just post them.


#40

This post is the same in my WIP thread as it is in the entry thread.

WESTIEMAD’S ENTRY
Well I’m done, I won’t have any more time to do anything on it, there are 3 files avaliable, a crappy encoded one that is about 12.51mb, and a nice shiney one (thats the one you should get) thats about 46.23mb. There is also the required simple side view with all the bells and whistles turned off (6.5mb).

About the entry.
There are no keyframes on any of the objects, except a camera which are stepped keyframes.
There are a few expressions to drive the birds, the arm of the catapult (to ensure it evaluates corretly, which is more of a debugging command), one on the walls of the castle to get them to react to gravity.
Particles are cloud type, software rendered, 2 particle emitters, shaded using particle cloud, with ramp opactiyPP and radiusPP.
900 frames long.
Envsky for the sky texture.
Pin and hinge constraints used only.

I have learnt a fair amount in this little project, I’ve started to flex the dependancy graph in maya in a way that it shouldn’t be used, and have got a couple of new tricks up my sleeve, as well as a new found confidence in trying out new stuff. I’m not a texture artist or a lighter but dynamically its pretty sound. Hope you like it as much as I enjoyed making it.

If anyone could help me host them I would be very very appricative.

www.members.lycos.co.uk/westiemad/westiemad-fullLOW.mov

http://www.members.lycos.co.uk/westiemad2/westiemad-fullHIGH.mov (NOW UP!!)

www.members.lycos.co.uk/westiemad/westiemad-side.mov

NEW MIRROR

http://www.3dcg.co.uk/westie/westiemad-fullHIGH.mov

http://www.3dcg.co.uk/westie/westiemad-fullLOW.mov

http://www.3dcg.co.uk/westie/westiemad-side.mov

AnDy


#41

There are 3 stills for the 3 parts of the video.


#42

Hey westiemad great job :thumbsup:

The catapult motion looks just right, you really get the feeling its a huge solid object slung around and out.

My only crit is the impact it looks like a slow-mo but im guessing thats what you were after, Personally id love to see it at full speed blowing that wall apart! :slight_smile:

anyway looks great!

:applause:


#43

thanks :slight_smile: , it does go a bit slow mo at the end, but it all about the catapult animation, e.g. how it behaves dynamically.


#44

new mirror added to help the file downloads, as reports of problems on the lycos ones.