Getting my head around unity world space and it relates to screen size.
The unit of measurement in unity. It is good practice to match 1 unit to 1 meter. Default physics and lighting systems are all tuned to this scale. Tile mapKeep a scale of 1 tile = 1 unit, just for the sake of simplicity.
How much of your game is visible depends on:
Aspect ratio of your platform’s resolution (e.g. monitor, phone, etc)
ExampleIf you want your game’s viewport to include about 10m of your scene vertically (for a 2D game). Camera size: 5 unitsMy scale: 1 unit = 1 meter
Pixels per Unit (PPU)
This is a property of a unity Sprite. Specifies how many pixels from your Sprite fit into a unit in the scene when the GameObject is scaled 1,1,1.
Setting the right combinations
If you want to make sure all the sprites are the right size relative to each other and the same ‘sharpness’ no matter how far in/out you are zoomed, you should adhere to a consistent unit of measurement for your world. If you want to make sure images are sharp on a particular resolution, you need to make sure you have the right combination of these:
When learning a new system, I often get paralysed by thoughts about architecture and best practices. It’s a challenge not to fall into the over engineering hole. I’m supposed to be throw-away prototyping and dipping my toes in the water! What am I doing with 30 tabs open about modular Monobehaviours, scriptable objects, prefab best practices, the best way to organise your folders, and whether test-driven development is viable for games… Death.
At the beginning of this week, I was planning build a quick and dirty prototype of a plant growing simulator, which I’ve been mocking up on paper. Instead, so far I’ve spent most of the time setting up structures for scene and UI management. It sometimes seems a bit much but I have discovered that it is beneficial for my sanity (and hopefully future efficiency).
So, might as well post a bit about it.
This is what the set up looks like so far. The intention is to structure the scenes in a modular way, especially the UIs so that I can quickly try new scenes and layer them with existing interactive elements. Then, once I build a reusable scene, like a story dialog player, I can put that on top of whatever game world scene I’m currently experimenting with.
When we created Regency Love, I was most excited about making a deliciously immersive story experience. I wasn’t as concerned about the technology behind it so I decided to use whatever tool was most familiar to me at the time. That’s mostly how Regency Love ended up on iOS. As with all decisions, there were some perks and regrets.
The Apple ecosystem was booming at the time which gave us some good consistent exposure. We managed to attract a wonderful community of casual players, many of whom identifying more as readers or lovers of period drama, rather than gamers.
On the other hand, the biggest sadness was how terribly costly / time consuming it would be to port the game to any other platforms. Well, that and the fact that we’ve been wanting to go beyond the visual novel to experiment with more complex game mechanics, something that isn’t exactly easy on a standard Cocoa development framework.
So, in the meagre amount of time I currently have outside my day job, I have been learning the ropes on Unity engine. I have a bunch of different game ideas I want to prototype, and I’m hoping to post a bit about my progress for reflection purposes. Reflection and a little memory augmentation, considering I will be dipping in and out of these new projects as time permits.
A while ago I strained this muscle in my foot. It wasn’t one of those sudden, unbearable injuries. Instead, it was the kind that stuck around and crept up on you every time you worked your body a little harder than usual.
After ignoring it for months, I finally waddled to the physio and through the physio sessions, actually learnt quite a bit about how feet are very expressive of other things going on in the body. For instance, every time I tried to balance in a difficult position, my toes would panic and grab at floor. Also, learnt how the strain in my foot was connected to calf and butt muscles that were sleeping on the job and not doing their fair share of work. (A lot of injuries are caused by small muscles trying to do the work that big muscles are supposed to do. Another interesting discussion altogether).
In any case, it just got me thinking about how neglected feet are in general. Many people don’t give them much thought and some (like my friend from work) find them positively ugly. They get the shapeless blob treatment in art work quite a bit as well.
So I took the opportunity while rehab-ing to do a little study and observation, trying to understand something about the structure as well as the aesthetics of feet.
Bits and bobs I found interesting:
The arch of the feet almost reminds me of a slingshot. There’s the heel bone on one side and the toe bones on the other side and this springy line of muscle spanning them.
I’m purposely avoiding the medical terms cause I find inventing your own words for things makes it more memorable and fun (though squidgy bits, bony bits and blobby bits might be pushing it a bit).
The centreline (of weight distribution?) starts between your two biggest toes and runs down to the heel.
The bones on the bridge of the foot are actually a bunch of little separate bones but they seem to be fused or something. They’re rigid and don’t really move in relation to each other.
So there’re only a few places where things flex an bend. I marked them below as where the colours change.
I also modelled a 3D foot as an exercise to really help me understand the form from different angles. It was really useful actually cause it helped me fill in the gaps I’d missed when just sketching in 2D.
This is how it went from a Maya base model to a zBrush sculpt.
Always easiest to worry about the big shapes first, then drill down into the details. The foot was kind of fun to do cause it’s a simple shape but full of little subtle asymmetries.
It would be fun to go up the leg and do a study on the next connecting limbs. I mean, I’ve also had a pretty bad knee injury before so maybe it’s high time I looked into that area haha. Suppose we shall see.
Starting to do some colour studies. I was doing backgrounds for our Regency Love game and I felt like the bit I had most trouble with was working out a good colour pallet. The colours either were a bit too saturated or they started to look muddy when I mixed them too much. Then often I couldn’t get the mood right, like it was too blue/green when it was supposed to have a warm feel.
Hence, thumbnail studies, concentrating on getting the general colour and atmosphere right. Found it quite challenging but useful!
To understand the forms of the face, it helps to understand the underlying structure of the skull.
Simplified, it looks like a loaf of bread + a wedge of cheese!
The advantage of breaking it down into simple forms is to make it easier to visualise at varying angles.
Rough guides on average proportions:
Eye sockets about the halfway between top and bottom of the head.
Eyebrow ridge at the top third.
Base of nose at the bottom third.
Most interesting for artists is probably how the forms of the skull relate to the forms of the face.
Top half of the face has very little muscle/fat so the form is mostly determined by the bone:
The relatively flat expanse of forehead.
Eyebrow ridges that shade the eye sockets.
The shadowed area between the brows (glabella)
On some faces you can see part of the eye socket (usually that inner lower corner has a highlight).
The Cheek bones which extend all the way up to the temples. There’s a significant change of plane/light there.
The bottom half of the face is a lot more fleshy:
The main bony structure visible is the jaw.
The rest of the area is softened by fleshy cheeks.
The nose is mostly fleshy but should note the bony bridge, especially the little break between where bone ends and cartilage begins.
The mouth also follows the shape of the teeth quite closely. (I was so surprised when I saw old photos of my grandpa before he got false teeth, bottom half of his face looked totally different!)
Side note: I got this very nice replica skull off ebay. For a plastic skull it’s got a great level of detail and I’ve learnt a lot from being able to refer to it while sketching an actual face. Also being able to hold it and feel all the changing planes from a tactile point of view helps everything sink in.