Sunday, 13 March 2011

Texturing Essay


“To make a texture believable, you have to be able to convey to viewers exactly what the surface would feel like if they were to reach out and touch it.”
-          Leigh Van Der Byl, 2004, pg.3
In order to bring a 3D model to life as it were, it needs to have a surface and texture which would make it believable as a real world model. 3D programmes have created a range of dynamic capabilities when it comes to texturing surfaces of 3D objects. In this essay, I will explore 2D and 3D texture mapping techniques in terms of how they are each utilised in 3D software procedures and their comparative differences. I will also highlight the advantages and disadvantages of each of these methods.

I will firstly define and explore 2D texture mapping techniques. Hong Zhang defines 2D texturing as the mapping of a “2D image to the surface of a 3D object.” (2006, pg. 409). This effectively allows for photographic images taken from real world spaces to be projected on any object within a 3D space. The precise mapping of these 2D images onto 3D objects involves a technique called UV mapping. This involves the process of ‘pinning’ points of a 2D image to specified points on the 3D object, depending on how the user wishes the image to be projected. Peter Ratner notes the advantages of UV mapping, saying it “works well for irregular shapes” and “is used for precise placement” (2003, pg. 215).

3D software further provides the user with different methods (presets of sorts) of mapping these image projections depending on the shape of the 3D object to be textured. These are now highlighted and explained:
1.       Planar Projections – These are used on flat surfaces (such as walls and floors) and can be compared to “projecting a slide through a slide projector.” (Ratner, P. 2003, pg216).
2.       Cylindrical Projections – Such projections are used to wrap around a texture, “similar to a bark around a tree trunk” (Ratner, P. 2003, pg216). These projections are useful for objects like poles, sticks etc.
3.       Spherical Projections – These projections ‘roll’ around the object “as if you were wrapping skin around a ball” (Ratner, P. 2003, pg216). Rounded objects like balls, planets and light bulbs use this method.
4.       Cubic Projections – Cubic projections wrap around 6 sided objects. These objects can be anything from a fridge to a CD case.
In addition to these methods, users define upon which axis/axes the projection/s will be implemented. In a 3D space these are the x, y and z axes. The combination of the different projection methods coupled with the ability to use them in any variation of the axes makes for very specific and accurate mapping capabilities.

By contrast, 3D texture mapping does not work on 2D based images. Instead, as Isaac Victor Kerlow defines, 3D texture maps are “solid textures that exist on the surface of an object as well as inside the object” (2000, pg.255). These textures are generated by algorithms performed by the computer and are referred to as “procedural texture maps” (2000, pg.255). Procedural as a term comes from computer science jargon which serves to “distinguish entities that are described by program code rather than by data structures” (Ebert, David S. 2003, pg12).  These mathematical functions performed by the computer render abstract and seemingly random images which then occur throughout 3D object to which they are applied.

 Such a technique is useful for 3D objects which have a recurring, yet random, pattern which pervades the entire object, for example, marble or wood. They also become useful in environment simulation and have indeed been used since the earliest days of 3D. Ebert notes that early 3D practitioners like Schacter and Ahuja used a 3D texture generator known as Fourier synthesis to “generate texture imagery for flight simulators” (2003, pg.11).

Comparatively, each of these techniques (2D texturing versus 3D texturing) has both its advantages and disadvantages.
Let us explore some of the main advantages of 2D texturing. Firstly, 2D textures can be practically anything which is a photograph/painting/drawing/bitmap image and this allows for a very realistic appearance on the 3D object (if mapped effectively). 2D texturing also provides a quicker rendering of the image (even though the image file would generally be larger than a 3D textured one). Also, due to the very specific nature of UV mapping, the user is able to define the exact parts of an object he/she wishes the image to be projected upon. Ratner also notes that 2D texturing is most common in the industry. (2003, pg.215).

On the other hand, there are also notable disadvantages. First and foremost, 2D texturing does not occupy a 3D space but rather requires “specific mapping coordinates in order to be rendered correctly” (Autodesk, 2006, pg.444). This means that if the user were to make a cross-section of an object to which they had applied a 2D image, only the surface would have the texture. Furthermore, 2D images applied to 3D models tend to look much flatter than a 3D generated texture. There is, of course the option of bump mapping which “simulates the appearance of a rough surface”, but even this technique can only provide a simulation of depth (Ratner, P. 2003, pg.221). 2D images also have the problem of becoming more and more pixellated the closer one zooms into them; this is due to the fact that they are fixed images of a fixed resolution. In addition, as Brian Ross notes, there can be problems of stretch marks, seams and tiling (if a small image is applied repeatedly over a large area.) (1998, pg.1).

Turning to 3D texturing, there are also notable advantages and disadvantages.
The first advantage of 3D texturing is that “the procedural representation is extremely compact” (Ebert, David S. 2003, pg.14). While it may take more time for the computer to render out the 3D texture, it is in fact a very small file (usually kilobytes) in comparison with a 2D image (usually in megabytes) (Ebert, David S. 2003, pg.14). Secondly, due to it being based in mathematical formulae, it has no fixed resolution and it will therefore remain fully detailed regardless of how close one zooms in on it. (Ebert, David S. 2003, pg.14). The mathematical formulae provide 3D texturing with the additional advantage of having infinite variations and therefore avoiding any seams or ‘tiling’ effects (Ross, B. 1998, pg.1). Ross further notes that such 3D generated textures have the additional option of being animatable.

In terms of disadvantages, it is noted that to properly generate a 3D texture can be difficult and often requires complex programming. (Ebert, David S. 2003, pg14). In conjunction with this, it is often easier, and more accurate, to use a found image which accurately represents the texture instead of trying to generate it. Furthermore, although 3D texture files are smaller than 2D image files, they often take more time for the computer to evaluate and render out than a 2D image would. Lastly, aliasing and anti-aliasing can be tricky and “is less likely to be taken care of automatically than it is in image-based texturing” (Ebert, David S. 2003, pg.15).

In conclusion, this essay has comparatively defined and analysed the techniques of both 2D and 3D texture mapping. It has looked at how both provide unique tools and approaches to creating believable textured objects, how each technique suits specific texture mapping purposes and finally it has made a comparative list of each method’s advantages and disadvantages.
(1150 words)

Works Cited:
1.      Autodesk. 3DS Max 9 Essentials. Autodesk, Canada. 2006
2.      Ebert, David S. Texturing and Modeling: A Procedural Approach. 3rd Ed. Morgan Kaufmann Publishers. San Francisco, CA. 2003.
3.      Kerlow, Isaac Victor. The Art of 3D Computer Animation and Imaging. 2nd Ed. John Wiley & Sons. New York, NY. 2000.
4.      Ratner, Peter. 3D Human Modeling and Animation. 2nd Ed. John Wiley & Sons. Hoboken, New Jersey. 2003.
5.      Ross, Brian. Texture Mapping. http://www.cosc.brocku.ca/Offerings/3P98/course/lectures/texture/. 1998. Web.
6.      Van Der Byl, Leigh. Lightwave 3D 8 Texturing. Wordware Publishing. Plano, Texas. 2004.
7.      Zhang, Hong. Computer Graphics Using Java 2D and 3D. Pearson Education. New Jersey. 2006.





No comments:

Post a Comment