CIS 488/588 Bruce R. Maxim UM-Dearborn

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Managing Your Site – Lesson 61 Managing Your Site Lesson 6.
Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
Create a Simple Game in Scratch
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010 modified July 2011.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
RoboCell and Cell Setup
LightWave 8 Model Processing and Clean Up By Adam Bava Chico State Game Studios.
Inventor Or How to build things.
Lights Camera Action! Part 3: BDE Events By Deborah Nelson under the direction of Professor Susan Rodger Duke University July 2008.
5/20/20151 Using UDK Editor CIS 488/588 Bruce R. Maxim UM-Dearborn.
5/24/20151 Torque Constructor CIS 487/587 Bruce R. Maxim UM-Dearborn.
Unreal Matinee Ch. 13 CIS 488/588 Nick Martineau UM-Dearborn.
First some catch-up. Everyone who uses slide presentation software should regularly check their show in show mode. This is the end product. You need to.
CSE4MOD Bot Navigation and Karma Paul Taylor 2009.
Copyright © 2015 Curt Hill Building a Simple Level Adding Some Standard Actors.
EEC-693/793 Applied Computer Vision with Depth Cameras Lecture 13 Wenbing Zhao
Making a Playable DVD movie using your digital photos And adding music to the movie.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
Change in your CAD Project File - it happens all the time in robotics.
GAME:IT Helicopter Objectives: Review skills in making directional sprites Create objects that shoot and destroy for points Create random enemies on the.
Learning Unity. Getting Unity
Yingcai Xiao Game Development with Unity3D. Outline IDE Engine Assets Tutorial Examples Inside.
Build-It-Yourself.com BLENDER 3D LESSON 3 BLENDER 3D LESSON 3.
Unity3D Physics April 3, 2015 Comp Game Design Michael Shah.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Sega 500 Scripted events and Sequences Jeff “Ezeikeil” Giles
Speed Tree Let’s Make a Forest Copyright © 2015 – Curt Hill.
Copyright © 2015 Curt Hill UDK Animation with Kismet and Matinee Visual Scripting.
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010.
Unreal Tournament 2004 Tutorial (Examples) Hanshin University Spring 2008.
 The terms LMB, MMB, RMB, and mouse wheel (MW).
Computer Graphics Imaging Ying Zhu Georgia State University Lecture 29 Soft Bodies and Rigid Bodies.
Yingcai Xiao Game Development with Unity3D Inside/Outside Unity3D.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Game Development with Unity3D
EEC-693/793 Applied Computer Vision with Depth Cameras
Game Development with Unity3D Inside/Outside Unity3D
Film Production
Create a Halloween Computer Game in Scratch
Done already for your convenience!
MOM! Phineas and Ferb are … Aims:
Scratch for Interactivity
EEC-693/793 Applied Computer Vision with Depth Cameras
HADI Tutorial Templates
Computer Animation Ying Zhu Georgia State University
Introducing Blender.
Exporting and Importing Blackboard Course Materials
Introduction to Events
Assignment 8 Chess Game.
EEC-693/793 Applied Computer Vision with Depth Cameras
MS PowerPoint 2010 Week 2.
Unreal Engine and C++ We’re finally at a point where we can start working in C++ with Unreal Engine To get everything set up for this properly, we’re going.
Unreal Scripted Sequences
UNITY TEAM PROJECT TOPICS: [1]. Unity Collaborate
Exploded CAD Assembly Models
A Prime Example of HCI Application
Forging new generations of engineers
CIS 488/588 Bruce R. Maxim UM-Dearborn
Forging new generations of engineers
CIS 487/587 Bruce R. Maxim UM-Dearborn
Assignment 1 Creating a Heart.
CIS 488/588 Bruce R. Maxim UM-Dearborn
Unit 11 – PowerPoint Interaction
CIS 488/588 Bruce R. Maxim UM-Dearborn
Unreal Interactive Elements
EEC-693/793 Applied Computer Vision with Depth Cameras
Creating a Simple Game in Scratch
Presentation transcript:

CIS 488/588 Bruce R. Maxim UM-Dearborn Unreal Karma Actors CIS 488/588 Bruce R. Maxim UM-Dearborn 12/9/2018

Karma Unreal Physics Engine Used to make objects in your scene react to physical forces (gravity, explosions, collisions) Many aspects of the Karma engine can only be exploited using Unreal Script To build rag doll characters requires the use of Maya or other external 3D packages and the Karma Authoring tool known as KAT There are some things that can be done with Karma objects inside UnrealEd 12/9/2018

Karma Theory - 1 The Karma engine make use of a special type actor known as a KActor KActors have the Physics property (found under the Movement category) set to PHYS_Karma This setting passes control of an object’s movement to the Karma physics engine How the object reacts is determined by the setting KParams property under the Karam category in the object’s Properties window 12/9/2018

Karma Theory - 2 If you keep drilling down you will find lots of properties that are editable (mass, buoyancy, friction) The bBlockKarma property (under the Collision category) determines whether a KActor will react to placeable item found in the current map Setting bBlockKarma to True makes collisions with Karma objects and Actor surfaces possible and reactable 12/9/2018

Creating Simple Karma Actor Tutorial 11.1 Use the map file Tutorial11_01_Start.ut2 Open the StaticMesh browser and locate the package AWHardware, find the Decorations category, and select sh_barrel_M_JM Use the RMB and add the barrel to the level using the “add Karma Actor” item from the context menu You will need to adjust the position of the barrel Rebuild the level, save, and test the level 12/9/2018

Creating Simple Karma Actor Tutorial 11.2 To see anything happen with the barrel you will need to shoot it with something big, like the RocketLauncher (this is even true if the barrel started the level hovering in the air) To make the barrel come alive when you first enter the level, open the Properties window, and drill down Karam>Kprams>KarmaParams myLevel>KaramPrarams Set the property KStartEnabled to True Rebuild, save, and test the level 12/9/2018

KBS Joints - 1 Tutorial 11.2 Use the map file Tutorial11_02_Start.ut2 Use the StaticMesh browser to open the package Chapter11.utx, in the LightSystem group select ShortChain Use the RMB button to open the context menu, select Add Karma Actor, and add the chain to the middle of the ceiling Use Crtl-W to duplicate the chain and put a copy of the chain beneath the first chiain 12/9/2018

KBS Joints - 2 Tutorial 11.2 Open the Static Mesh browser and select Light inside the Chapte11 package LightSystem group Use the RMB and add the Light as a Karma Actor from the context menu to the end of the chain If we run the level now, shooting the light just causes it to fall to the floor Open the Actor class browser, expand Kactor>Kconstraint and select KBSJoint 12/9/2018

KBS Joints - 3 Tutorial 11.2 Use the RMB to add a KBSJoint near the lamp Position the KBSJoint so that it connects the chain to the ceiling Use Ctrl-W duplicate the KBSJoint and place it between the chain pieces Use Ctrl-W duplicate the KBSJoint and place it between the chain and the light Open the Properties window for the KBSJoint on the ceiling and expand the KarmaConstraint category 12/9/2018

KBS Joints - 4 Tutorial 11.2 Set the value of KConstraintActor1 to the name of the top chain piece Open the Properties window for the KBSJoint between the two chain pieces Set the value of KConstraintActor1 to the name of the top chain piece and set the value of KConstraintActor2 to the name of the bottom chain piece Open the Properties window for the KBSJoint between the chain and the light 12/9/2018

KBS Joints - 5 Tutorial 11.2 Set the value of KConstraintActor1 to the name of the bottom chain piece and set the value of KConstraintActor2 to the name of the light It is possible that you may need to go into the Properties window for each of the Karma actors and set the value of bHighDetailOnly to False in the KaraParams dialog (otherwise they may not react to speed up game play) 12/9/2018

KConeLimit Tutorial 11.3 Use the map file Tutorial11_03_Start.ut2 Open the Actor class browser, expand KActor>Kconstraint, and select KConeLimit Use the RB and choose Add KConeLimit from the context menu to add the actor near the Light Rotate the KConeLimit so the red arrow points down the z-axis You can adjust values of KConstraintActor1 and 2 to point the two chain pieces and adjust the value of KHalfAngle to get the right effect 12/9/2018

Dynamic Bridge - 1 Tutorial 11.4 Use the map file Tutorial11_04_Start.ut2 If we run the level and shoot the bridge it will simply collapse We can add KHinge actors to make it bouncy instead Open the Actor class browser, exapnd Kactor>Kconstraint, and select Khinge Use the RMB to add the Khinge to connect the first bridge piece and the wall 12/9/2018

Dynamic Bridge - 2 Tutorial 11.4 Rotate the KHinge so that the arrow points towards the wall Use Ctrl-W to duplicate the KHinge and place the copy to connect the first and second bridge pieces Continue the process until you reach the far end of the bridge Open the Properties window for the first Khinge and expand the KarmaConstraint category 12/9/2018

Dynamic Bridge - 3 Tutorial 11.4 Select the KarmaConstraintActor1 property, click the Find button and then click the first bridge piece For the KHinges connecting to bridge pieces you will need to do this for bridge pieces on both sides of KHinge to set KarmaConstraintActor1 and KarmaConstraintActor2 You may need to set bHighDetailOnly to False Rebuild, save, and test 12/9/2018

Working Fan - 1 Tutorial 11.5 Use the map file Tutorial11_05_Start.ut2 To get the fan do more that fall off the wall when shot, you need to use a KHinge Open the Actor class browser, expand KActor>Kconstraint, and select KHinge Use the RMB to add the Khinge near the fan, move the KHinge to the center of the fan, and rotate it to ensure its axis matches the fan Open the Properties window for the KHinge 12/9/2018

Working Fan - 2 Tutorial 11.5 Set the value of KConstraintActor1 property to point to the fan Change the KHingeType property to HT_Motor to give the fan constant motion Change the value of KDesiredAngVel to 16384 and the value of KMaxTorque to 100 Rebuild the map, save, and test (when you shoot the fan with the RocketLauncher it will run continuously) 12/9/2018

Creating Catapult – 1 Tutorial 11.6 Use the map file Tutorial11_06_Start.ut2 Open the Actor class browser, expand Kactor>Kconstraint, and select KHinge Use the RMB and place a KHinge near the fromt of the catapult facing the bridge Rotate the KHinge so that it points down the y-axis Set the KConstraintAcor1 property to point to the catapult 12/9/2018

Creating Catapult – 2 Tutorial 11.6 Change the KHingeType to HT_Springy Change KStiffness to 5000 Change Kdampening to 250 (so the catapult will not swing back and forth too much) To add a trigger, open the Actor class browser, exapnd Triggers, select UseTrigger Use the RMB to add a UseTrigger near the catapult 12/9/2018

Creating Catapult – 3 Tutorial 11.6 Open the Properties window for UseTrigger, expand he Advanced category, and set bHidden to False Expand the Events category and set the Event property to TriggerCatapult Open the Properties window for the KHinge, expand the Object category, change value of InitialState to ToggleDesired Expand the KarmaConstraint category and set KAltDesiredAngle to 16384 (90 degrees) 12/9/2018

Creating Catapult – 4 Tutorial 11.6 To associate the UseTrigger with the KHinge, expand the Events category, and set the Tag property to TriggerCatapult To test the catapult place a copy of the Karma barrel on top of the catapult (remember to use add Karma Actor) Open the barrel Properties window, set bHighDetailed to False, bKStartEnabled to True, and set Kmass to 0.5 Rebuild the level, save, and test it 12/9/2018

Using Ragdolls - 1 Tutorial11.7 Use the map file Tutotial11_07_Start.ut2 You need an actor to serve as a template for your ragdoll, any KActor will do (so start with the barrel) – remember to use “add KActor” Open the Properties window for the new KActor, expand the Display category, change the DrawType property to DT_Mesh To set the Mesh property, open Animation browser, open the HumanMaleA package and select the MercMaleA mesh, and click Use button 12/9/2018

Using Ragdolls - 2 Tutorial11.7 Move the new model so that the ragdoll right hand is placed inside the KBSJpoint at the bottom of the chain Open the Properties window of the KBSJoint, expand the KarmaConstraint category, and set the KConstraintActor2 to point to the MercMaleA mesh The correct mesh is displayed, but behavior is not right 12/9/2018

Using Ragdolls - 3 Tutorial11.7 Open the Property window for the ragdoll, expand the Movement category, and change the Physics property value to PHYS_KarmaRagDoll Expand the Karma category, drill down to the KParams property, click the Clear button Select the KarmaParamsSkel and click the New button 12/9/2018

Using Ragdolls - 4 Tutorial11.7 Expand the KParams category and drill down so that you can set the Kskeleton property to Male You may also need to set bHighDetailOnly to False Rebuild, save, test, and fiddle with parameters to get the right effects 12/9/2018

KAT There is a Karma authoring tool that let’s you build your own KActors This requires the use of a 3D model exported from Maya or similar tool Using KAT you can create your own rag dolls and other reactive devices 12/9/2018