Thursday, 29 January 2015

Unexpected solutions to unforeseen problems.

Over the weekend I was experimenting with “Scene Capture 2D” actor in UE4, and now I've finally had a chance to implement it in our level.

I noticed it was used in epics Blueprint example level to help create their CCTV system. Most things in that level seem really complicated on the surface, yet the basic systems are quite simple when you take out all the extras that epic have added to polish.

The scene capture 2D actor is essentially just a camera that sends its output to a texture. To make something like a CCTV monitor, just apply that texture to the actual screen area.
So I quickly modeled a pretty 80’s looking Sony monitor to test this with, and it turned out really well.

I was trying to think of a way to include this in our level. The convenience store at the center of our level is the obvious place to put it, a shop owner would want a CCTV system near the counter especially in a high crime area.

Earlier we were discussing leading the player to the switch behind the counter (that turns off the electricity that’s blocking the players path) using brightly coloured wires that would stand out from the rest of the bland wires. The player would just have to assume that the switch turns off the electricity, and walk back out of the shop to see the actual result.

However if we had a CCTV monitor there, showing the outside of the shop (which happens to be where the electrified puddle is) the player would be able to instantly see the effect of switching off the electricity. They would be able to see that the “lightning” is no longer there and the path ahead is clear.


So while I was just experimenting with a feature of the engine that I thought was pretty cool, I had unknowingly devised a solution to a problem that I only became aware of after creating the solution. 

Tuesday, 27 January 2015

Buttons, and more buttons.

Still working on the container city project and things are progressing well.

You could say that the main objective in our level is just to progress, to get to the lift at the end, and we have added interest in the actual journey to that lift.

So to make that journey a little more interesting we have added some small obstacles or puzzles for the player to find a way around. The first of which that is encountered will be a wire hanging down into a puddle, creating sparks and a dangerous area the player cannot cross initially.

This mechanic has been used so many times in games it is a well-established trope, the players sees the electrified water, and has to find a secondary route or turn off the electricity to pass. Yet however many times I have encountered this mechanic in games I never seem to get tired of it, this is why I’m perfectly happy trying to implement it in our level.

While max is working on the particle effects that will show the player the puddle is electrified and give a clear sense of danger, and have been working on the “back-end” of the this little puzzle.
The essential purpose of the electrified puddle is just to block the player, it could just be a basic door, but having just a door blocking the pass would be a bit boring. In actual games this scenario would block the player’s path by killing them if they tried to progress, but our small level is lacking some key aspects that make that system viable.

If the player were to die, a re-spawn system would have to be added, if the player were to receive damage and then die, it would have to be made known to the player that they are actually receiving damage. Full games have a HUD and sounds and even vibrations to feed back to the player what is actually happening, being realistic we just won’t be able to achieve that in the time given to us, and it’s not really even the area of game creation I want to be concentrating on at the moment.

The rather short workaround my long winded explanation of this problem, is simply to add a blocking volume around the puddle. At the end of the day the puddle’s most basic purpose is to block the player from progressing, so why make things more complicated than they need to be.

I also learned a bit about communicating between blueprints this week, as I needed the blueprint containing the switch to speak to the blocking volume when activated, and a whole number of other things. My switch blueprint is actually getting a little complicated now.

When pressed a whole number of things happen:

The switch is animated downwards

A sound is played

The blocking volume is destroyed

The sparks particle emitter is destroyed

A steam particle emitter is added


All this happens in no time at all, and will probably go un-noticed, but that is what is great about adding immersion, is that you shouldn't notice everything going on, but it would create a jarring experience if it wasn't there. 

Sunday, 25 January 2015

Week 17 Tech stuff


The container city project has a much greater emphasis on the play-ability of the work we produce than anything we've worked on before.
So I have volunteered myself as the guy who is going to be adding in all the functionality that will make our level more engaging than just a pre-rendered set.

Having used unreal engine a little bit before in previous projects I’m really excited to be able to delve a little deeper find out how the rest of it works. I got really into lighting during the Film room project, and during the turret project we were first shown what could be achieved with blueprints. In the turret project I tried to add a little bit to the blueprint system we were given, but I didn't actually manage to achieve what I wanted.

One of the first things people do when they first start out with blueprints in unreal is make a sliding door. However our level isn't that sci-fi, while dystopian we would really like it to stay grounded in current day and even slightly older tech, as this level is almost a little taste of third world living.
The first thing I wanted to address was how the player could interact with doors in our level, I feel that star-trek whooshing doors really won’t fit.

Personally my preferred method of interacting with doors is when the character simply opens them as they are walked into. I have been playing through watchdogs recently and that’s the method they use for doors that don’t load a new level.

This system is probably very complicated for third person games if you wanted the player to actually interact with it rather than just shunt it open, however ours is first person and also only a 4 week project so simple solution is key.

I had a look at some reasonably complicated blueprint systems for opening and closing regular doors, but then I turned my attention to the physics system in UE4.

They have an actor called actor called a Physics constraint actor. It can essentially be used to bind two physics actors together. Inputting the right settings for the constraints enables the actor to be used as a hinge. So to test this out I used a placeholder door and door frame found in the example content that comes with UE4.
After a bit of tweaking the damping and angle constraints I ended up with a door system that enabled players to open doors just by walking into it, which I feel provides some quite satisfying feedback.

So the first piece of interaction is good to go in our level, roll on next week when I will be talking some of the more advanced things that we want in the level. 

Sunday, 18 January 2015

Week 16 Kowloon


Last week I wrote about starting the new project (Container city project) and I talked about our idea generation process and how we arrived at our theme of Cluttered Asian city marketplace. I thought I would write a bit more about the city from which we are taking the bulk of our inspiration; Kowloon Walled city.

Kowloon walled city no longer exists as its demolition was completed in 1994. During its prime it became notorious for its incredibly high population density and apparent unchecked crime.  Located in New Kowloon, Hong Kong, jurisdiction was unclear and it was largely ignored by both the Hong Kong and British government.

Due to this essentially ungoverned state, construction was unregulated and the city continued to grow up and up, with new high rises filling ever available slot.  In 1987 an estimated 33’000 people lived there on a plot of land just 6.4 acres, giving it an insanely high population density of roughly 1255’000 people per square kilometer.

This city has a really rich and interesting background, however it all feeds into its unique aesthetic which is what we are really interested in.

The extreme population density and unregulated construction ended up creating the most dingy compact and cluttered alleyways I have ever seen. It is the perfect reference for a dystopian and rundown city. There are leaky pipes everywhere, drainage did not work so there are puddles creating reflections, shops on top of shops fighting to get noticed so there are massive arrays of signs, and caged balconies extend from the outside walls to give families that extra bit of room.
Here are some of the mood boards that we have compiled for the general aesthetic we want to achieve in our level

(Pic)

Some of the reference there is actually a recreation of the city as an amusement, so it’s not entirely original but I feel they managed to capture and recreate the mood and atmosphere of the city. There actually isn't all that much in the way of pictures of the original city, apart from a series of photos taken by one photographer who went well into the depths of the city and really got to know it’s in and outs.


Josh also shared a documentary about the city with the group, which gave us all some more insight into the inner workings of the city, It would be a bit of a challenge, but I would like to be able to put across how strong the sense of community in Kowloon was, in our level. 

Sunday, 11 January 2015

Week 15 Post Crimbo

This week was the first week back after Christmas and the start of an exciting new project. Christmas was actually a busy time for me; juggling family events, bar work, and the usual catching up with old friends it was far from a relaxing break.  So I was more than ready to come back to Leicester and get stuck into some game art again.

So let me tell you a bit about the new project that we have been given. It’s called the Container city project. It’s a group environment project written for 4 people (but we have actually ended up with 5 members as the numbers for the year don’t quite work out)   

I chose to work with Max and Joe again after we had such a great time working together during the film room project. Also in my group are Josh Swarbrick and Jon Carney.

We got stuck in straight away with this project and grabbed a spare room with a whiteboard for idea generation.

(pic of whiteboards)

There were so many potential ideas we had floating around so we started by writing down any possible theme or location for the level and ended up with about 30 different possibilities.
To narrow those down and keep the process somewhat democratic we used a poll and all voted for our top 5 favorites, then took the top 5 ideas with the most votes.

We then used the whiteboard again to expand on those 5 ideas, writing down all the pros and cons and going more in depth about the different aspects of each possibility.

We were taking idea generation really seriously for this project, and felt like we were on a role, critically assessing each potential direction for the project rather than jumping in head first. I really felt like we had moved on a lot from when we were planning the film room project at the beginning of the year.  

I remember being told many times “your first idea is rarely your best” however in the end we decided on an idea what wasn't even on the original list of 30 yet somehow managed to sneak past our extensive idea generating process.

We have decided to make our container city level a dystopian Asian city, obviously built out of containers as is specified in the brief. We will be taking major inspiration from Kowloon walled city.
(pic of Kowloon)

I think that because we spend so long deliberating over which idea was the best, we were getting a little bit tired of all of them. Personally I was rooting for an idea that got dubbed “spooky science”, basically an abandoned research station in a remote location made from containers, with a slight horror vibe. I feel that pop up research stations lend themselves well to potentially made out of containers.

However this Kowloon walled city idea was suggest near the end of the deliberation process, it seemed fresh, unlike all the other ideas that we were discussing, and felt like a new surge of creativity and inspiration that we could all get on board.


At the end of the day all of our ideas had potential, it just depends how much work we put into them, and I think that as we are all pretty excited about the Kowloon idea, we will be able to put some decent work into it.