1. Trang chủ
  2. » Công Nghệ Thông Tin

OGRE 3d 1 7 application development cookbook

306 103 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 306
Dung lượng 18,27 MB

Nội dung

www.it-ebooks.info OGRE 3D 1.7 Application Development Cookbook Over 50 recipes to provide world-class 3D graphics solutions with OGRE 3D Ilya Grinblat Alex Peterson BIRMINGHAM - MUMBAI www.it-ebooks.info OGRE 3D 1.7 Application Development Cookbook Copyright © 2012 Packt Publishing All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: May 2012 Production Reference: 1270412 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-84951-456-9 www.packtpub.com Cover Image by Rakesh Shejwal (shejwal.rakesh@gmail.com) www.it-ebooks.info Credits Authors Project Coordinator Ilya Grinblat Shubhanjan Chatterjee Alex Peterson Proofreader Aaron Nash Reviewers Matthew Casperson Mario Cecere Thomas Trocha Indexer Senior Acquisition Editor Monica Ajmera Usha Iyer Graphics Lead Technical Editor Manu Joseph Hyacintha D'souza Production Coordinator Technical Editor Lubna Shaikh Alwin Roy Shantanu Zagade Cover Work Alwin Roy www.it-ebooks.info About the Authors Ilya Grinblat started to work 35 years ago as developer of control systems, and some years later, he moved to the development of Computer Aided Design software He was a development manager of the architectural software ARC+, and was working in the development of the 3D city software—a software for 3D editing and management of a 3D printer Last year, he was working in the development of simulators and the 3D GIS software He was using Ogre to develop Civil Simulate—a software for 3D modeling of roads and driving simulation I would like to thank many people from Packt publishing I would also like to thank my wife Irena for giving me the time and support to write this book Alex Peterson is a graphics enthusiast with a background in game programming His work with the Ogre engine is primarily due to programming a universe size game engine, a space skybox creator called Spacescape, and most recently, mobile games Though his current life is filled with his family and running a business, he makes it a point be active musically and spiritually He aims to promote his faith in God through his work to serve others, whether it is by fueling their creativity, entertaining them, or educating them You can find Alex online at http://alexcpeterson.com I would like to thank my Father, my family, my wife Lydia, the Ogre development team, Steve Streeting, the Ogre forum moderators, Sean O'Neil, Chris, Ava Barneys, and all the kind people who have helped me be a part of this work Thank you www.it-ebooks.info About the Reviewers Matthew Casperson has worked in the IT industry for nearly a decade in a variety of roles, and is the author of Away3D 3.6 Essentials In his spare time, he loves nothing more than to experiment with the latest Web and multimedia technologies Many of these experiments can be found on Matthew's personal website at http://goo.gl/2Hgr Thomas Trocha found his passion for the world of computer programming in the mid eighties, using one of the first home computers - TI99/4a Since then, he has studied computer science, and developed his knowledge in a wide spectrum of computer technologies Inspired by the great online 48h game coding competition "Ludum Dare", he shifted to 3D game development, which finally ended up in him founding his own game company ToMaGa www.it-ebooks.info www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy Get in touch with us at service@packtpub.com for more details At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library Here, you can access, read and search across Packt's entire library of books.  Why Subscribe? ff Fully searchable across every book published by Packt ff Copy and paste, print and bookmark content ff On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books Simply use your login credentials for immediate access www.it-ebooks.info Table of Contents Preface 1 Chapter 1: Delving Deep into Application Design Introduction 5 Creating a Win32 Ogre application Creating an MFC Ogre application 19 Creating an MFC Ogre application with a ribbon 27 Creating a Windows Forms Ogre application 30 Creating an Ogre plugin 34 Creating a custom resource manager 40 Chapter 2: Let Us Be Multimodal 47 Chapter 3: Managing Objects and Scenes 71 Introduction 47 Using the keyboard input to navigate an Ogre scene 47 Using the mouse input to navigate an Ogre scene 53 Using voice input with static grammar 56 Using voice input with dynamic grammar 66 Using text-to-speech to make the application speak 68 Introduction 71 Creating terrain from a LandXML file 72 Creating Delaunay triangulation 77 Creating manual objects 81 Creating parametric superellipsoids 83 Adding meshes on terrain 89 Adding trees as billboards 91 Creating and editing a scene 95 Saving a scene to an XML file 100 Loading a scene from an XML file 104 www.it-ebooks.info Table of Contents Chapter 4: Let There Be Light 107 Chapter 5: Playing with Materials 133 Chapter 6: Learning to Move 153 Chapter 7: Implementing Animations 175 Chapter 8: Flashy Multimedia 215 Introduction 107 Creating weather controls 107 Creating lights 113 Creating dynamic effects 117 Managing particle system 124 Managing shadows 128 Introduction 133 Using geoimages as terrain textures 133 Creating transparent materials 137 Creating dynamic textures 141 Creating movable text 145 2D image manipulation 147 Introduction 153 Walking between points 153 Walking along a path 156 Collision detection 159 Converting a 2D path into a 3D path 164 Walking on terrain 169 Linked movement 172 Introduction 175 Creating skeletal animations 176 Creating morph animations 181 Creating pose animations 185 Creating SceneNode animations 189 Creating numeric value animations 191 Creating linked animation 194 Animation using controllers 196 Creating linked controllers 200 Blending animations 205 Creating animated light 210 Introduction 215 Render to texture 215 Creating a mirror 220 Creating a video 225 ii www.it-ebooks.info Table of Contents Using sounds Using voice Video to texture 228 232 236 Chapter 9: Queries and Views 243 Introduction 243 Predefined views 243 Zoom management 250 Zooming to a selected object 258 Orbiting an object 263 Selecting objects 267 Object visibility 273 Index 281 iii www.it-ebooks.info ... files: \ \ \OgreSDK_ vc10_v1 -7 -1\ boost _1_ 42 10 Click on the second line, and enter the relative path to the Ogre header files \ \ \OgreSDK_vc10_v1 -7 -1\ include \OGRE, and click OK 10 www.it-ebooks.info... Chapter 11 Edit the Library Directories property in the same way Add the library directory \ \ \OgreSDK_vc10_v1 -7 -1\ boost _1_ 42\lib for Boost, and \ \ \ OgreSDK_vc10_v1 -7 -1\ lib\debug for Ogre, then... Materials 13 3 Chapter 6: Learning to Move 15 3 Chapter 7: Implementing Animations 17 5 Chapter 8: Flashy Multimedia 215 Introduction 10 7 Creating weather controls 10 7 Creating lights 11 3 Creating

Ngày đăng: 27/03/2019, 15:18

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN