jmonkeyengine 3.0 beginner''''s guide

352 2.4K 1
jmonkeyengine 3.0 beginner''''s guide

Đ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

www.it-ebooks.info jMonkeyEngine 3.0 Beginner's Guide Develop professional 3D games for desktop, web, and mobile, all in the familiar Java programming language Ruth Kusterer BIRMINGHAM - MUMBAI www.it-ebooks.info jMonkeyEngine 3.0 Beginner's Guide Copyright © 2013 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmied in any form or by any means, without the prior wrien permission of the publisher, except in the case of brief quotaons embedded in crical arcles or reviews. Every eort has been made in the preparaon of this book to ensure the accuracy of the informaon presented. However, the informaon contained in this book is sold without warranty, either express or implied. Neither the author, 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 informaon about all of the companies and products menoned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this informaon. First published: June 2013 Producon Reference: 1180613 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-84951-646-4 www.packtpub.com Cover Image by Girish Suryawanshi (girish.suryawanshi@gmail.com) www.it-ebooks.info Credits Author Ruth Kusterer Reviewers Peter Backx T. Joseph Duchesne Jens Hohmuth Dany Rioux Glauco Márdano Acquision Editor Antony Lowe Lead Technical Editor Mayur Hule Technical Editors Prasad Dalvi Pushpak Poddar Kir Pujari Project Coordinator Michelle Quadros Proofreaders Aaron Nash Jonathan Todd Indexer Tejal Soni Producon Coordinator Nitesh Thakur Cover Work Nitesh Thakur www.it-ebooks.info About the Author Ruth Kusterer became intrigued by Java and open source soware while compleng her degree in computaonal linguiscs. In 2005, she joined Sun Microsystems, Inc. as a technical writer for netbeans.org where she wrote 100 NetBeans IDE Tips & Tricks. Since 2010, she has been working for CA Technologies, Inc. where she's a senior technical writer for security soware. In her spare me, she hangs out on jMonkeyEngine.org and strives eternally to write the ulmate Java game. I would like to thank the jMonkeyEngine core team for answering a BigInteger of newbie quesons and helping out with non-trivial code samples. I would also like to thank all the jMonkeys posng inspiring videos of completed games, and a big shout-out to the NetBeans community whose NetBeans plaorm is the base of the jMonkeyEngine SDK. www.it-ebooks.info About the Reviewers Peter Backx is a soware developer and architect. He has used Java for more than a decade to shape unique user experiences and build rock-solid scalable soware. He received a PhD in Computer Sciences from Ghent University, Belgium. Peter maintains a technical blog at http://www.streamhead.com. T. Joseph Duchesne holds a Computer Engineering degree from Dalhousie University and works in soware-as-a-service web applicaons, primarily in backend infrastructure using a wide variety of technologies. In his free me, he enjoys video game development and has competed in open source/independent game development compeons. Joseph is currently Sr. Infrastructure and Soware Engineer at SimplyCast ( www.simplycast.com), an online soware-as-a-service markeng plaorm. www.it-ebooks.info Jens Hohmuth graduated in Computer Science in 1998 from the University of Applied Sciences of Zwickau, Germany. Jens has been working for more than 10 years as a professional Soware Developer. At his day job at a German company, he works for banks and nancial services providers applying e-banking soluons on a wide range of dierent plaorms. Jens has experse in analysis, design, implementaon, and support of soware projects from small to large scale. He is an gile soware development follower and a natural born problem solver. Jens has outstanding training and presentaon skills, and created a popular Intel Protected Mode and MMX Tutorial series as his internship back in college. This tutorial is sll one of the top references for Intel Protected Mode today. At night me, he is a wannabe game developer and the founder of the open source Java GUI Framework "Niy GUI". Besides "Niy GUI" he has contributed to many other open source projects. When he's not coding he enjoys creang 2D and 3D art as well as playing his guitar and piano. In the summerme, you can nd him outside on his mountain bike (probably with his Macbook Air in the backpack). I'd like to thank all the jMonkeyEngine core members for being extremely friendly and a great joy to work with. And of course all the "Niy GUI" users (and crics) in the world for their connuing support. Dany Rioux received his programmer/analyst diploma more than 15 years ago at the Herzing College in Montreal, Canada. Although he le the programming side of things for numerous years to work in user support, he has come back to his rst love and has been acvely working on Disenthral, an RPG space game, based on the jMonkeyEngine3, for the past two years. www.it-ebooks.info www.PacktPub.com Support les, eBooks, discount offers and more You might want to visit www.PacktPub.com for support les and downloads related to your book. Did you know that Packt oers eBook versions of every book published, with PDF and ePub les available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entled 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 collecon of free technical arcles, sign up for a range of free newsleers and receive exclusive discounts and oers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant soluons to your IT quesons? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's enre library of books. Why Subscribe?  Fully searchable across every book published by Packt  Copy and paste, print and bookmark content  On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt Publishing at www.PacktPub.com, you can use this to access PacktLib today and view nine enrely free books. Simply use your login credenals for immediate access. www.it-ebooks.info www.it-ebooks.info Table of Contents Preface 1 Chapter 1: Installing jMonkeyEngine 11 Installaon requirements for game developers 12 Time for acon – installing the jMonkeyEngine SDK 12 jMonkeyEngine SDK at your service 14 Can I work in other Java IDEs? 15 Time for acon – running a demo 15 Time for acon – creang a project 16 Assets and the art pipeline 19 Time for acon – distribung a game 20 Can I sell my jMonkeyEngine game? 21 Summary 22 Chapter 2: Creang Your First 3D Scene 23 A basic template to inialize scenes 23 Time for acon – inializing a scene step by step 24 Starng and stopping the applicaon 27 Time for acon – starng the applicaon 27 Orient yourself in 3D space 28 Time for acon – nding the spot 29 And how do I say that in Java? 31 Time for acon – posion it! 31 Time for acon – scale it! 33 Time for acon – rotate it! 34 Time for acon – rotate it again, Sam 35 Where am I? 36 Time for acon – navigang the scene 37 Populang the scene 38 Time for acon – node versus geometry 40 www.it-ebooks.info [...]... create www.it-ebooks.info Installing jMonkeyEngine In this chapter you will learn: • What the hardware and software requirements are • How to install the jMonkeyEngine SDK • How the tools in the jMonkeyEngine SDK make a developer's life easier • How to create and distribute jMonkeyEngine games Installation requirements for game developers At the time of printing, the jMonkeyEngine SDK needs 40 MB of memory,... our best to address it [ 10 ] www.it-ebooks.info 1 Installing jMonkeyEngine When a group of heroes set out on a quest, they grab their armor and weapons—when you set out on a game development adventure, you grab the jMonkeyEngine SDK The jMonkeyEngine Software Development Kit (SDK) contains everything that you need to get started quickly: the jMonkeyEngine libraries, Javadoc, sample code, and lots of... the jMonkeyEngine SDK The jMonkey team devised the jMonkeyEngine SDK to make the installation process as smooth as possible: 1 2 3 Go to http:/ /jmonkeyengine. org/downloads/ Download the jME3 SDK for your operating system and unzip it, if necessary Double-click on the installer and complete the installation wizard [ 12 ] www.it-ebooks.info Chapter 1 It's time for your first test run: 1 Find the jMonkeyEngine. .. www.it-ebooks.info Installing jMonkeyEngine The other two windows you can ignore for now Later you may use the FilterExplorer window to configure special effects, and the AssetPackBrowser window to bundle up collections of 3D models Congrats, your tools are ready, and you have accomplished your first mission Let's take a closer look at the jMonkeyEngine SDK jMonkeyEngine SDK at your service The jMonkeyEngine SDK... your graphical user interface for the jMonkeyEngine library The jMonkey team devised this integrated development environment (IDE) especially for 3D game development with Java The jMonkeyEngine SDK assists you from start to end, whether you write code, integrate game assets, lay out scenes, or deploy the finished application Creating your Java game projects with jMonkeyEngine SDK has the added value... Apache Ant build tool is already included when you install the SDK Did you know? jMonkeyEngine SDK is built on top of the NetBeans Platform This means that you can install all kinds of NetBeans IDE plugins The NetBeans plugins prepackaged in the jMonkeyEngine SDK include version control tools and a Java debugger Open the jMonkeyEngine SDK and choose Tools | Plugins from the menu, then click on Available... www.it-ebooks.info Chapter 1 Can I work in other Java IDEs? Although this book will repeatedly tell you how awesome the jMonkeyEngine SDK is, you are not forced to use it for coding The jMonkeyEngine library is open source software: If you download the latest binary bundle from http://www .jmonkeyengine. com/ nightly/, you can manually add the JAR files from the lib directory to your CLASSPATH, just like... external tools The jMonkeyEngine SDK does not include any multimedia editors This is because a game engine should not prescribe the artist's choice of design software You are free to create assets in any third-party tools that you fancy and have access to Just make certain that you can export the artwork in formats that jMonkeyEngine supports [ 19 ] www.it-ebooks.info Installing jMonkeyEngine The following... distributable builds of your BasicGame project that runs fine on your desktop, outside the jMonkeyEngine SDK Impressive—you have just built a basic 3D application that runs on the three most widely used operating systems Notice how you didn't have to configure any CLASSPATH or library paths Can I sell my jMonkeyEngine game? Yes, the jMonkeyEngine SDK is a free open source software released under the BSD license... source software released under the BSD license To answer the most common questions right away: ‹‹ You do not pay any fees to use the jMonkeyEngine libraries or SDK ‹‹ You can use the jMonkeyEngine for hobby, educational, or commercial purposes ‹‹ You can include the jMonkeyEngine libraries in a Java application that you sell or give away for free [ 21 ] www.it-ebooks.info . ps 30 9 Game-asset resources 30 9 Key input triggers 31 0 Mouse 31 0 Keyboard 31 1 Joysck 31 2 Seng up jMonkeyEngine in Eclipse 31 2 Downloading the soware 31 3 Creang a new game project 31 3 Seng. don'ts 30 1 Super powers – Go! 30 2 Keep it simple 30 3 Polishing o the last pages 30 4 Summary 30 5 Appendix B: Addional Resources for Fellow jMonkeys 30 7 Game-development resources 30 9 Game-development. color 1 30 Time for acon – oooh, shiny! 131 Time for acon – illuminated opaque textures 133 Time for acon – semitransparent texture 134 Time for acon – transparent textures 136 Mulmapping 138 Time

Ngày đăng: 01/08/2014, 17:04

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Author

  • About the Reviewers

  • www.PacktPub.com

  • Table of Contents

  • Preface

  • Chapter 1: Installing jMonkeyEngine

    • Installation requirements for game developers

    • Time for action – installing the jMonkeyEngine SDK

    • jMonkeyEngine SDK at your service

    • Can I work in other Java IDEs?

    • Time for action – running a demo

    • Time for action – creating a project

    • Assets and the art pipeline

    • Time for action – distributing a game

    • Can I sell my jMonkeyEngine game?

    • Summary

    • Chapter 2: Creating Your First 3D Scene

      • A basic template to initialize scenes

      • Time for action – initializing a scene step by step

Tài liệu cùng người dùng

Tài liệu liên quan