Boids are one of those things you don't see a lot of because they seem to be complicated - but in actuality, they are relatively simple, and really add a nice atmosphere to the game. In fact, I think this could be seen as a stepping stone to getting a custom character in the game as it may be a bit simpler but have much of the same base stuff a character would.
Anyway, I haven't seen any tutorials on Boids, and not a lot of information in general, so I thought I'd take a stab at filling the hole with the technique I used (along with the files) to get a Boid into CryEngine. And though it's not perfect, it should help get one in the game while I improve it overtime. This turned into a 7 part youtube series (but less than an hour in length in total) - and if you already are familiar with rigging, skinning, and constraints, you can simply skip to part 6 & 7 (about 13 minutes total) on how to set-up the files and export specifically. If you're going to use these files other than references, remove the .txt extension from the file names. (And don't forget to edit your /Game/Animations/Animations.cba file). I will likely make a new C++ class for this snake Boid (to make it's movement more snake-like and perhaps tweak somethings that can't be done in LUA), and post the video for that as well just for a thorough coverage of the topic. (I'll also correct any previous errors I find or informed about in this section)
Part 1 :
Part 5: Finishing spline IK and constraints. What is left off from the previous video: After setting up the spline IK again, the snake was flipped 180 (facing +y instead of -y). What I did was simply reset the pivot of the spline line to 0,0,0 - and rotated the spline line about that pivot 180 (so the spline line faced +y instead of -y). That's all the video does not show.
Part 6: Note, I wasn't quite familiar with exporting more than one mesh, but I remembered you need to load all your meshes (if more than one) into the export box, and tick 'EXPORT PER NODE' (not merged). Then, in the character editor, load in your main .chr file (in my case it's the snake), and then import the other's as attachments (in my case again, the snake tongue). I may get around to posting this in video form just for robustness.
There may be better ways to do some of the things, there may be small errors - so if you find any, feel free to PM me and I'll add the changes to this thread.
Just a quick question and was hoping you could answer. I have created a Boid with a custom animation etc. but i have a couple of questions regarding continuity. I have used the Chicken Lua as a base and therefor it has retained the chicken sound, is it possible to change this? Also, I dont know how to apply a custom material, could you specify how to do this please?
Connect and collaborate with CRYENGINE developers in the official Forums. Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
All rights reserved. Crytek, Crysis, Crysis Warhead, Crysis Wars and CRYENGINE® are registered trademarks
of Crytek in the EU, the USA & other countries. All other trademarks are property of their respective owners.