Skip to content

syanenko/povgems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POV-Ray gems rendering extension

Gems

SpectralRenderer extension to POV-Ray, written by Ive of LILYsoft has few excelent examples of gems rendering and set of mineral materials. This repository contains few additions, improving gems rendering techniques and gems geomety in DXF and SDL mesh formats.

I am also included modifications from this repository CousinRicky’s Modifications to SpectralRender.

Preparing data

Great source of gem designs is Facetdiagrams.

To convert ASC format from this database to DXF GemCad or more modern tool - GemcutStudio can be used.
Last also has OBJ export function. Then, under Windows for DXF / OBJ to SDL convertion you can use PoseRay.
If you prefere Unix, use dxf2pov, which also can be compiled under Windows.

Directory gems/inc contains 2265 gem designs available for free at Facetdiagrams and already converted to POV-Ray meshes.
You can also browse and download them with GemView application.

Rendering

Edit 'Control center' section in GemsFactory.pov file: uncomment design you want to render and appropriate material.
Play with other setting in this section to adjust lighting, environment, etc.

To render preview image under Unix run GemsPreview.sh or

povray +W640 +H480 +A0.1 +AM2 +R3 +FN -iGemsFactory.pov -o./out/gem

and rendered image will wait for you in out directory. If you under Windows, use keys from this command line in editor's menu: 'Render->Edit settings/Render->Command line options'.

For final spectral rendering under Unix run GemsRender.sh or

povray +W320 +H240 +A0.1 +AM2 +R3 +FE +KI1 +KF36 +KFI38 +KFF73 -iGemsFactory.pov -o./out/gem
povray +W320 +H240 +FN -iGemsComposer.pov -o./out/gem.png

And, again, for Windows, use keys from this command lines in editor's menu:
'Render->Edit settings/Render->Command line options'.

Happy rendering !

Asashi_amethyst_320x240

Contact: LinkedIn

About

Povray gems rendering extention

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published