Acquisitions Editor: Mariann Barsolo
Development Editor: Kathryn Duggan
Technical Editor: Roland Hess
Production Editor: Elizabeth Ginns Britten
Copy Editor: Sharon Wilkey
Production Manager: Tim Tate
Vice President and Executive Group Publisher: Richard Swadley
Vice President and Executive Publisher: Joseph B. Wikert
Vice President and Publisher: Neil Edde
Project Manager, I: Laura Moss-Hollister
Media Associate Producer: Kit Malone
Media Quality Assurance: Josh Frank
Compositor and Book Designer: Kate Kaminski, Happenstance Type-O-Rama
Proofreader: C.M. Jones
Indexer: Ted Laux
Cover Designer: Ryan Sneed
Cover Images: Milos Zajc (school corridor)
Mike Pan (strawberries and milk)
Luma Studios (ClubSilo racing game)
Tony Mullen (pop bottle and boxes tumbling)
Blender Foundation | peach.blender.org (cartoon animals)
Copyright 2008 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-19280-1
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions .
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recommendations it may make. Further, readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (800) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.
Library of Congress Cataloging-in-Publication Data
Mullen, Tony, 1971
Bounce, tumble, and splash! : simulating the physical world with Blender 3D / Tony Mullen. -- 1st ed.
p. cm.
Includes index.
ISBN 978-0-470-19280-1 (paper/cd-rom)
1. Computer graphics. 2. Computer simulation. 3. Blender (Computer file) 4. Computer animation. 5. Three-dimensional display systems. I. Title.
T385.M8425 2008
006.696--dc22
2008014650
TRADEMARKS: Wiley, the Wiley logo, and the Sybex logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.
10 9 8 7 6 5 4 3 2 1
Dear Reader,
Thank you for choosing Bounce, Tumble, and Splash! Simulating the Physical World with Blender 3D. This book is part of a family of premium-quality Sybex books, all of which are written by outstanding authors who combine practical experience with a gift for teaching.
Sybex was founded in 1976. More than thirty years later, were still committed to producing consistently exceptional books. With each of our titles were working hard to set a new standard for the industry. From the paper we print on, to the authors we work with, our goal is to bring you the best books available.
I hope you see all that reflected in these pages. Id be very interested to hear your comments and get your feedback on how were doing. Feel free to let me know what you think about this or any other Sybex book by sending me an email at nedde@wiley.com , or if you think youve found a technical error in this book, please visit http://sybex.custhelp.com . Customer feedback is critical to our efforts at Sybex.
Best regards,
Neil Edde
Vice President and Publisher
Sybex, an Imprint of Wiley
To Yuka
Acknowledgments
One of the most frequent things I hear from people seeing Blender for the first time is, Wow, and this is free ? Of course, in the sense of free as in free software , it most certainly is. It is free for users to copy and distribute, and it is free to be developed and modified by anybody who wants to do so. But the truth is that nothing as good as Blender comes without a cost. The cost of Blender is paid in the form of countless hours donated by the dedicated and highly skilled team of volunteer developers who make Blender what it is. For this reason, I would first and foremost like to thank them, the Blender developers, and Ton Roosendaal, Blenders own benevolent dictator for life, for all their hard work and dedication. Without them, there would be no Blender. Please visit http://wiki.blender.org/index.php/List_of_Contributors for a complete list of the current developers and the specific work they have done.
I would especially like to thank some of the developers who have been particularly helpful to me in my work on this book: Martin Poirier (theeth), Janne Karhu (jahka), Daniel Genrich (Genscher), Jens Ole Wund (bjornmose), Dolf Veenlivet (macouno), Joe Eagar (joeedh), Ramon Carlos Ruiz (RCruiz), Erwin Coumans, and Nils Theurey for their patience and responsiveness to my various questions and pestering. Id like to give a special thank you to Tom Musgrove (LetterRip) and all those who worked to prepare the 2.46 release for placing such a high priority on maintaining a release schedule that facilitates the creation of good documentation, and also to Roland Hess for his work as technical editor of this book.
Thanks also to the Peach team of developers and artists: Campbell Barton, Sacha Goedegebure, Andy Goralczyk, William Reynish, Enrico Valenza, Brecht van Lommel, and Nathan Vegdahl, for raising the bar yet again for Blender features and artwork, and for putting up with me hanging around, drinking their espresso, and peeking over their shoulders for a week. Many other developers and users have also helped me in various ways, and Im very grateful for all the support Ive received from the Blender community. I cant begin to list all of the individuals at BlenderArtists.org whose artwork, comments, and tutorials have helped me to learn what I know about Blender, but if you spend a little time reading the forums, you will know who many of them are soon enough. Thanks also to Bart Veldhuizen and all the contributors to BlenderNation.com for their support and for the great service they provide the Blender community.