Skip to main content

Color And Other Attributes Of Objects

  • Chapter
Essential RenderMan ®
  • 380 Accesses

In addition to the geometry itself, we often need to specify properties of an object such as its color, which affect its appearance. In this chapter you will be introduced to the most common attributes, and learn how they can be managed. The objects we have drawn so far have all been white. However, we can easily specify that an object should be drawn in some other color by using the Color command. Though RenderMan supports more complex forms of color control, practically in all cases this is followed by three values enclosed in square brackets, specifying the amount of red, green, and blue required in the object. For example, if you want to make an object red you simply need to add the command: Color [1 0 0]. Like transforms, colors apply to everything that follows them, so the code in Listing 9.1 produces two red spheres. Of course this color is only a starting point for determining the color the object will appear in the rendered scene, as lighting and other shading effects must be taken into account, but in most cases Color is used as the basis of the final result.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag London Limited

About this chapter

Cite this chapter

(2007). Color And Other Attributes Of Objects. In: Essential RenderMan ®. Springer, London. https://doi.org/10.1007/978-1-84628-800-5_9

Download citation

  • DOI: https://doi.org/10.1007/978-1-84628-800-5_9

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-84628-344-4

  • Online ISBN: 978-1-84628-800-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics