Here's some examples of a new primitive for rayshade. The primitive
is basically a sphere of varying radius swept or extruded along a curve in
space. The curve and the sphere radius can be defined by functions of up
to third order equations. The current implementation for the curve is to
specify either a bezier curve consisting of four points in space or the
parametric functions for x,y,z. The radius of the sphere is entered as a
third order equation. All equations are evaluated from 0 to 1. Currently
I just call the primitive "thing" since I already had that name in yacc.y
so I could play with new primitives and since I have not thought of a better
name, so any suggestions as to what I call it would be greatly appreciated.
I'm currently cleaning up the code and putting in comments and I plan on
placing the code on weedeater very soon. There probably still some bugs
that will need to be worked on (the specular reflections sometimes look
wrong and some of the curves result in strange garbage on the screen) and
the code probably use a great deal of work on speeding it up.
Any suggestions on other ways to specify the curve or the sphere radius
or suggestions and comments in general will be greatly appreciated.
---Larry Coffin
lcoffin@clciris.chem.umr.edu
|