Friday, 15 December 2017

Imperial Star destroyer - Updated

Step one,setting up the blueprints, and the cube... 
 Centering the cube in the center of the images,allowing for a visual guide for themodel.

First off,extruding the cube, subdividing face to give the triangle shape, reason I didn't use a pyramid was because I believe going from cube to shape is easier than shape to shape... 


Next up extruding the sizes to give the small indent in the sides, to follow the instrutions in the blueprints. Which was simply made my selecting the side faces, then subdividing horizontally, and scaling inward (X,Y only)


Next, we need the cockpit, at least that's how I'm identifying it for this process, we have a total of three layers, Which will be made with one mesh, for simplicity, Also so it melds will with the base model below.


Next we'll bemaking the control sector which is connected by a vertical shaft,whichis simply doneby more extruding!

Next up are the side bobbles... Or whatever they're called, simply thing, we're getting a sphere, reducing the poly count until it matches the orbs in the back, followed bysome Cylinders (Again to match the shapes)


Give the orbs a platform, boolean union them until they're one prefab, then stick them into position.


Next up, the engine and exhaust. Which is simply, a cylinder, with one side scaled down to give the cone effect. Extruding the larger circle of the cone, BUT do not pull it, inside scale it down, Extrude again, pull out, scale out, THEN we Extrude one final time, extrude down, and pull in.  And that's how you get that shielded rocket kind of look.

As for other details like the rings and the bars,  simply Halo's and Cylinders. Nothing too complicated.



And that's the general shape of the Imperial star destroyer! Personally I feel like there should be much  much more detail, but I either: Can do it easier with Textures and bump maps. Or  the extra modelling work would lead to either complications, or inaccuracies with the model.  But over all, I had fun working on this model! Even though issues with the Side of the destroyer gave issues, cuts not connecting properly, and somethings the mesh breaking at points.

If I had to pick something I could have done better, I'd say time management, as I spent a lot of time deciding how to get the body done.Since, while the shape is simple, getting the control cockpit, the extra layers, I wish I could have done it on the actual model itself.


Now, an update... So the star destroyer I made previously was borderline buggy and pretty bad, so for the animation, I decided to completely remake it.




This was made, using the same tactices as before, but with more emphasis on having this model off in the distance. I used Bumpmaps to give the star destroyer more texture, I centered the model's faces so it wasn't lopsided like the other one. Redid all the Textures so it wasn't just one texture wrapping the star destroyer which made it completely ugly. (A top image for any face on top, and a bottom image for the underbelly). More details like lights to represent actual rooms in the star destroyer looking to the outside. Modeled the center a bit more again to be more accurate to a more detailed Star destroyer. But the rest was merely to give it the look from a distance, as you don't get any closer than panning shots from a fair distance, no close up shots involved.

If there was any close up shots, more details like the cannons would have to be actually modeled, the bumps would also have to be fully modelled and not passed onto a texture and a bump map. In reflection, I probably should have taken more time and care with this model, Using my head in how I could have made it look good, and not just aim to fling something "Decent" out. I decided to change the model due to some animation issues, where part of the model wasn't in center... But that was it's center. And instead of dealing with the broken ship, I got rid of it, and remodelled a completely fresh one.



Skeleton Rigging

First, we were given the skeleton hand from the lecturer, No skeleton.

First, I made the base bone at the wrist of the hand, which was doneby going into the Rigging section of Maya window options, going into skeleton, and going into create joints.

When I make  the first joint from wrist to center hand,t hen center hand to middle  knuckle, by just clicking the points I want the next joint to appear at. And like any hand, the thumb has the base joint and the middle  joint, while  every other finger has three joints, to simulate a real  lift hand properly.


And to simply start the other fingers, I simply hit the up key to go up in the  Skeleton Hierarchy to go back to the center bone, then making the next finger,  and so on and so forth, until all the finger bones are created in the rough spot.

Next it actually changing the bones to match the model itself, so grabbing the bones and just changing it's position, starting at the base to the tip of each finger, since working from finger to base would require more editing on the finger sides, since each bone is a child to the bone before, meaning any movement to the parent would change the childs location. The following two pictures are the before and after bone editing. 

As for the way the fingers are located, I based the bone structure on the actual way the  human  hand is shaped,  where the bones originate from the base of the hand for all fingers.






Next  up is rigging the bone itself, first you select the bone structure, the base bone. Followed by additionally selecting the hand mesh, then going to skin, and you can either go bind skin, or interactive bind skin.

Bind skin allows you to bind the skeleton with the default calculations to get to animating immediately, while interactive allows you to change the weight of  each bone, so you can choose what parts of the  mesh are affected. For the hand I went for Bind skin, and the default bones were enough to get  the fingers and thumbs to animate properly.

The following few pictures are me simply bending the fingers and thumb to prove that the binding was successful. Although if this wasn't the case, I'd have to do the interactive bind skin, and simply mess with the weight  and areas until every bone moved properly.

This is actually a pretty good technique to use if you have multiple limbs or parts of a mesh that have to move relatively realisitically. However, for my animation, I didn't use this feature, not because it was hard to do, but I just didn't have the mesh I actually needed for this.Like an AT AT or an AT ST which would require limbs to move.


Thursday, 14 December 2017

Bouncing rubber ball / Key frame animation.

Animating the ball, a fairly simple animation, using Keyframes (Set with the S key on the timeline)
First off, we have the display for the frames, numbers one to 31. For starters, I'll fully animate frames 1 till 7, then I'll animate frames 12,17,21, etc (Basically all the balls that aren't grey)



As you can see, rotating and stretching the ball to fit frames 5 and 6, to give that sense of speed and velocity. Only to be squashed. Now putting all the black ball frames in place,I'll run the animation, and... The ball doesn't exactly morph as projected. This is because the animated ball is trying to transition to frame 12, calculating frames 8 to 11 from the 7 start, to the 12 end.



But to get the animation to work properly, we'll need to fill out all the grey frames in order to get the animation to work out as intended.




Now in the actual animation, I've actually key frame animated a few things in question, for example the Star destroyer was using keyframes as this allowed more accuracy in movement than motion paths. Although it's more tedious with alot more input required.

But it allows for more sudden actions that tween from one key frame to another.


Constraints and relations



Aim:
This allows the main object to face forward (Object Axis Z) to the target object, like the camera aim.  This could be good for eyes rolling to track something, a turret aiming at a ship. This is actually set within the Camera functions within Maya. With the Camera Aim, and Camera aim and up. Essentially a shortcut to aiming.


Parent:
This puts the additional objects under the hierarchy of the first selected, meaning whatever movement the parent object does, the children are affected based on the parent's axis.

An alternative would be going into the hierarchy and drag and dropping objects into the parent you want within the Hierarchy view in Maya.


Scale:

Pretty simple to explain, Constrain rotation matches the scale of the child / children objects with the main parent object, Rotation, location aren't affected, as this is  based on local scale. (So Object X instead of world X)  This is good for


Rotation:
Constrain rotation will simply mean the linked objects will share the same rotation, Location and scale are unaffected. This is kind of good for having a group of objects  moving at the same time. This is good, so you can animate one spinning object, and simply have the other objects rotate in the same way. Without having to individually rotating each object one by one.

Translation: This... Is the one I don't really get, this puts an object in the same position of another. No position change allowed, which,personally isn't  as good as just doing a basic parent/ child relationship.






Sky dome

Making a sky dome is actually pretty easy (And considering I did it in my animation I will just show my skybox)

First, you need a sphere, and a skybox material, and like setting any other texture, you simply add the texture to the Material's colour variable, And since this is a sphere, we simply need to do a spherical UV bind to it, very very simple.

But now, the texture is on the outside of the mesh, and when you look on the inside, it's simply black. So we simple have to select the sphere in question, right click, and simply invert the faces of the sphere, next time you render inside the skydome, you now have a sky surrounding your scene! Instead of a flat colour.

Or an alternative would be setting a background to your renders, but this will only lead to a simple static image that won't move to your perspective.

It's nothing complicated, infact it's a very easy technique to use in any engine, Maya, Game engines like Unity... And it's cheap and effective to use. Although, make sure you get the right image to set, otherwise... You can get very strange visuals.
(Non maya visual from Mount and Blade)

https://www.reddit.com/r/gaming/comments/2pdiqc/a_strange_glitch_my_friend_experienced_whilst/?st=jb744gty&sh=51bd2424

Image result for Sky face texture

Rendering / Post rendering.

Test view: This is the scene I'm demonstrating, the camera directly infront is the close angled Lens, while the one to the side is the wide angle, this is just to  show off different aspects of rendering, which will be shown shortly.



Vector: Simple Geometry, no shading, the default colours, no glow no special effects. This special rendering style is actually used in South Park episodes, simply shapes, simple movements, no shading  needed.


Shake: This simply changes the position of the camera slightly using X,Y Co-ordinates, this is a good way to mimic a bumpy ride, by having the camera shake even Simulating an earthquake by purely making it shake up and down.



Software: Software is a smoother rendering method,  but cannot do too many details, smoothing is disabled on objects. Lighting is disabled, but textures can be rendered, as well as certain special effects such as Particles.


Hardware: While Hardware is a more indepth way to render,  rendering lighting, textures, shading, special effects like glows. Smooth rendering can occurs




Wide lens: Changes the way the scene is rendered, making the subject in question smaller, while rendering out whatever would have been cut out. And the opposite is true for The zoomed in lens, where the focus is zoomed in on, and anything around is essentially cut out of frame. Different camera lenses can make thedifference between showing a wide shot of many people, making them seem far away, while the close up lens allows you to focus on details, close up. And this all can be accessed in the rendering options.



Next up, the actual rendering process, Here are the following things you need to use to render:

Camera.
Start and end frame. (Beginning and end)
Render type. (Software,Hardware or Vector)
Single frame render or video. (Save as one single frame, or from start to end frames)
File type (Png, AVI,etc), file name.File Location. 
FPS (Frames per second)



Now as for my actual animation, I decided to go with medium quality animation, partnered with medium lighting (To speed up rendering time). I am initially rendering out every 200 frames. So I can stitch them all together as I need them. I will render out frames 1-200, then 201-400, and so on and so forth until I hit 900 (30 seconds) So that means I am rendering 6.6 seconds each avi clip. Although the rendering seems to stop at frame 639 for some reason, so I'm trying to skip frame 639, due to it causing render crashes. It only seemed to be on the snowspeeder camera, so my solution was to switch rendering to a different camera, and it seems to have worked, no idea why this happened however, just a weird glitch where the rendering thought it was finished when it really wasn't.


My settings are set to 720p HD settings, so the width and height are within the requirements of the assignment, as well as my animation being 30fps, again, the requirement for the assignment.

I was originally rendering out the animation in one big chunk... But the animation would crash before it reached that point, so I changed to rendering in chunks (At a lower shading quality too) This was to make it so I should at the very least have something from a rendering session, instead of losing everything just to try again, wasting more time than I already did.


The plan for all the animations is to have editing done post (So motionblur, screen formatting, audio etc). I have multiple camera angles (If I can render them all) to show different perspectives of the actual animation. 
Now for what's actually happening in post rendering (Editing in other words). First of all the editing software I'm using is Adobe after effects, as I've had previous experience with this editing software before. I decided to do a few simple edits. One being snow in the scene, thanks to a solid black layer, I get to set a layer of snowfall, something for the background. But I have the black removal on so the snow is overtop of the video file, without any issue. Additionally in one part of the animation I decided to add a lensflare, to mimic the effect of a blast, like a bomb going off in the distance. As the Star destroyer and Tie fighters can be seen later fleeing the scene.

An actual scene of mention is the first scene, which actually uses a fair bit of exposure effects, starting from a bright light, eventually fading until it shows the ships, the target of the animation. This actually did require a reshoot, as the animation the first time, wasn't rendering the right camera... A negative to Maya, where changing the rendering camera is much more complex than other software. Meaning I missed an entire scene, and I needed to rerender, wasting valuable time.

Next patch of editing is actually when I start to use a couple of adjustments layer, These are essentially edits to any layer below, mainly I did a fair bit of warping of the screen after hitting a giant snowboulder on the way to the ramp. This was admittedly a way to hide one of the flaws of the original rendering going down the spiral, at least for part of it. But I decided to add some error text, explaining what's going on with the visuals, since the Camera's going through issues. Which was placed above the warping adjustment layers just so the text was untouched. While the snow effect was below the Adjustment layer, so you don't see random flakes of snow during the warping process, kind of throwing off the illusion of a video glitch. In addition for the ending, it's a news broadcast of the imperial star destroyer, with the logo and a BBC styled text banner, acting as an overlay, which comprises of an image with a transparent background with the banner, some scrolling text, which is also made with after effects. And finally the imperial logo, edited to be red to match the banner. The text changes during crucial points of the broadcast, thanks to keyframing values, like the camera reboot sequence. And during this star wars imperial march (Link: https://www.youtube.com/watch?v=qYPIf8UE0wc ) is playing in the background, and when the broadcast begins to get interrupted, the music also begins to distort. 

Next post effects editing was quite simply put, changing the speeds of clips. So for example if the rendered scene is a bit too slow, I can speed up the clip by going into Layer, time, time stretch. This is essential to this animation, as certain parts as rendered take too long or not long enough to actually take effect. and is much easier and faster to edit than rerendering.

And one technique which is... Cheaply done, was the fire and explosions effects, this was made using greenscreening techniques, which actually looked good, apart from being a completely different style than the animation itself, due to the fact it's a real explosion and real fire. But in the end, I kept the flame on point, kept it rotated and scaled as I needed it, and it looked pretty ok. Alternatively I would have used Particles for smoke instead, but.. In the Particles blog, I already mentioned the issues with Particle emitters in Maya.

Particle emissions / Lightning / Volume materials.

Particle emissions.
Personally I tried to use this, but the animation seems to be having issues, as I'm writing this, but Particle emissions basically produced a 2D texture (Dots, Streaks, spheres etc.) based on a spawn point and an area of spawning, which allows the particles to actually spawn, since without the area, nothing spawns. Before issues began to arise I managed to make a pretty good smoke like effect to mimic a smoke like fire. Originally I was going to add this for the Star destroyer when it's destroyed, but it seems to have caused an error with rendering, so I removed it for the Snow speeder perspective.

Now a complaint about Particles, As they cause Maya to crash constantly. Skipping along the timeline, back and forth, The particles won't react appropriately, Already spawned particles will remain if you go back in time (When those particles shouldn't exist) Particles will fail to spawn if you go too fast forward, missing their cue. And finally if you run through the animation, there is a high chance the actual software will freeze. Meaning if you want a smoke or spark effect, probably best to use Post render editing to help (After effects, vegas pro etc.)

Lightning.

Lightning is one of the effects I chose to use for my animation, specifically to show the tie fighters took damage from the snow speeders shots, to the left you will see the lightning in the modelling viewport, while to the right you will see the lightning render. very simply to impliment, simply select to objects you want lightning between and use the Lightning effect tool. By messing with the material you can have anything from blue, green or red lightning.

Sadly this can only be rendered out in Software mode, meaning any hardware based effects wouldn't be rendered.


Volume Materials.
Volume Materials is a way to make a simple fog effect. In terms of Maya, it's a NURBs primative with the volume material set instead of the surface, which by default is set to be thicker in the center of the object, only to fade near the edges. From the objects you're allowed to use, cone, cube, sphere, pyramid. Personally, I used the cones with some emissive materials on the tie fighters to mimic flame flickering. A Volume box to make the valley you saw in the last image, filled with fog. A sphere for a fire like glow, Like if you were looking at an explosion or a sun.

This is the best way to actually add in a easy to set fog affect in the background, without adding one post edit... And messing with Layers and affects just to get a simple fog.