Sunday, 22 November 2009

Week 9 Part 4-Starting to Model the Sphere

I have to leave this piece as the final part to model as it is a minor part of the machine and can easily be slotted in even after the animation has been completed as long as it is proportional.

To begin I started with a sphere. I set the radius to 13.748cm and then made the shape into an editable poly. Within this menu I selected the edge icon and highlighted a vertical edge either side central horizontal edge. I then clicked on the ring button so all the parallel edges were also selected before opening the connect edges window. In this window I set the segments value to 2 and the pinch value to 12 so the new rings of edges were spaced apart.

Next I went into vertex mode and highlighted the middle three rows of vertexes of the sphere. Then, with the scale tool, I scaled the central section out to create the ridged area as in the photo. I did this in the top viewport so I only scaled the vertexes along the X and Y axis as this will keep the shape of this area circular.

I was quite pleased with this in general, however in the image the extruding part was thinner and protruded more quickly than it currently does. To correct this I selected the vertexes either side of the area I scaled out and then with the scale tool moved these rings of vertexes closer towards the extruding part. This resulted in the protrusion of the area being less spread and so I was much happier with this.

After this I went on to create the extruded area on the top of the sphere. To do this I entered polygon mode and highlighted the segments at the top. Once I had highlighted the number of segments which I felt would create a realistic width of the protruding part I opened the extrude window. Here I set the extrude amount of 11.475cm as I felt this created a realistic height for the first section. I then applied a second extrusion, this time to the lesser value of 3.786cm.

Next I selected the ring of vertexes at the top of the extruded area and used the scale tool to reduce the radius of this area.

I then deleted the polygon at the top of the extruded area before entering edge mode and selected the open ring of edges at the top. I then combined the use of the scale tool and holding of the shift key to scale out new segments. This lead to a larger ring of edges being created, but this new ring is not in quite the right place. So, with the ring of edges still selected I used the move tool to lower the position of these edges so they were slightly lower than the ones which these edges were dragged out from.

Afterwards I continued to drag out new polygons and used the scale tool when in vertex mode to try to get the correct shape. Whilst doing this I regularly referred back to the photograph of this section so I could get this part as accurate and proportional as possible. Gradually I built a shape which I was happy with using the above methods.

At this point I spotted a bolt which needed to be created. I found this task was not as simple as before as previously I only created bolts on sections of cylinders where the number of segments was divisible by 6 (the number of sides on a bolt.) to start I counted the number of vertexes in a ring and divided the vertex amount by 6. The outcome of this calculation was 5 with a remainder of 2 and so I decided the best option was to choose every fifth vertex for four of the sides and then every sixth vertex for the other two. When these were selected I then used the scale tool to move these points outwards to create a bolt-like shape.

This did not work as well as when I did this on the cylinder as the vertexes in between were not repositioned to create a bolt shape. I did try to do this whilst in soft selection mode with the same vertexes selected when scaling the selection out, but this did not help. In the end I had to reposition the vertex points in between the corners of the bolt to get the side straight.

Next I continued to drag out new polygons, once again by selecting the top ring of edges and while pressing the shift key using the move tool to produce new ones. Then I used the scale and move tools when in vertex mode to get the radius and height of each section to the same proportions in the relation to the rest of the object with reference to the image I was working from. When I had the created the whole of this part of the object I entered border mode, selected the top border and from the right clock menu selected cap.

I then considered the sphere as a whole and realised I had not shaped some parts correctly. To resolve this error I went back to vertex mode and used either the scale or move tool to prefect the shape in each place I identified a problem. Eventually I ended up with a shape which I was pleased with.

Now I was happy with the top protruding area I felt it was a good time to go on and produce the protruding area from the base of the sphere. To start this I went in vertex mode and selected the central and first ring of vertexes at the bottom of the shape before turning on soft selection. I chose these vertexes as I felt this area was equal to the radius of the post underneath. I set the soft selection falloff of 3.58cm and then using the move tool created the neck section. I dragged the highlighted vertexes down to a point which I felt was created a realistic curve of the neck to the post below.

When I felt this looked realistic in relation to the image of this part I decided to create the area underneath. For this I entered polygon mode and selected all of the segments on the base of this object. I then opened the extrude window and chose an extrude value of 4.224cm so it was proportional to the rest of the sphere.

I then deleted the base segments.

Following this I transferred to edge mode and selected all of the edges on the open rim at the bottom of the shape. I then used the move tool in conjunction with the shift key to create new polygons beneath the original. I repeatedly dragged out new segments in this way, each time using my photo as a guide to the height of each segment ring. When I reached a section which I needed changes to its width I changed to vertex mode, highlighted the vertexes which needed to be wider and used the scale tool in the top viewport to increase the radius of this area to a level which I felt was proportional to the photo.

I continued to make new polygons by dragging out new ones whilst in edge mode and giving the object an accurate shape by using the scale tool to define the width of each section.

Next I went on to create the lever which joined onto this post. For this I began by drawing out a cylinder and roughly positioning it at what I believed to be the correct height and position compared to the rest of the scene with the move tool. I gave the cylinder a radius of 1.007cm and a height of 8.028cm as this equalled the diameter of the post at the bottom of the cylinder. Also I made sure both the cap and height segment values were 1. I then made the shape into an editable poly and selected the cap segment at either end of the cylinder before opening the extrude window. I set the extrusion height to 0.851cm as this seemed to be to a relative scale in comparison to the width of the arms and spheres post which joined this cylinder to the post in the photo.

Afterwards I remained in polygon mode and highlighted several of the polygons on the side of these extruded areas. When making the selection I referred back to the form of this object in the photograph and noticed the arm was the full height of the cylinder, therefore I selected all of the segments on one side of the cylinders extruded areas. I set the height of the extrusion to 8.327cm as this took the arms to just over half way across the width of the post and in the image the two parts were joined together with a pin through the centre of the post.

I was happy with the appearance of this shape but felt there needed to be some minor alterations made to the positioning of the lever. Firstly the move tool was used so the arms joined the post at exactly the correct point. I then went onto the hierarchy menu and chose the “affect pivot only” button. I then changed the position of the pivot point so it was in between the two arms where they meet the middle of the post.

After this I perfected the angle which this object sat at by deselecting “affect pivot only” and using the rotate tool to angle the level slightly upwards. I used the photographs I took whilst at the museum to try to get the position exactly right. After altering its angle a couple of times I was happy with what I had achieved.

Next I went on to create the T shaped indented areas on the sphere where the smaller silver spheres are attached. To create this indenting area I felt it would be best to use the extrude tool, but when I went to highlight the polygons to be extruded I found they were too large for what I wanted. To resolve this I divided the polygons into smaller segments by going into edge mode, selecting one of the vertical edges just beneath the bulging area around the centre and then clicking the ring button to highlight all the parallel edges also. I then opened the connect edges window where I set the segment value to 1.

This made the top of the shape to be extruded the correct height, but the width of the vertical part was still too wide. To correct this I selected two of the horizontal edges whilst in edge mode which were either side of where the T shape extruded area needed to be before making sure all the parallel edges on this side of the sphere were also selected.

After this I again opened connect edges window so these parts could be split into smaller polygons, adding one extra row of segments to both of these columns of polygons by setting the segment value in the window to 1.

I had now made all the necessary alterations to the size of the polygons for the indented area and so entered polygon mode and highlighted the T shape where I felt it needed to be in relation to the photo I was working from. I then opened the extrude window and set the extrusion height to the negative value to -3.118cm.

This went reasonably well, however the extrusion was at the wrong angle, it went backwards into the shape and upwards at an angle but I wanted it to just go backwards. To resolve this I chose the move tool and with the polygons I extruded still highlighted I lowered their position so the indentation was solely in a backwards direction.

With this minor alteration I was now satisfied with the outcome of this part and so went on to apply the T shaped indentation to the opposite side of the sphere. I expected this to be very simple to do as I had already segmented the area on the first side, however when segmenting the vertical columns of polygons it stopped at the top and bottom. Therefore I started at this point by selecting the edge icon to enter edge mode and once again selected an edge either side of the area I wanted to extrude. I then selected the ring button to select the parallel edges also before opening the connect edges window again and adding an extra segment to this area.

Following this I went into polygon mode, selected the polygons which made up the T shape and opened the extrude window. I then extruded the shape to the value of -3.118cm again so that both sides were even. The final step was to lower the position of the polygons which had just been extruded with the move tool so the extrusion went backwards only instead of backwards and upwards.

Now the indentations had been created on both sides I decided it would be a good time to produce the silver spheres which were attached here. To begin I drew out a new sphere in one of the viewports with a radius of 3.437cm. I then made the shape into an editable poly, went into vertex mode and selected the vertex at the very top of the shape. Then I turned on the soft selection tool and set the falloff value to 1.753cm so any alterations I made to the top vertex would have some effect on the surrounding area. With this area highlighted I used the move tool to raise this area slightly to create the part which joined to the larger sphere.

I felt this was a good start to this area and so went into polygon mode and selected the top circle of segments and opened the extrude window. Here I set the extrusion height to 0.612cm and applied this several times to give me vertexes to work with.

This gave me some of the height I needed, but the shape I was aiming for was not quite right. To resolve this I went into vertex mode and highlighted all the vertexes I had just created. I then used the scale tool to reduce the radius of rings of vertexes. I made this alteration in the top viewport so I could assure the rings remained circular. To achieve the gradual transition from the sphere to the connecting arm above I deselected the bottom ring of vertexes and scaled the ring still highlighted further. I continued to deselect the bottom vertexes and scale the remainder highlighted until I had achieved the shape I wanted.

This had gone well, however the height of the connecting arm was still too short. To improve this I selected the top couple of rings of vertexes and with the move tool repositioned them higher, resulting in a longer length connecting arm. As with the method I used when scaling the vertexes I move the highlighted vertexes upwards, remove the highlight from the bottom row and moved the ones still selected up further. This resulted in the arm becoming the correct length.

Next I placed the smaller sphere next to the large sphere and realised that the connecting arm was still not right. To correct this I used the move and scale tool to get the same shape as in the image I was working from. When I was satisfied with the form of the smaller sphere I made some final alterations to the position of this shape with the move and rotate tools so the connecting arm was positioned inside the top of the indented area.

When I was happy with the positioning of this small sphere I cloned an instance and aligned the new shape within the indentation on the opposite side.

I am happy with the way the sphere has gone this week. I will continue to create this model next week when I hope to finish it.

Friday, 20 November 2009

Week 9 Part 3-Animating the Pressure Gauge

The modelling of this part of the machine is now complete and so I decided to go on and add animation to the necessary areas before the file is merged with the 3Ds max files other group members have been working on.

Animating the needle on the gauge involved making it flicker slightly throughout the timeline. The movement involved was rotation, with all the movement coming from the spindle where the needle joined the face of the dial. To begin I selected the pivot button in the hierarchy rollout so I could assure the point of rotation was in the correct place. This was already positioned in the centre of the circular area where the needle was joined to the spindle and therefore was correctly positioned for animation to begin.

Following this I checked that the timeline was set correctly. During this weeks group meeting the frame rate was discussed and it was decided to work in PAL which would run at 25 frames per second. Also, I extended the length of the timeline from 60 to 100 frames as I felt this would give me a reasonable amount of time to work with and allow enough variation to the needles movement. I felt this was important as I did not want the needle only moving through a couple of keyframes before repeating itself as obvious repetition would not add realism to the scene.

Next I created the animation along the timeline. For this I turned on auto key and made alterations to the needle at different points along the timeline. At uneven intervals I used the rotate tool to change the direction in which it pointed. I added key frames at uneven intervals as the move of the needle was not regular and therefore would make this part of the animation more realistic. Also, I rotated the needle to different angles when adding key frames to add realism further.

When I felt I had set enough key frames along the timeline I watched the animation. I was slightly disappointed with this as I felt the swing I had applied to the needle was too large. To resolve this I turned on auto key again and made changes to the position of the needle where I felt it was necessary with the rotate tool. This took quite some time as I ended up making changes several times to some key frames, but eventually I perfected the animation.

Now that I was happy with the basic animation I went to the curve editor and from this opened the “parameter curve out of range type” window. Here I changed the curve type from constant to loop so that what I had animated so far would be repeated throughout when merged with other group member’s animation in other files. I selected loop over other curve types as I felt this would work best for several reasons; firstly the needle would remain in the same area throughout the animation unlike what I expected linear or relative repeat to do, secondly so that there would be a smooth transition from the last key frame to the first when it repeats unlike the cycle type and finally as I thought the viewer could realise if the animation played forwards and then backwards.

I am pleased with how the animation has gone. This file is now ready to be merged with the other 3Ds max files which contain machine components.

Week 9 Part 2-Applying a Mesh Smooth

The bulk of my modelling is now complete; meaning the last step before incorporating this with the rest of the model is to smooth the shapes which make up this object. I decided to use mesh smooth modifier to do this as it is the one I have most experience with and when used in the past it worked well.

To start I selected all the objects in one of the viewports before choosing mesh smooth from the modifier list. However, I found the model lost some of its realism when this was applied.

When I discussed this problem with another group member they informed me that they had found applying smoothing groups in editable polygon mode allows there to be more control over the way the surfaces are smoothed. This works by giving polygons which need a smooth join the same number whereas when a sharp edge is required between two polygons each will be allocated a different smoothing value. I had a go at setting smoothing groups to see if I could use this tool to my advantage.

I began by trialling this on the name plaque. For this I entered polygon mode in the editable poly menu before highlighting the polygons which I wanted to be in one smoothing group, starting with the segments on the front of the plaque. When selected I removed the preset smoothing values and set this area as smoothing group 1.

I then select all of the other polygons and set them to smoothing group 2.

I then changed the setting in the editable poly polygon rollout in the subdivision surface section setting it to “separate by smoothing groups” and then in the mesh smooth rollout in the parameter section I again ticked the “separate by smoothing group” box.

When I looked at this in the render window I was disappointed as there was very little difference to the shape with the use of smoothing groups. I went back to look at what could be causing this and found that it was probably due to all the segments around the edge of the plaque and the ones around the edge of the indented area all had the same smoothing group polygon number. To resolve this I reselected some of these polygons, this time only the vertical segments, and changed the smoothing group for this area from 2 to 3.

This was now the result I wanted and so will go on to another part.

Next I decided to work on the smoothing of the tall post. Currently the top was curved which was not wanted and the join between the upright pole and its base had a gentle curve between the parts which was also incorrect. To improve this I set the segments which made up the main post and the area which attached this shape to the main box of the machine to 1. I then set the polygons which sat on this shape horizontally to 2, these being cap segments on the top and bottom as well as the segments which link the post and area which adjoins to the machine. The last step for this object was to turn on “separate by smoothing groups” in both the editable poly and mesh smooth rollouts.

When I looked at this I was very happy that the form of the shape was very clear. I was especially happy with the smoothness of the bottom sections as originally the polygon which built this up was quite obvious.

I continued to make alterations to the preset smoothing groups where necessary to make the model as realistic in appearance as possible. As before I applied one smoothing group to adjoining polygons where I wanted to portray a continuous surface and different smoothing group values where I wanted a definitive edge. I was particularly pleased with the appearance of the main box once this adaptation had been made as the curved rim became rounded, something I was unable to achieve by editing the editable poly alone. Below is a screenshot of the engine after the smoothing groups were set.

I believe I have now made alterations to the smoothing group settings on all the objects which I felt did not look correct when mesh smooth was applied. I am happy with this section of the machine and will now go on and create the final part of the machine I was allocated to model, this being the sphere section.

Wednesday, 18 November 2009

Week 9-Completing the Finishing Touches

To begin this week I will continue to prefect the piping on the box section of the steam engine. At the end of last week I did notice an error with the modelling on the pipe where I had not created all of the bolts and other shaping. To correct this error I entered editable poly mode and chose the edge icon. I then selected one of the edges in the area where the extra shaping needed to be added and clicked the ring button.

Afterwards I opened the connect edges window. Before setting the number of segments I looked at my photos and tried to count the number which I needed to add. This task was more complex than I anticipated as I had to make sure only to include the segments which I had previously missed. From this I decided to add 8 new segments.

I used the move tool in vertex mode so I could separate the rings of vertexes out. When doing this I looked at the shape I was trying to recreate and moved vertex rings accordingly, therefore where there are two sections next to each other which were a different radius I placed two rings of vertexes next to one another so this could be created.

Next, while still in vertex mode, I selected the rings of vertexes which make up one section of the pipe and with the scale tool increased or decreased the width of these parts to recreate the pipe in the photograph. Where a bolt needed to be created I scaled the vertex rings larger than necessary so they were easier to work with. I then selected every third vertex in both rings before scaling these further to create the six sided shape needed.

When I had achieved the shape I needed I scaled all of the vertexes in the rings down so this part was proportional to the rest of the pipe.

Now that the extra sections had been produced and shaped I decided it would be a good time to give each section the correct height. To do this I remained in vertex mode and started by highlighting all of the vertexes which were above the area where the height needed to be increased. I then used the move tool to slide these vertexes upwards.

When I felt this part of the pipe was now to the correct height I deselected the vertexes towards the bottom of the highlighted area and repeated the process of stretching the polygons with the move tool on the section of pipe above the one just edited.

I continued to repeat this process until I felt that all sections of the pipe were proportional to the image I was working from.

At this point I did realised that one of the original parts of the pipe which I had not missed was slightly too wide and therefore not proportional. To resolve this I selected the vertexes which made up this area and with the scale tool reduced the width accordingly.

I was now pleased with the shaping of the pipe, but as a result of these alterations the sections which joined onto this pipe were no longer positioned next to the correct part. Therefore I selected each of these objects and using the move tool I realigned them, all the time referring to my images to try to get it as accurate as possible.

Also, I repositioned the dial and top section of piping so it once again looked like a whole shape.

When I looked at the model as a whole I realised these alterations had affected the pipe which went from the metal pipe to behind the machine. This now intercepted one of the cylindrical shapes on the back. To correct this I selected the troublesome pipe and in the editable poly rollout went into vertex mode. I then highlighted the vertexes at the bottom end of the pipe before turning on soft selection. This resulted in some additional faces of the shape being highlighted also, but not as many as I felt was necessary to prevent polygons being stretched and the shape of the pipe no longer being fluid. To make sure as much of the pipe as I wanted was affected by the alterations I was to make I increased the falloff value to 323.325cm. I then used the move tool to lower the pipe so it no longer cut into the cylindrical shape.

Afterwards I went on to create the clamp bolt positioned between the metal and rubber pipe. To begin I drew out a box with a length of 11.794cm, width of 3.905cm and height of 0.936cm as I felt this was roughly the right size. I also set the length segment value to 5 while leaving the other segment values at 1. I then converted the shape into an editable poly before going into vertex mode and using the move tool to shape the vertexes around the pipe.

This went reasonably well, however it had not created the smooth shape I was looking for and I believed this was due to there not being enough vertexes to enable me to get a smooth shape. To correct this I changed to edge mode and selected one length of edges. I then selected the ring button so all the parallel edges were also highlighted. Following this I opened the connect edges window and 1 extra segment in between each edge already there.

Next I returned to vertex mode and continued to position the vertexes around the pipe as I did before. This time I was much happier with the outcome as the shape was much more realistic than my first attempt. Also I move the vertexes on top of this shape downwards to make the shape narrower as I currently felt the height was unrealistic.

I was pleased with the progress I had made until I rotated the viewport and noticed there were still gaps between the pipe and the clamp bolt.

I initially tried to resolve this using the move tool to reposition the vertexes but this made little improvement. Instead I selected all the vertexes which should touch the pipe and with the scale tool made these sit inside the pipe. This would assure there were no gaps between the bolt and the pipe.

This lead to quite an improvement, however it also caused the visible width on the outside of the pipe to become inconsistent as the bottom vertexes had moved up. To resolve this I entered vertex mode, selected the vertexes which no longer were positioned correctly and with the move tool lowered them so the correct width returned.

I was now satisfied that the objects shape was realistic and so mirrored a clone. I set the clone type to an instance so that if any alterations were necessary then they would be made to both. Also, I set the new shape to be mirrored along the Y axis so that it would be ready to use for the bottom of the clamp bolt.

I then used the move tool to position the clone underneath the original so that it covered the bottom half of the pipe. When doing this I was careful to make the same amount of the clamp visible around the bottom of the pipe as at the top. It was during this task that I noticed I had forgotten to model the part of the clamp which comes out of one of the sides of the clamp. To improve this I returned to editable poly mode where I chose the polygon icon. From here I highlighted the polygons along the side of the clamp bolt where the additional part needed to be added and opened the extrude window. I set the extrude value to 2.06cm.

The addition of these segments had gone reasonably well, but the shape I had created still did not resemble that in the photograph as the extruded area was too square and box like. Following this I changed to vertex mode and highlighted the vertexes with the paint selection marquee which I felt needed to be repositioned and with the move tool I made the alterations to the amount I felt necessary. This went very well and resulted in the object being perfected and having a greater likening to that in the image.

Following this I also smoothed the edges where the top and bottom of the clamp bolt were held together. The way I built this up meant that it would not be possible just to reposition the vertexes as the section was made up of one large polygon on each side. Instead I selected the polygon on each end and opened the extrude window where I set the extrude value to 0.587cm as I felt this would be enough to work with to enable me to get a more curved edge.

The last step when editing this part was to use the scale tool to reduce the length of the end polygon along the Y axis to remove the points at the corners.

I now felt this part of the clamp bolt was complete and so decided to go on to add the screws which hold the two parts of the clamp bolt together. For this I started by drawing out a cylinder with a radius of 0.373cm and height of 1.853cm. I also set the height and cap segment values to 1.

Next I made the shape into an editable poly and went into polygon mode before selecting the top cap segment and deleting it. I then went into edge mode where I selected all the edges along the top rim. With these selected I dragged out two new rings of segments by incorporating the use of the move tool whilst holding down the shift key. I was careful of the height of each section as I wanted the screw to look as realistic as possible.

Afterwards I entered vertex mode and selected the top two rings of vertexes before selecting the scale tool to make the radius of the top section wider so it would represent the top of a screw head. To do this I scaled the vertexes in the top viewport so I could assure the circular shape remained. I then highlighted every third vertex around the ring and scaled these out further to make the circle into a bolt-like shape.

The last step for this area was to cap the top border.

Next I deleted the bottom polygon before entering edge mode and dragging new polygons out the bottom of the shape. I dragged out a few new segments as before and then went into vertex mode so I could make some parts of the edited cylinder wider than others using the scale tool. When I had increased the radius to a point which I felt was proportional I selected every third vertex and scaled these outwards as well, once again in the top viewport, to transform the circular shape into a hexagonal one.

After this I returned to edge mode where I dragged out a couple more rings of segments. Once I had dragged out the final edge I selected the scale tool and with the bottom ring of edges still selected I scaled the radius of this part down so it formed a slight point to complete this end of the screw. The final step was to cap the bottom end.

Lastly I lowered the bottom two rows of vertexes to assure the segments above were the correct height.

I now felt the screw was complete and so positioned it at the side of the clamp bolt by combining the use of the move and rotate tool. When I had aligned this I found the gap between the screw head and the bolt was too big and so I went back into vertex mode, selected the vertexes which made up the bolt and area below and used the move tool to remove the excess length.

Following this I made some small alterations to the size of the head of the screw as I felt it was currently a bit too small.

I was not happy with the appearance of the screw and so cloned a copy in case any alterations needed to be made in relation to the gap between the screw head and bolt on the other side of the clamp bolt. I then used the move and rotate tools so that I could position the cloned screw.

Once positioned I did find the screw head and the bolt were not wide enough apart. To resolve this problem I went into vertex mode and moved the bolt further away from the screw head so that one was visible above the clamp and the other visible below.

The last step was to come out of editable poly mode and use the move tool to make sure that the screws were in the middle of the width of the clamp on either side.

At this point I felt the clamp bolt was complete. Below is my part of the machine so far.

Next this week I will smooth the model with the mesh smooth tool. Also, I hope I will have time to start the modelling of sphere before the end of the week.