TAILIEUCHUNG - 3D Game Programming All in One- P24

3D Game Programming All in One- P24: During the past several years while working on the Tubettiland “Online Campaign” software and more recently while working on the Tubettiworld game, I figure I’ve received more than a hundred queries from people of all ages about how to get started making games. There were queries from 40-year-olds and 13-year-olds and every age in between. Most e-mails were from guys I would estimate to be in their late teens or early 20s. | Building the World 597 scale 1 1 1 dataBlock CampfireEmitterNode emitter CampfireEmitter velocity 1 Okay save your files and then launch Koob. When your player spawns in turn to the right you should see a little fire burning in the gully there as shown in Figure . The flame is the glowing object to the left of the crosshair in the picture. Now let s add the smoke. We ll do it slightly differently. We begin by defining the particle and emitter as before but then we ll place it in an easier way using the World Editor. Open up the file you created earlier and add the following Figure Campfire. datablock ParticleData CampfireSmoke textureName data particles smoke dragCoefficient gravityCoefficient inheritedVelFactor lifetimeMS 4000 lifetimeVarianceMS 500 uselnvAlpha false spinRandomMin spinRandomMax colors 0 colors 1 colors 2 sizes 0 sizes 1 sizes 2 times 0 times 1 times 2 Team LRN 598 Chapter 21 Creating the Game Mission datablock ParticleEmitterData CampfireSmokeEmitter ejectionPeriodMS 20 periodVarianceMS 5 ejectionVelocity velocityVariance thetaMin thetaMax particles CampfireSmoke datablock ParticleEmitterNodeData CampfireSmokeEmitterNode timeMultiple 1 Save your work and then launch Koob. Locate the campfire and face it in camera fly mode press F8 . Open the World Editor press F11 and then enter the World Editor Creator press F4 . Browse the Tree view until you locate Mission Objects environment particleEmitter. Click it to place another particle emitter. You will get the Building Object ParticleEmitterNode dialog box. Using the illustration as a guide choose CampfireSmokeEmitterNode from the datablock list and then choose CampfireSmokeEmitter from the Particle data list see Figure . After the smoke appears move it with the cursor until it s positioned directly over the campfire. Press F11 to get out of the editor grab .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.