Modeling Maynooth Castle Part 7 – The Final Product

The castle is finally complete! Since the last post, I’ve added some trees to the scene and cleaned up the last of the materials.  Unfortunately, exporting the scene into sketch fab is not quite as successful as the rendered version in the 3DS Max.  For some reason, the materials used on the roofs of the various buildings do not export and neither do the materials for the trees.  However, I think its important to be able to move the model around, so I’ve decided to include the sketch fab version, even though it only looks partially complete.

The Real Final Product

The real product looks pretty good when rendered in 3DS Max.  I’ve included a number of screenshots from the rendered version below.  Hopefully, these will give you an idea of what the final product looks like in 3DS Max.

Front of Castle

Front of Castle

East Side of Castle

East Side of Castle

Back of castle. Note shadows from sunlight (which is behind castle)

Back of castle. Note shadows from sunlight (which is behind castle)

West side of castle

West side of castle

The Sketch Fab Version

Below is the version that exported to sketch fab. While this is the more “interactive” model, sadly the export process from 3DS Max doesn’t seem to play well with textures that are embedded in 3DS Max. So you can see that both the trees and the roofs of the buildings (both of which are 3DS Max built-in materials as opposed to custom materials) don’t export into sketch fab. This is unfortunately because it doesn’t give the full picture of the model, but this version does give you something to play around with.

UPDATE

I tried adding custom materials to the roofs and the foundation of the keep outset building in order to get those to render. While I don’t like the final output in 3DS Max as much as the original (and thus for the sake of the project, I’m keeping the original in tact), it does look a little bit better in sketch fab since those areas now have exported materials. I’ve included this new sketch fab version below.

Modeling Maynooth Castle Part 6 – The Story

One of the things I thought that might be interesting in discussing the creation of the model is to show a sort of breakdown of how the model was built.  So I’ve taken screenshots from 3DS Max (the software I used to create the model), that shows the model as it moved through various stages of creation.

 

Building the Walls

Building the Walls

Adding the South Gate

Adding the South Gate

Adding the bend in the south wall

Adding the bend in the south wall

Adding buildings and bend in west wall

Adding buildings and bend in west wall

Creating the chapel and the north wall bend

Creating the chapel and the north wall bend

Starting the Keep

Starting the Keep

Refining the Keep

Refining the Keep

Adding More Detail to the Keep

Adding More Detail to the Keep

Further Refinements to the Keep

Further Refinements to the Keep

Adding Details to the West Buildings

Adding Details to the East Buildings

More East Building Detail

More East Building Detail

Finishing the East Buildings

Finishing the East Buildings

Once the modelling was complete, materials needed to be added to each object. This is where a lot of experimentation kicked in. In the two images below, you can see my first attempt at adding materials. While the roof material looks ok, you can see that the stone on the buildings isn’t right. Rather than looking like multiple stones forming the building, it looks like each building was carved from a single stone, which is obviously not right.

Distant view of first attempt at materials

Distant view of first attempt at materials

Close up view of first attempt at materials.

Close up view of first attempt at materials.

As I continued to experiment, I started adding some general nature (such as grass) to the scene. You can also see in the close up view that the walls of the buildings now look like individual stones; however the material on the walls looks very displaced so that needed some additional tweaking.

Scene with grass and better building material

Scene with grass and better building material

Close up of building showing better stone work.  Note poor material on wall.

Close up of building showing better stone work. Note poor material on wall.

Finally, I added a hair and fur modifier to the grass to give it a more life-like look and feel. I also cleaned up the material on the walls to make it more uniform.

More realistic grass and uniform stone material

More realistic grass and uniform stone material

Close up showing more realistic grass and stone material

Close up showing more realistic grass and stone material

Coming Up Next . . .

Up next is the final post regarding modeling maynooth castle. This post will show screenshots of the final rendering as well as a working 3D model.

Modeling Maynooth Castle Part 5 – Woe to Materials

I’ve decided that Materials in 3DS Max are not my favourite thing.  In fact, I think they are my least favourite thing.  I’ve been playing around with them for the past couple of days, trying to get a stone material that looks just right.  While I’ve had some minor success with a material for the buildings, I have yet to make it look like individual stone work (currently, it looks like each building is carved from a single rough-hewn stone).

The Process So Far

As I mentioned in my earlier blog post, my original thought on materials was to use a multi-subobject approach.  I would apply diffuse and bump maps using images taken of the exterior of the keep, then use secondary materials for the roof.  This approach was largely unsuccessful. I ended up rebuilding the roofs on the various buildings as other objects, so I could apply separate materials to them.  For the stone work on the buildings, I created a blend material that used an image from the castle wall as the map for the blend.  This seemed to work better as it presented more of a rough stone look.  I then applied a UVW Map modifier to each object and applied the material.  With the exception of the material creating the illusion of a single stone instead of multiple stones, the material application worked rather well.  However, when applying the same materials to my wall objects (which also had a UVW Map), the material looks painted on and doesn’t have the same texture as the buidings.  See below for an example:

material_WallBuilding

I’ve tried messing with the tile values on the UVW map for the wall objects, but that doesn’t seem to have the effect I was hoping for.  I may scrap the material all together and return to using images applied as bump, diffuse, and displacement maps in order to create a more individual stone look.  As for the walls, I suppose more trial and error is involved.  I will continue to work with the UVW map settings; I may also separate materials for the walls, so I can further control how they are applied.

Modeling Maynooth Castle Part 4 – Materials & Lighting

Since my last post about Modeling Maynooth Castle, my progress has been solid but largely uneventful.  I haven’t encountered any major issues or problems outside of the normal day to day frustrations of modeling, such as paying extra attention to that one polygon that doesn’t seem to want to be shaped the right way or fixing an accidental extrusion, etc.

After making significant progress on the model itself, I decided to start applying some materials and lighting.  The lighting itself was relatively simple.  Since I’m dealing with a castle that was destroyed in the mid 16th century, I decided I was only going to use natural light.  Thus I was able to easily implement a daylight system.  While I couldn’t quite set the date of the daylight system to 1534 (the year the castle was destroyed), I was able to take it back all the way to 1583, which is the farthest back the software would calculate. I set the time of day as noon and set the appropriate latitude and longitude in order to calculate the position of the sun.  3DS Max made all of this very simplistic, and I had no issues implementing the system.

The materials have proven to be a bit trickier.  I took pictures of the current keep walls, as I hoped to use those as materials.  I pulled one of these pictures into photoshop and used the patch tool to create a seamless, tileable texture.  I think applied this texture as both a bump map and a diffuse map to a material and mapped the material to the keep.  The results are below:

keep_material1

The result isn’t bad, but I don’t feel it’s anywhere near complete. I started experimenting by applying a UVW map.  Then I decided to scrap the original material and create a multi-sub-object material that would allow me to set different materials for different areas (such as the roof, the wood paneling that is part of the roof, etc).  I also decided to create blends and use the images of the castle walls as maps for the blend.  The result ended up with the castle walls themselves looking a little cleaner:

keep_material_multiobj

I think the walls of the castle itself look a little better (ignore the giant cross shape in the middle for now.  Those are actually separate objects I haven’t applied the new material to yet).  However, I don’t think the multi-subobject approach is going to work for the roof:

keep_material1_badroof

 

As you can see, not only does the material not look different (it should have more of a tiled slate look rather than stone) but you can also see each distinct polygon where the material was applied.  I think I’m going to have to trash the roof and rebuild it so it is a separate object that I can apply its own material to.

I’m going to continue working on it to see how I can improve upon it.

Modeling Maynooth Castle Part 3 – The Keep

I started modeling the keep a few days ago and felt I was making good progress.  Unfortunately, I was wrong.  However, I’ve learned a very important lesson:  when doing extrusions on an object, always zoom out to make sure you didn’t accidentally destroy the geometry.  Sadly, this lesson cost me about 3 hours’ worth of work.  Thankfully, I started making regular backups of my saves; otherwise this could have been much worse.

The Process

I started the keep with just a standard cube. I then constructed small towers that went along the tops, and for the crenellations, I did what I have always done—I extruded the polygons of the cube (after converting the cube to an editable polygon). I’ve never had a problem with this. Here is what the top part of the keep (which was the area I was focused on) looked like when I noticed my problem.
Top of Keep
I then zoomed out in order to inspect some aspects of the roof of the keep (for which I was about to create the pitched roof). That’s when I noticed my problem.
Messed Up Keep
As you can see from the photo, quite a bit of the geometry of the keep is distorted. Random sections are extruded or missing. The bottom of the keep was completely distorted. I probably could have fixed it, but I decided the amount of work it would have taken me to fix it most likely would have equaled the amount of time I spent getting to that point since my last back up. So I decided to cut my losses and simply revert to my last backup.

What Went Wrong?

I’m not entirely sure where everything went wrong, to be honest. The only thing I can suspect is that I accidentally selected other polygons while I was selecting the polygons for the roof (either that or I had failed to set the height segments when converting to an editable polygon and thus was extruding the entire height of the keep as opposed to one that was supposed to be closer to 1m3.

Lessons Learned

One lesson I’m taking away from this is to always check my line segments before converting to an editable polygon, and another is to frequently check the entire object when making modifications which affect the geometry. But the most important lesson here is to create FREQUENT backups of my scene. Thankfully, this really saved me this time (as I only lost a few hours’ worth of work), so it’s definitely a lesson I have taken (and am continuing to take) to heart.

Modeling Maynooth Castle Part 2 – Crafting the Walls

In my first blog on modeling Maynooth Castle, I discussed the goal of my final project for AFF621 and a little bit of the background regarding the castle itself.  As I began the process of modeling the castle, I decided the first place to start would be to model the walls, which is what I intend to discuss today.  However, before I get started, I’d like to take a few moments to discuss the planning of the model itself.

A Little Project Planning

Like some graphic design software, such as Adobe Photoshop, 3DS Max requires you to think through how the model is going to be constructed, so that you can be organise your scene.  In order to start this process, I started thinking about what kind of objects would be in my scene, and how I wanted to arrange them.  I came up with the following major items that would need to be a part of the scene:

  • the castle walls
  • the keep
  • the church
  • the gates
  • the living quarters / kitchens / etc.
  • miscellaneous buildings (such as the stables, barn, etc.)
  • the river(s)
  • misceallaneous nature (trees, grass, any other surrounding items, etc.)

Depending on how quickly I am able to execute on the model itself, I may or may not be able to complete everything, so I’ve decided to prioritise the first 5 items with the hope of adding the other objects should I have the bandwidth.

In order to facilitate this process, I decided I would keep each of the above mentioned-sections in their own layers.  This way I could easy turn off entire sections if needed (which could be helpful while fine-tuning other aspects of the scene). Additionally, by grouping them in layers, I can focus on each section at a time—very similar to how I would construct a physical model from legos or other building material(s). With these decisions made, I decided it was time to start the actual modeling process.

Constructing the Walls

I decided to start with the walls for two reasons:

  1. They would form the boundaries of the rest of the inner buildings of the castle itself
  2. They would most likely be the easiest thing to model

I decided to do a quick Google search to begin with just to see if anyone had modeled anything similar in 3DS Max and might therefore have some insight into the process of building walls.  I was lucky enough to happen upon a video that discussed how to construct a castle using 3DS Max.  I watched some of it and decided that it may be useful later, so I’ve filed it away for future use. I also found a script that was created to make the construction of walls easier.  I thought this might be the ideal script to facilitate the creation of walls, so I downloaded it and started using it in my scene.

Unfortunately, the script wasn’t quite what I was looking for.  It’s the kind of script that is great for creating brick walls, but one of the biggest problems I had is that, while it allowed me to set the number of segments for length and height, I couldn’t set the number of segments on the width.  Since I needed to create crenulations along the top of the walls, using this script would have meant manually creating individual crenulations as opposed to using some effects on the wall itself.  I also discovered the script was very computationally intensive and a single wall greatly reduced the processing power of my laptop.  Ultimately, I decided to discard the script and create my own walls from scratch.

I decided to start by creating a box that met the dimensions of the wall I was trying to construct.  I then gave the wall an appropriate number of segments for length, width, and height that would simulate brick work. For example, the south wall is 86.8 metres long, 3.51 metres wide, and 4.96 metres tall. As a result, I gave it 86 length segments, 3 width segments, and 5 height segments which makes each stone roughly 1 metre x 1 metre x 1 metre.  This was an arbitrary decision but one I felt was reasonable.

After drawing out the wall, I converted it to an editable polygon and then used the extrude tool to create crenulations along the top.  I decided each crenulation would be roughly 2 polygons wide and 1 polygon deep, and would be extruded by 1.016 metres.  I then built the remaining 3 walls following the same pattern.  When I was finished, the scene looked as below.  Note: each wall is color coded so I can easily keep track of what wall it is.  The south wall is red; the east wall is yellow; the north wall is green, and the west wall is blue.

Walls_Start

Next, I needed to fit the walls together.  The castle walls themselves do not form a perfect square, but rather bend at some points to create a sort of rounded, circular square.  There are also some breaks in the walls where the walls either protrude or where the walls are broken up by gates or other buildings. I accomplished this in a number of ways: by creating generalised boxes of the appropriate size as placeholders, by cutting up the walls to create the protrusions, and by using soft selection to bend sections of the walls. The outcome can be seen below.

Walls_Connect

As you can see, there was a drastic change in the state of the walls from their first construction.  It’s slowly starting to come together.

Further Struggles

One of the things I’ve struggled with a bit is the application of materials. I have some images of the castle walls themselves. I was hoping to apply them as both a bump map and a diffuse map to create the illusion of stone on the walls.  Unfortunately, it hasn’t worked so well.  Either the images tile too much and look fake, or they blur and, well, look fake.  This will be something I’ll have to work on more later.  I’m sure I’ll blog about it in future posts.

Next Steps

Next, I’m going to focus in on the castle keep and the enclosing walls. Hopefully this will be a little easier than the outer walls, especially now that I’ve picked up a few tips and tricks. More to come later . . .

Modeling Maynooth Castle Part 1

For my final project for AFF621 – Remaking the Physical, I was tasked with creating a 3D model of a cultural heritage object.  After considerable deliberation, I selected Maynooth Castle, which is a castle that once stood in the heart of Maynooth and was a major seat of power in Ireland from its construction in the latter part of the 12th century until its seige and destruction in 1534.  I selected it for two primary reasons: my love of ruined castles and the lack of information showing what the castle likely looked like during the height of its power, prior to its destruction.

Over the course of several blogs, I will recount the steps I have taken to produce the model and what trials and tribulations I have endured.  This is my first forray into creating 3D models, and while I’m excited to see the final output, I must admit to some trepidation regarding the scope and ambition of my project.  But I have always risen to a challenge, and this time is no different.  Hopefully, my efforts will be met with success, and by documenting my process and trials as I go, hopefully not only will I learn something from the experience, but so, too, will my readers.

Researching the Castle

The castle itself was originally built in the latter part of the 11th century and was a seat of power for the Fitzgerald family.  While I will save much of the formal history of the castle for my official report, I will note that the castle stood as a whole for nearly 300 years.  It fell in 1534 after a 10-day seige by the British, thanks to the rebellion of Thomas Fitzgerald, 10th Earl of Kildare.  While the castle was restored in 1630, it was destroyed again in the 1640s during the Irish Confederate Wars.  Since then, the castle has remained in ruins and is now run as a cultural heritage site by the State. It is open during the summer months for tours.

Unfortunately, due to the age of the castle, not much information remains regarding what it may have looked like during the height of its power, so most of my model is based on speculation of architects and other historians much more qualified than I.  I will be building my model based on their work, and my report will detail those sources in depth.

Some of the information I received was from some older documents stored in the special collections area of the Maynooth University library.  These included a map of County Kildare (which had a lovely write-up regarding the history of the castle), as well as some hand-drawn images of the castle ruins at the time of publication in 1783.  Additionally, the library was also able to provide me with a development plan that was created for the Office of Public Works in the mid 1990s that included some architectural plans that were drawn up during the castle’s first reconstruction in 1630. Additionally, this document also contained some speculation from the architects creating the development plan as to what the castle may have looked like in the 15th-16th century prior to its fall.

Looking at the Models

Another source of information was the model housed within the castle.  When Maynooth Castle was converted into a cultural heritage site, a scale replica of what the castle likely looked like was created.  This scale model is housed within the keep (which serves as a type of museum for the castle itself).  Catherine O’Connor, the supervisor of the site, was gracious enough to provide me with early access to the castle keep (which is currently closed for the season) so that I could photograph the model and take measurements of each of the buildings.  This will allow me to construct my 3D model as accurately to this model as possible.  Ms. O’Connor was also able to provide me with some additional documents that detailed an archeaological excavation of Maynooth Castle that was conducted in June of 2000. Finally, Ms. O’Connor also provided me with contact information for one of the architects who worked on the development plan.  I will be reaching out to him over the next few days in hopes that he can provide me with any further information that may be of use.

Next Steps

The next thing I will begin tackling is the creation of the model itself.  I will likely begin by trying to create the outer walls, as well as the keep.  I will be doing this from the ground up in 3DS Max.  My next post will be written after I have begun tackling some of these aspects and will detail what struggles (and hopefully triumphs) have resulted from this endeavour. Stay tuned . . .

Explorations in Photogrammetry – Part 5

In the 5th and final part of my series on photogrammetry, I will discuss the process of 3D printing. For those unfamiliar with the process, 3D printing involves taking a digital object stored in a specific file format and creating a three-dimensional, solid object. Typically, the object is “printed” using some kind of plastic, although more expensive printers can utilise metal alloys.[1] The process involves creating a StereoLithography file (or STL for short) that contains a 3D model. This file can then be sent to a 3D printer and, after several hours or even days depending on the size and complexity of the object, a real world representation of the digital object can be seen.

Types of 3D Printing

There are a few different types of 3D printing:[2]

  • Selective Laser Sintering (SLS) – utilises a high powered laser to super heat and fuse together tiny particles of glass, plastic, or ceramic in order to create a 3D object.[3] Objects created with an SLS printer typically require little post processing, such as sanding or other alterations.  Also, because SLS doesn’t require the use of support structures for the object while it is being printed, it is typically faster than FDM and SLA.
  • Fusion Deposition Modeling (FDM) – creates objects by heating thermoplastics and constructing the object layer by layer.[4]  When the object is complex, the 3D printer will build scaffolding to support the structure while it is being printed (this scaffolding can then be broken off or dissolved in detergent later).  It typically supports more complex geometries and cavities than SLA or SLS.
  • Stereolithography (SLA) – like FDM, SLA builds a 3D object layer by layer.  However, the difference with SLA is that the layer is built in a liquid polymer that is then hardened by a laser (as opposed to using heated thermoplastics such as FDM).[5] Like FDM, SLA also utilises support structures while printing the object, which are then cut away once the process is complete.

3D Printing Services

A number of different 3D printing services are available.  One of the most common providers is Shapeways. While working on my models and googling for solutions with regards to questions I had about tools within the software packages, I found a number of references to Shapeways for 3D printing. Shapeways is a type of retail market that allows users to sign up as “sellers”.  They can then submit their 3D models, choose their material and have it printed. The cost varies based on the material selected.  Further, the size of the object that can be printed is also limited by material (some materials allow you to print larger items at an increased cost). You can then feature your items in the Shapeways marketplace for purchase.

Sculpteo is another 3D printing service and is quite similar to Shapeways.  With Sculpteo, however, you can opt to not sell your items in their marketplace and simply use them as a 3D printing service. Sculpteo offers a number of different materials (which influence the cost of the printing) and provide specifications for each type of material that include minimum sizes and specifications for a model should that material be selected.

iMaterialise is another common 3D printing service. Unlike Sculpteo and Shapeways, iMaterialise also offers student discounts which is certainly an incentive for cash-strapped students such as myself. They offer 17 different materials along with a number of finishes.  Additionally, they also offer a comparison tool where a user can compare the various types of materials on offer and see the differences between them.  Their process is very straightforward, and they provide a considerable amount of information in an easy-to-consume format.

My Selection

As for my selection, I chose to use the 3D printer on campus, which is housed at the library.  This choice was made strictly for sake of convenience.  I was able to provide my lecturer with the 3D object.  He then uploaded the file to the 3D printer and set the appropriate sizes.  The cost of this effort was covered by my department, so I had no out of pocket expense.

However, had the option of the Library printing been unavailable, I most likely would have chosen iMaterialise as my 3D printer.  While the student discount was certainly a mark in their favour, the overriding reason was the presentation of information.  As mentioned above, all of the information regarding the different materials was easily presented, and I really liked the comparison tool, which allowed me to fully understand the differences between the different types of materials.  The easy to find specification information for each material provided me with all of the information I needed for my model to ensure the process would happen smoothly.

Conclusion

3D printing is certainly an emerging technology and is being leveraged today more than ever.  It is useful in the rapid production of prototypes and also can provide for unique marketing and economic opportunities for small businesses (as evidenced by the marketplaces popularised on Shapeways and Sculpteo). For the purposes of my explorations in photogrammetry, 3D printing offers a way for me to reflect on my 3D model in a real, tangible way (as opposed to only viewing it on screen).  I can use the 3D printed version and compare it to the real version and see where I might make improvements in the future.

3D printed objects can also provide value within the sphere of Cultural Heritage.  By creating a 3D printed object of an ancient piece of pottery, we can allow for the general public to closely examine the object without risk of damaging something that is irreplaceable.  In this same regard, 3D objects can also enhance museum or cultural heritage exhibitions by creating more immersive experiences. These types of experiences should continue to be explored and leveraged whenever possible as they raise awareness of Cultural Heritage and the Humanities as a whole.

References

[1]Casting aluminum parts directly from 3D printed PLA parts“. 3ders.org. 25 Sept 2012. Web. 3 April 2015.

[2]What Is 3D Printing“. 3dprinting.com. Web. 3 April 2015.

[3] Palermo, Elizabeth. “What is Selective Laser Sintering“. Livescience.com. 13 August 2013. Web. 3 April 2015.

[4]FDM Technology: 3D print durable parts with real thermoplastic“. Stratasys.com. Web. 3 April 2015.

[5]Stereoligthography“. Materialise.com. Web. 3 April 2015.

Explorations in Photogrammetry – Part 4

For part 4 of my series on photogrammetry, I will discuss the creation of a 3D model of the sepulchre, the object I’ve chosen for the second part of my 3D recording assignment (for more information regarding the sepulchre and the process of taking photos of the sepulchre itself, see Explorations in Photogrammetry – Part 3). As with the bowl from the National Museum of Ireland (see Part 1 and Part 2 of Explorations in Photogrammetry), the construction of the object utilised Agisoft’s Photoscan Pro and the use of Adobe Photoshop.

Creating the 3D Model

The process of editing the pictures in photoshop was no different than it was for the bowl from the National Museum. As I covered this in Part 2 of my blog series, I will simply refer you to that post for more information regarding the Photoshop process.

The creation of the 3D model in Photoscan was somewhat different this time.  The initial process was still the same as it was for the bowl.  I imported the 178 photos into Photoscan and used the programme’s image quality assessment tool to determine the quality of the images.  To my surprise, I found the quality of the images to be considerably higher:

Number of Images Quality % of Total
4 .50 – .59 2%
174 .60 and above 98%

However, I knew from my experiences while taking the photos that there would be some photos that would need to be manually filtered out.  These were primarily photos were the sun was at the wrong angle and caused bright spots to appear in the photo or where the the photos were so bright as to look overexposed.  This led to a further 37 images being filtered out of the result set.

I then began to apply a mask to each photo.  However, this process proved to be much more involved than with the bowl. When applying the mask to the photos of the bowl,  I was able to use the magic wand tool to select the background (which was a uniform colour), and with a few simple clicks—and a reasonably high success rate—filter out everything but the bowl object itself. The photos of the sepulchre proved much more difficult.

Due to the lack of uniformity in the background (which contained grass, trees, and other objects in the cemetery), I was unable to utilise the magic wand tool. Thus, I found I had to draw the mask around each view of the sepulchre in every picture individually, using the lasso tool. This was not only time consuming but oftentimes difficult to do precisely, as objects from the background would occasionally blend into the sepulchre, making it difficult to determine where the sepulchre began and other objects ended.

Once I finished the masking, I then began to run the images through the standard processing workflow in Photoscan Pro. For some reason, however, these images were taking much longer to process. While aligning the photos took about an hour and a half (which was to be expected), building the dense point cloud proved to be a challenge. I initially kicked off this process on my Sony Vaio. This is a relatively powerful laptop with 8GB of RAM, a dedicated video card, and an Intel i7 1.80GHz chip. After running for almost 40 hours and being only 40% complete with the creation of the point cloud, I decided to cancel the operation and switch to my MacBook Pro, which has 16GB of RAM and a 2.3GHz Intel i7 chip. As of the writing of this post, the process to build the dense point cloud has been running for 17 hours and is approximately 50% complete.

When I saw the amount of time it was taking to process this model, I decided to try to utilise another method. Rather than applying a mask to every photo and then building the dense point cloud based on this mask, I decided to simply crop out areas of the photo that simply didn’t belong (such as a few photos where I managed to capture my book bag or another person visiting the cemetery). Then I simply aligned the photos utilising Photoscan Pro’s built-in alignment tool. From there I manually cut out the extraneous information the software pulled in and created a dense point cloud. I then continued to manually remove the points I did not wish the application to include in the final model (such as some of the surrounding objects). From there I was able to build a mesh and provide textures to create a model. This method was much less time consuming as I didn’t need to apply the individual mask to each photo. The time to process all of the photos to build the dense point cloud was about 20 hours—still a very intensive process but much better than the time it took to process the photos utilising the mask.

Assessment

Overall, I am very happy with the model itself.  It turned out rather well given the lighting conditions and difficulties I had with background objects and processing.  As learning outcomes, I would make note of the following:

  1. Try to take the pictures on an overcast day.  While this is not always within your realm of control, pictures taken when the sun is hidden behind a cloud tend to be easier to process, especially since they do not have shadows.
  2. Consider your environment.  One thing I did not take into consideration was the surrounding environment.  Had I thought of it, I might have taken some old sheets to drape over some of the surrounding objects.  This would have made applying the masks easier.
  3. Don’t always rely on the creation of masks.  For this object, I found the model that did not rely on masks but rather required me to manually edit the point cloud to be much easier to create. With this type of object, given the background items, I highly recommend this approach.

Final Model

As I mentioned earlier, the model utilising the mask approach is still processing. Once it finishes, I may post it here as an update. However, the model that I created without the use of masks turned out rather well. You can view it below.

Model Created Without the Use of Masks

Coming Up Next…

In my final post, I will discuss the process of 3D printing. I will evaluate available 3D printing services and discuss my chosen selection.

Explorations in Photogrammetry – Part 3

In part 3 of my photogrammetry series, I will discuss the second aspect of the photogrammetry assignment: using an outdoor object.  While the mechanics of this aspect of the assignment were similar to that of the first part (see Explorations in Photogrammetry – Part 1 and Part 2 for more information), this part of the assignment presented unique challenges.  As I mentioned in earlier posts, while working at the National Museum of Ireland, I was working in a controlled environment.  The object was small and placed on a rotating table.  The camera itself was on a stationary tripod. And most importantly, we utilised artificial light and a lightbox to ensure proper and consistent lighting.  I had none of these luxuries for the second aspect of this assignment.

For the second part of the assignment, I was tasked with creating a 3D model, with the subject of the model being something outdoors—the challenge being the lack of a controlled environment, especially in regards to lighting conditions.  I chose a sepulchre as my subject, one of the many objects in the cemetery behind St. Patrick’s College on South Campus here at Maynooth University.  The cemetery itself is rather small and houses mainly priests and nuns who have served St. Patrick’s College (although supposedly there are 2 unmarked graves of students who took their own lives and whose deaths have entered into folklore regarding the “Ghost Room” on campus[1]). The cemetery has a number of interesting markers, sepulchres and a crypt. The sepulchre I chose was that of Rev. Jacobi Hughes who, according to the inscription, served as Dean of St. Patrick’s College for 15 years. I found the sepulchre architecturally interesting with a number of interesting angles and faces, which is why I chose it as my subject piece.

Taking the Photos

The process of taking the photos of the object was rather different than it was for the photos taken at the National Museum.  First, I had to be very aware of any shadows being cast—not just of shadows cast by the object and any surrounding objects, but also of shadows cast by myself.  Too many shadows would make it difficult for the software to accurately compile a point cloud.

Ideally, it is considered best to take photos on a cloudy day.  Given I am in Ireland, one would think this wouldn’t be a difficult task; however it would seem the weather was not my friend, and the sun decided to shine high and bright the entire time I was attempting to take pictures.  This meant I had to be very careful with how I positioned myself while taking the pictures.  Due to the size of the object, I had to move around the object in order to capture it from all of the requisite angles (as opposed to the bowl at the National Museum which sat on a turntable that I could then rotate).  As such, I often found myself having to reposition the view finder on the camera and hold the camera at odd angles in order to ensure my shadow wouldn’t fall on the object as I attempted to capture it.

Another downside was the lack of a true preview.  While working with the camera at the National Museum, I was able to keep it connected to my laptop, where I could preview every picture and, if necessary, make constant adjustments to the settings.  This was not feasible with the sepulchre object, as I was moving around the object and could not keep the camera connected to my laptop.  I had to rely on the view finder on the camera itself for a preview—an option which isn’t ideal for truly examining an image upon capturing it.

I was able to apply some lessons learned from the National Museum, however.  In this instance, I used a much higher aperture setting (I kept the f-stop set at 22) and allowed the camera to adjust the ISO, so as to optimise this setting.  Overall, I feel these pictures were much sharper and of a higher quality than the pictures taken while at the National Museum.

Coming Up Next…

In part 4, I will explore the process of creating the 3D model of the sepulchre. Specifically, I will be discussing the differences between the construction of this model and that of the bowl model from part 2. I will also assess the quality of the model and what areas of improvement could have been made to create a better object.

References

[1] Sam. “The Ghost Room in Maynooth“. Come here to Me. 20 July 2012. Web. 3 April 2015.