|
|
Hmm, I just couldn't resist converting this to CSDL (or at least,
something that resembles what CSDL eventually will be):
object POV = load("povray.csdl");
object MySphere = POV.Sphere {center = <0,0,0>; radius = 5;};
object MyMaterial = POV.Material;
MyMaterial.texture.pigment.color = < 1, 1, 1>;
MySphere.SetCenter(<5,2,5>);
MySphere.SetMaterial(MyMaterial);
MyMaterial.texture.finish.ambient = 0;
object MyBox = POV.Box {
material = MyMaterial {
texture.finish {
reflection = 0.7;
ambient = 0.0;
diffuse = 0.2
};
};
};
MyBox.SetCorners(<-1,-2,-3>,<1,2,3>);
MyBox.Translate(<-5,0,8>);
POV.AddShape(MyBox)
POV.AddShape(MySphere)
POV.AddShape(
object POV.LightSource {location = y*20; color = < 1, 1, 1>;});
POV.camera {look_at = 0; location = y*5 + z*-10;};
POV.render()
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|