CYBERBUST POV-Ray TECHNIQUE
I will show my technique for writing scene files one by one. I hope these may be your help for your POV-Ray works.
![]() | A. Structure or General
|
I prepare a sample file ilphowt4.xls by Excel for Windows95 ver.7 (Probably Excel ver.5-6 can treat this file.) for downloading. Please check and see how I did. This sample file is the sample file of "A-8" with a user's function by Visual BASIC.
The declaration of POV-Ray user's function is easy.
The usage is as follows;
Scene file : ilphowt5.txt ( Paste this file's text in a new scene file. )
I wrote in this sample as follows;
You can put groups of a group by inserting "#declare #while and #end" between "#declare #while and #end" like this.
Scene file : ilphowt6.txt ( Paste this file's text in a new scene file. )
You can put a fractal structure with a simple script using "#declare #while #end". In the sample I wrote like follows;
Scene file : ilphowt1.txt ( Paste this file's text in a new scene file. )
The angel I drew in the "VIRTUAL SPACE / Vermilion" page has a nest structure.
I form a doll with a "union" or "marge" group from each joint to the end. And I translate each group to the location that the joint is just at (0,0,0). Then I rotate the group and retranslate just the length of the vector from upper group's joint to this group's joint.
The doll's pose is determined with the rotation values of all joints. You can see this structure easily in the sample.
Scene file : ilphowt2.txt ( Paste this file's text in a new scene file. )
I drew "A Specimen", "The Crystallizing", and "To Princess Diana" in "VIRTUAL SPACE / WHITE" page by putting objects at the point of vertex of polyhedrons. I drew the sphere nebura in "VIRTUAL DOLL / TWILL"'s "Doll - Twinkle" with many small spheres with the nested structure of a polyhedron.
These polyhedron settings of objects that the group of objects forms a sphere I feel the geometrical beauty.
Sample shows the figures of polyhedrons which have 4, 8, 12, and 32 vertices. I calculated them. Please use freely.
If you are interested in polyhedrons, you should visit 3D-CG polyhedron catalogue.
Scene file : ilphowt3.txt ( Paste this file's text in a new scene file. )
POV-Ray has a internal function called "bicubic_patch" which drows a smooth curved face from 16 points in the 3 dimensional space. I use this function for drawing curved faces suitable for flower pedals. I drew lilies' pedals on the work named "To Princess Diana" in the page "VIRTUAL SPACE / WHITE".
Of cource you can use the curved face for another purpose like drawing fish. I added fish in the sample made of 2 bicubic_patch's faces.
I expect being shown nice flowers.
Scene file : ilphowt4.xls ( I drew this file with the technique, Excel for Windows95 ver.7(A-1) and user's function(A-2). Perhaps Excel ver.5-6 can treat this file. Save as a text file and paste the text in a new scene file.
We can draw a large and complicated face by placing many bicubic_patch's face side by side. But fine data are necessary for smooth connecting.
I drew "To the horizon" in the page "VIRTUAL SPACE / WHITE" by this technique.
We can input the bicubic_patch's points data in the 3 dimensional space with no limitation. But the sample "ilphowt4.xls" is used for drawing from the data of Y's value at X-Z grid. You can extend this sample for many porpose as a drawer of the 3 dimensional figue. The rendering is fast.