Mead Questions

From MHCGraphics

Jump to: navigation, search

Got questions about Mead? Post them here and answers (hopefully) will follow!

Contents

[edit] Objects

  • Which objects are solid and which are hollow? (important when taking Differences)
    • Answer: Meshes are suitable for CSG difference and intersection, but PolyMeshes (I think) are not. It is also important that the meshes be closed - all edges are mentioned exactly twice.
  • Is there a good way to "puncture" a Plane? CSG differences do not work with Planes.

[edit] Materials

  • How can we make a surface image repeat?
    • Answer coming soon in class.
  • What are the default property values for Materials that do not specify all properties?
  • What's the deal with (metallic #t) in the Mead example?
  • Can we make the color of light change when passing through an obejct made of a transparent colored material?

For example:

(require (lib "Defs.ss" "Mead")) 

(object scene Group)

(object redTranspMat Material
        (color red)
        (transparency .4)
        (ambient .2)
        (diffuse .5)
        (roughness .1)
        )

(object spot Spotlight
        (pos '(100 200 0))
        (coi '(-100 0 0))
        (intensity .8)
        )

(tell scene
      (add (new Plane) whitePlaster
           (translate 0 -50 0))
      (add cube redTranspMat)
      (add spot)
      )

(tell camera (shoot))

(tell camera
      (pos '(500 0 0))
      (shoot))

This red transparent cube blocks some of the white light, but what if we want the red light that passes through to be seen as the color of its shadow on the white floor?

  • Bug? It appears that a Group object's Materials is sometimes assigned to all objects in the Group object, even when some objects in the group already have a Material specified.

[edit] General

  • How can we better organize code for complex models (e.g., put them into separate files)?
    • Answer: We can make shared modules! (See Lab 6)

[edit] Lights

  • How can we create a spotlight whose intensity diminishes at greater distances?
  • If we create a prism of clear glass, will the light refract differently according to wavelength as in real glass?

[edit] Advanced Mead Topics

  • How can we create Bezier surfaces (rather than just curves)?
  • Can we specify that a single frame be repeated, unchanged, in a movie without rerendering that frame?
Personal tools