Unit 66 & 68 – Creating 3D Cameras

Adding Cameras

This guide will demonstrate how to create cameras in 3ds Max.

ImageCreate tab – small camera icon. Two types of camera; Free or Target. A Free Camera keeps its rotation regardless of where it is moved. The Target Camera focuses on a specific point, wherever the camera is moved, it rotates in order to aim itself at that target.

ImageCamera Parameters

Image

Standard scene – No Cameras

Image

Free Camera – By default, it points down and the user can position it freely.

Image

Target Camera – Created by clicking and dragging to point at a specific target. Both the camera and target can be selected and manipulated independently.

 Image

Camera001 – Camera’s view – Accessed using the “C” key shortcut.

Lens Length & Field Of Vision

The lens length and field of vision can be adjusted in the modifier menu.

Image

Image

High FOV, Low Lens Length – Far from object, wide field of vision.

Image

Image

Low FOV, High Lens Length – Close to object, narrow field of vision.

Depth Of Field

Simulates human eyesight by focusing on or blurring objects.

Image 

White Wall with “MAX” 3D Text

Image

Image

Target Camera aimed at back of scene

Image

Result – “X” in focus, other letters less so.

Image

Camera aimed at front of scene.

Image

Result – “M” in focus, other letters less so.

Animation

Image 

Standard Scene

Image

Target Camera added

Image

Auto Key activated – Automatically records animation according to where the selected object is moved.

Image

Red border in viewport shows animation is being recorded

Image

Timeline set to fifty frames

Image

Moved camera

Image

Keyframe added at 50th frame.

Image

Animation start

Image

Animation end

Posted in 3D Assets, 3D Environments | Tagged , | Leave a comment

Unit 66 & 68 – Critical Analysis #1

When looking at my pre-production work, I feel that I did a satisfactory job of producing and developing my ideas. Mainly, I am pleased with how the majority of the ideas fit the sci-fi theme I was aiming for. Specifically, the prop and environmental object ideas were aesthetically pleasing and fit-for-purpose in a sci-fi environment. However, I felt that my Hotel/Inn façade was too conventional, with too much of a modern design, for a sci-fi environment. Part of the reason for this is due to my lack of artistic skill and unfamiliarity with the 3D software at the time, so I kept my drawing simple and familiar in case I would have difficulty creating something more complex, both on the page and in 3D.

I feel I managed my time well, although possibly spent longer developing certain pieces of pre-production work over others. Specifically, I had several different iterations of my vending machine prop, complete with a blueprint drawing, but only a page of sketches for my sleeping pod prop. More time spent developing the sleeping pod prop idea would have given me a clearer idea when constructing the prop in 3D.

My production skills could use some improvement. Considering my drawing skills are not as proficient as I would like, I was satisfied with my designs. However, a lack of colour led to some sketches looking monotonous towards the end of my sketchbook, which I should consider in future projects. When creating mood boards, I feel that I was able to make them distinctive and professional. My Environment Spec Document was also up to a standard I was pleased with, due to the way I elaborated on certain designs, used inventive story and environment descriptions and considered legal and ethical implications.

Posted in 3D Assets, 3D Environments | Tagged , | Leave a comment

Game Engines – 3D Game Diary – Week 1

Today, we started to learn how to use the Unreal Development Kit, a game engine used for the development of 3D games. The majority of the lesson was spent learning about the user interface and how to use many of the tools provided. Here are some short descriptions about what several of the icons on the user interface do:

Manipulator Controls

ManipulatorControls(From left to right):
Selector – Selects objects within a viewport but does not risk moving them.
Move – Moves objects across an X, Y or Z axis (or more than one).
Rotate – Rotates objects.
Uniform Scaling – Scales objects equally along every axis.
Non-Uniform Scaling – Scales objects along an individual axis, so the length, width and height of the object may not be in proportion.

These tools allow the user to select and manipulate objects within the viewport. Having used 3ds Max, I was familiar with most of these already. The only difference was the “uniform scaling” and “non-uniform scaling” tools being separate, while 3ds Max has a single tool with the same functions.

Viewport Controls

ViewportInterfaceIn each viewport, these tools are displayed in a row above. The ones I know about at this stage have been highlighted in the image above.

Change Perspective – Cycles between “Perspective”, “Top”, “Front” and “Side” views of scene.
Real-time mode – Toggles on/off. Shows objects in motion in the selected viewport (particle effects, for example). Shortcut is Ctrl + R.
Change View Mode – Alters the view in the viewport (see below for further details).
Game Mode – Switches off all development tools and shows the user the way the game will look while being played. Nothing within the viewport can be edited while Game Mode is switched on.
Camera Speed – Adjusts the camera movement speed; an empty square is slow, a full square is fast.
Play in Viewport – Begins playing the game from the position the viewport camera is in.
Floating copy of Viewport – Creates a floating copy of the view that is currently in the viewport. This is useful when the user wants to make a change in the scene but see how it affects a different part of the scene (such as wanting to see both sides of an object that is currently being manipulated).

The final button on the toolbar Maximises the Viewport. Alternatively, the user can press Alt + X as a shortcut.

Examples of different views:

wireframeunlitSupposedly, these four views are the only ones that I will need to use in UDK, at least initially. I’m still uncertain when will be the best times to use each view but hopefully this will become more clear with time.

The Content Browser

The Content Browser can be accessed by clicking the black “U” button available in the game’s header bar.

ContentBrowserSearchThere are a lot of features to cover within the content browser; at the top is the search bar, which filters through the contents based on keywords entered by the user. The results can be erased by using the “Clear” button in the top-right corner.

Contents can also be filtered through the use of favourites and tags. To add an item to the favourites list, a user selects the “All Types” tab, right-clicks one of the categories and then selects “Add to Favourites”.

Moving items from the Content Browser into one of the viewports is as easy as dragging and dropping one of the items in the lower section into a viewport.

Packages

PackagesThis list of packages is available in the lower-left corner of the Content Browser and allows the user to browse through different categories of items that they can use in their scene.

There are other icons available in UDK’s header bar but I only know the purposes of a few of them, so it isn’t very sensible to show a screenshot of all of them when most of them will go unexplained. However, here are the uses for some other functions available in UDK:

Green “Play” button – Plays the game in the editor. Unlike the blue play button, which plays the game from wherever the camera is in the currently-used viewport, the green play button starts the player at the point they will begin within the actual game.PC “Play” button – Prepares the game as if it was loaded as a file on PC. This can take a long time, so it is recommended that I don’t actually do this.
“Build Lighting” button – Button on the header bar that looks like a light bulb. Eliminates unnecessary shadows (such as those of deleted objects) and adds shadows for new objects. Recommended that I keep this on “Preview” quality to avoid spending too much time on it.
Tab key – Shortcut key for opening the console. The few commands I learned in the lesson included “Stat FPS”, which shows the Frames Per Second and “BehindView”, which switches to a third-person perspective.

That’s practically all I learned so far. I’ve been guided to our tutor’s Youtube channel and the many tutorials available from menus when UDK is started up. I’ll view some of them during the week and find out what I can.

Posted in Game Engines | Tagged | Leave a comment

Game Engines – Developer Diary – Final Week

This is the final week of the 2D game’s production but it’s still been as busy as ever. Following the feedback from my alpha tests, I made several changes to my 2D game. The issues that people were having, as I wrote in my developer diary last week, included being unable to turn while jumping, players being uncertain about when the protagonist was attacking, being unsure about when they were able to use the magical beam attack and uncertain which button to press on the Game Over and Victory screens. Rather than simply explain the changes here, these changes are best shown through screenshots of the latest and previous versions of the game.

alphbetadiffsThe jumping issue has also been fixed but there’s no way of showing that visually. I believe I was overcomplicating that particular issue, adding the “Flip Horizontal = True” attribute to a few too many mechanics, rather than simply whenever the player pressed left or right. This fixed the issue with the magical beam emerging from the main character’s back that I mentioned in my previous developer diary.

My beta test is this week and, as of this writing, I don’t have very many responses. However, assuming no more versions of the game need to be created following the beta test, this brings the total number up to seven. I noticed through discussing things with my peers that I have far fewer versions than a lot of people. I owe this to only saving after larger changes rather than many times after smaller ones and whenever I added a mechanic, I was confident that I would be able to remove it.

Because I have so few versions, I’ve been able to track the significant changes that were in each one. They were as follows:

Knightmare_Ver_001

    ver001

  • Health and Mana System tests.
  • Enemy test.
  • Grounded tests.
  • Primitive magical beam test (instantly killed enemy; enemies had no health system).
  • Primitive enemy patrol test.
  • Primitive menu screen (no cursor).
  • Game Over screen.

Knightmare_Ver_002

    ver002

  • Early level design added – level could be complete but any additional mechanics required to complete it (doors, keys, puzzles) were not present. Floor and character blockers are the only elements present.
  • Enemies temporarily removed while testing level.
  • End level goal added.
  • Win screen added.

Knightmare_Ver_003

    ver003

  • Menu cursor added.
  • Options menu added (though still buggy when returning to main menu).
  • Mute button added.
  • Controls screen added.
  • Attack mechanic added.
  • Enemy health system added.
  • Player health and mana display now positioned next to character as he traverses the level.
  • Triggered trapdoor & lever trigger added.
  • Puzzle added (with required graphics).
  • Locked/unlocked door mechanic added.
  • Checkpoints and player spawners added.
  • Instant-death hazards added.

Knightmare_Ver_004

ver004

  • Huge level rescaling, to ensure player could see what was approaching. Level was resized, player, enemies and magic beam were reduced in size so they took up less of the screen.
  • Enemy patrol system overhauled. Now more practical. Enemies now patrol back and forth between two points rather for a set time limit.
  • More enemies added.
  • MP regeneration upgrade added.
  • Enemy-spawning area added.
  • Boss fight added (with jumping mechanics; e.g. – grounded rule, change velocity to make the boss jump when it touches a certain actor).
  • Triggered door opening/closing added for final boss area.
  • Lower-priority areas added.

Knightmare_Ver_005

    ver005

  • Mainly the animation-testing phase: graphics added that required testing (MP upgrade animation test, checkpoint animation test, HP & MP display tests, hazard animation test).
  • Health restoration items added.

Knightmare_Ver_006

    ver006

  • Decorative items added: gravestones, non-scrollable background, signposts.
  • Cloud-spawning actors created.
  • Cloud interpolate behaviours added.

Knightmare_Ver_007

    ver007

  • See above for changes to this version.

There will actually be one more version created, with sound and music added to the game — which poses a few problems of its own, as I plan to have footsteps, crackling lava sounds whenever the player nears a hot coal hazard, etc — but with the exception of those mechanics being added, this is the final version of the game. There will be no more tweaking to any mechanics or any further additions to the gameplay. This is more-or-less the end of the 2D project and I’m satisfied with the final outcome. There are some issues that I had but I will go into detail on those while writing my 2D evaluation rather than here.

Posted in Game Engines | Tagged | Leave a comment

3D Environments – Assignment 3 – Software Interface

To show that I understand how to create objects in 3ds Max, I will explain the functions of the program’s interface. These are all tools that I use myself when creating 3D assets and will help to illustrate the process I go through when creating my own objects.

I use the Alt + W shortcut to Maximise the Viewport.

I use the Standard Primitives panel in the Create tab on the right-hand side to begin my objects:

standardprimitivesThe Drawing Aids tools, which can be toggled on and off using the icons at the top of the screen, help me create accurate sizes:

DrawingAidsDrawingAidsSnapsToggleActiveSnap to Grid (Shortcut – “S” Key) – On

NoSnapsToggleCreated object – Snap to Grid Inactive

SnapsToggleCreated object – Snap to Grid Active

Notice the difference between the objects above; one is connected to the grid, the other remains unattached.

DrawingAidsRotateActiveSnap to Angle (Shortcut – “A” Key) – On

RotateNoSnapsRotate – No Angle Snap

RotateSnapsRotate – Angle Snap

“Snap to Angle” allows the user to rotate objects to whole numbers only, rather than decimals.

ParametersParameters Menu – For accurate size adjustments and adding edges and polygons.

Grid&SnapSettingsGrid & Snap Settings – Can alter the spacing of the lines in each viewport’s grid.

SubObjectModesEditable Poly Sub-Object Modes – Right-hand side, enables selection of individual sub-object types:

SelectedSubObjectsViewport Styles

ViewportControlsStylesStyles

PerspectiveControlsPerspective Controls

PerspectivesPerspectives

Configuring the viewport: right-click any of the icons in the bottom-right corner:

RightClickViewportOptionsGo to the “Statistics” tab in the “Viewport Configuration” menu and activate “Triangle Count” and “Show Statistics in Active View”:

ViewportConfigurationThe statistics are displayed:

Poly&TriCountFileSystemFile System

Posted in 3D Environments | Tagged | Leave a comment

Game Engines – Developer Diary – Week 15

Today’s Targets – Today’s targets were to receive some more feedback following alpha testing. I didn’t receive many responses during the week so it was important to have some completed today, so the game will be ready for beta testing next week.

I did this by – Asking others to play my game and complete the alpha testing sheet that I had already prepared. I offered to test their games in return.

Results – The majority of feedback about the game was positive. Considering the large number of mechanics and animations that needed to be tested, the alpha testing forms were returned with relatively few faults. However, there were a few comments from testers that suggested improvements. Most of these were the same rough edges that I was worried about prior to testing the game but I was hoping they would be minor enough to go unnoticed, as I wasn’t sure if I would be able to fix them.

Some of these issues included:

Being unable to turn while jumping – The jumping animation does not flip horizontally if the left/right arrow key is pressed in the opposite direction from the way the character is facing. However, that isn’t the major issue. Although it wasn’t mentioned in my alpha testing feedback, the biggest issue for me is if the character lands from a jump, facing in one direction but having moved in the other, and then uses the character’s magical beam attack, the beam will travel from the character’s back rather than their front. Even though it takes some experimentation to do this, it is a very noticeable flaw and one that requires fixing.

magicbeambackTesters being unable to tell when the character is attacking – I didn’t expect this to be an issue but two testers said they were uncertain about whether the character was attacking. I wasn’t a fan of the attacking animation I created, thinking that it didn’t look aggressive enough. At this stage, perhaps the problem can be rectified by changing the character’s colour while attacking rather than redoing the entire animation.

No instruction for exiting “Win” and “Game Over” screens – This should be an easy-enough problem to resolve. I thought that people would naturally use the space bar to exit these screens, as that is the key used to make choices on menu screens beforehand, but it’s better to be safe than sorry.

Confused by being unable to use magical beam attack when MP < 50 – I didn’t think this would be an issue, as the message about the beam attack using 50 MP is on the controls screen. Nevertheless, there may be a way I can visually communicate this to the player by changing the colour of the MP display when it is under 50. However, this may be unnecessary for many players, so I will be interested in seeing whether this is considered an improvement during my beta testing phase.

Menu buttons leading to incorrect screens – This is actually a flaw that I feel I have to defend; hypothetically, if a player taps the right arrow key to access the options menu but immediately presses the space bar before the cursor has reached the button, the game will begin rather than access the options (and vice versa with. Same issue with the options menu and the mute button). However, if the player waits for the cursor to reach the button and then presses the space bar, it will access the menu correctly.

This actually isn’t quite how I wanted it; I realised that the average player would get impatient waiting for the cursor to move over to another option but the attribute that governs which menu button is selected is operated using a timer. Making the timer quicker, so the player can access menus more quickly after pressing one of the arrow keys, caused the cursor to bounce back and forth because it registered more than one button press. This is similar to how double jump mechanics created without a timer register more than one button press at once because it doesn’t have a timer to act as a buffer between the key press and the attribute changing. As the player can access all menu screens, I believe that while this flaw with the cursor and menu screens is an inconvenience, the mechanics work to a reasonably high standard and attempting to fix it would make a mountain out of a molehill.

Posted in Game Engines | Tagged | Leave a comment

Game Engines – Developer Diary – Week 14

Although I believed today would be the due date for handing in my 2D game, the deadline was actually pushed back by a week. As a result, today’s lesson was focused on creating an alpha testing questionnaire. Even though some members of the class already conducted alpha tests — myself included — we learned that the testing questionnaires we created were not thorough enough to comprehensively cover every aspect of our games. In order to ensure that there were no bugs or glitches, a new testing questionnaire was created that split all parts of the game into sections — mechanics, animations, menus, etc. — so every feature would be properly tested.

One of the things our tutor said that stuck in my mind about creating our questions was “how is the tester supposed to know if something is a bug if they don’t know how it’s meant to work?” Bearing this in mind, we had to give detailed instructions about how to play the game and about how the game’s mechanics worked; how much damage the player character’s attacks did, how much damage the enemy attacks did, whether double-jumping was supposed to work on certain platforms, etc, etc. It was very thorough. Even now, I’m sure that I’ve missed some things off my testing questionnaire — I’m not sure I mentioned how the mute button was supposed to work — but hopefully, the comments & suggestions section added at the very bottom will cover anything I’ve forgotten.

Prior to the alpha testing beginning, I felt like my game was practically done, at least as much as it was going to be. A lot of progress has been made over the past week. I added the boss fight — it’s simplistic but it works well as a climax to the level — I finally learned about non-scrollable layers, which would’ve been very useful to know about when I first started using GameSalad, and I’ve been making good use of the “Interpolate” behaviour; a behaviour that alternates between one value to another. Online tutorials helped greatly with that particular behaviour and I found it useful for making pickups float up and down, as well as clouds that float past in the background (the final part of the game that I added and probably the part that I’m most proud of). It’s a behaviour that probably has a ton of uses — I was able to make the clouds fade away at one point by interpolating the Alpha Channel attribute to 0 but later decided that it was unnecessary — but I probably don’t have as much time to experiment with it as much as I would like now.

All-in-all, there are actually quite a few gameplay mechanics that I would’ve liked to have added, if I’d had more time. It was only towards the end of production that I felt like it would be good if I could have fireballs that leapt out of some of the hazards, damaging the player when they were touched. They would be easy enough to implement but, again, at this point I plan on making sure all implemented game mechanics are as good as they can be, rather than add any new ones.

Posted in Game Engines | Tagged | Leave a comment

3D Environments – Assignment 3 – Planning

Beginning to create my 3D environment and assets, I should explain how I plan to remain on-track and keep the project in order. This will help to minimise mistakes during the project and ensure the best quality of the produced models.

Asset Management

Asset management involves the organisation of created assets and ensuring their safety and availability. In order to make sure the assets are secure, I will have copies of the work on the H: Drive at college, on a USB stick and two on my home PC (original and backups). New versions will also be saved separately, rather than overwriting. I will also use file naming conventions; using specific names (e.g. – VAs_SecurityCamera_3d-Game_V1.max) to inform me what each file contains.

Workflow

Workflow involves creating a schedule and managing time effectively. I am confident enough with the tools in 3ds Max to feel I am able of creating some of my assets in a reasonably short amount of time. However, enough time should still be left to account for mistakes; prioritising required assets will be necessary and optional assets will be secondary.

Deadlines

I will create a to-do list to keep track of the assets that still need to be created and could even set up interim deadlines – similar to college assignments – that will encourage me to make progress by that point but also allows leeway if the workload set by other tutors slows my progress. Carefully monitoring the sizes and poly counts will be my way of assuring quality.

Posted in 3D Assets, 3D Environments | Tagged , | Leave a comment

Game Engines – Developer Diary – Week 13

The main issue this week has been working out how to create a boss fight. No progress has been made on it yet but, with the new enemy patrolling system, I think it should be simple enough to create a boss who is able to jump, separating it from the rest of the enemies in the game.

I originally planned to have a necromancer as a final boss but time constraints meant I was unable to create such an enemy in Adobe Illustrator. Instead, I planned on having a swarm of enemies to fill the final area of the level instead but I was never happy with that idea; I’d already had the idea for an enemy-spawning area earlier in the level and didn’t like the idea of creating two of them. However, now that I have a bit of time and the enemy patrolling has been improved — before, altering the enemy patrols would’ve required some trial-and-error with timers, rather than simply marking the areas with actors — I think I can create a simple enough boss fight. Rather than using a necromancer, I still have the original zombie animations, prior to being resized. I think a palette-swapped zombie, larger than the others, will be suitable. Giving it more health and making it a little quicker should be all that is required.

The only issue with this idea is where to create a checkpoint; I want the boss fight to be closed-off, so the player cannot escape, but putting a checkpoint in the boss area could cause the player to spawn right into its path, taking damage. Spawning from above could cause the same problem, or cause the player to fall into a hazard that is present in the final area. There should be enough room on the map to create a platform above the boss area for the player to spawn onto, so that seems to be the best option.

I should also make a note of items still on the to-do list:

  • Add more enemies.
  • Add graphics, including background.
  • Remove easy puzzle-completion (pressing spacebar opened a locked door. This was just so I didn’t have to spend extra time completing a puzzle to open a locked door while testing, so I could reach the end of the level more quickly.

Other than making those plans, not much progress this week.

Posted in Game Engines | Tagged | Leave a comment

Game Engines – Developer Diary – Week 12

The biggest update to my 2D game this week is that I have, on my tutor’s recommendation, resized several of the actors and the level, in order to put more focus on the platforming elements and not quite as much on the characters. Basically, this means that the player can see where they want the character to jump to rather than jumping blindly. It wasn’t as time-consuming as I thought it would be; the majority of the graphics had dimensions that were a perfect fit and only the characters and their animations needed adjusting:

originalresizedOther than that, some big changes include a revamp to the enemy patrol system. This actually happened by accident; I’ve managed to implement an enemy-spawning area just over halfway through the level, where the player needs to kill ten zombies before they can continue. However, due to the way that the spawner is positioned — the zombies emerge from a crypt but the entrance is slightly above the ground — I needed to create some new behaviours for the zombie prototype so that they had the same gravity effect (an “Accelerate” behaviour towards the ground) as the main character. Plus, the spawned zombies didn’t move as far across the ground as I wanted them to, so I created some new actors that would change the zombies’ patrol behaviour when they were touched. As I said, I altered the prototypes of the zombies but then I deleted these behaviours from the instances of the already-placed zombies earlier in the level, so they wouldn’t be affected; I was happy with their back-and-forth movement and didn’t want the gravity to affect them. Even though it looks like most of the zombies are in contact with the ground, they are actually just strategically-placed and not moving along the Y axis.

For some reason that I still don’t understand, the enemy spawner would mix some of the prototype zombies with some of the instance zombies. So there would be some zombies that would walk along the ground, as I had planned, and some that floated in mid-air and didn’t walk all the way across the platform. As far as I can tell, there is no reason why GameSalad should’ve been doing this. I struggled with this for some time but finally came up with the idea to only activate the “Accelerate” behaviour when a zombie came into contact with the Crypt actor; the only zombies in the level that will be anywhere near the crypt are the spawned ones, so I could leave this behaviour in the prototype and instance for all zombies in the level without them being affected. They wouldn’t be affected by the gravity, in other words. However, their patrols coming up short was still an issue, so I decided to use the new actors I had made for the previously-placed zombies too. It turned out to be far more convenient.

Another big issue was a jump animation occurring even when the player character was “Grounded” and unmoving.

jumpanimationincorrectThe “true” indicates that the character is grounded but, as we can see, the character appears to be jumping. At first, I was puzzled because there is an option in the “Animate” behaviour called “restore actor image when done” that I thought would be used to restore the actor to its default, neutral stance. However, I later figured out that the reason that this animation was occurring was due to a lack of an “Idle” animation and, when I showed the game to one of my peers on Friday, he quickly came to the same conclusion. With an idle animation present, the animation works as it should.

Posted in Game Engines | Tagged | Leave a comment