An open API service indexing awesome lists of open source software.

https://github.com/syanenko/cinema2pov

Tool for exporting data from C4D format to POV Ray SDL
https://github.com/syanenko/cinema2pov

3d 3d-graphics c4d cinema-4d cinema-4d-plugin cinema4d pov pov-ray povray rendering

Last synced: 2 months ago
JSON representation

Tool for exporting data from C4D format to POV Ray SDL

Awesome Lists containing this project

README

          

# *Cinema4D to POV-Ray*

[POV Ray](http://www.povray.org) is a great rendering tool with support of solids ([CSG](https://wiki.povray.org/content/Reference:Constructive_Solid_Geometry)), can produce high-quality realistic images, by processing scenes, written on [SDL](https://wiki.povray.org/content/Documentation:Tutorial_Section_3.9) - simple and flexible macro-language, and moreover - it's free. At the same time POV Ray has one serious drawback - lack of convenient modelling tools for effective working with objects and scene composing.

This leads me to starting this project - data converter from Cinema4D format to POV's SDL.

**cinema2pov** - is a command line tool for exporting data from C4D format to POV Ray SDL, code is based on [Cineware SDK](https://developers.maxon.net/docs/CinewareSDK/html/index.html), now supports following objects:

1. Primitives: [Sphere](https://wiki.povray.org/content/Reference:Sphere), Cube ([Box](https://wiki.povray.org/content/Reference:Box)), [Cone](https://wiki.povray.org/content/Reference:Cone), [Cylinder](https://wiki.povray.org/content/Reference:Cylinder), [Plane](https://wiki.povray.org/content/Reference:Plane), [Spline](https://wiki.povray.org/content/Reference:Spline), Mesh (as [Mesh2](https://wiki.povray.org/content/Reference:Mesh2)).
2. Constructive operations: Extrude ([Prism](https://wiki.povray.org/content/Reference:Prism)), Sweep ([Sphere sweep](https://wiki.povray.org/content/Reference:Sphere_Sweep)).
3. Boolean ([CSG](https://wiki.povray.org/content/Reference:Constructive_Solid_Geometry)) operations: [Union](https://wiki.povray.org/content/Reference:Union), [Difference](https://wiki.povray.org/content/Reference:Difference), [Intersection](https://wiki.povray.org/content/Reference:Intersection).
4. Lights: all POV light sources [types](https://wiki.povray.org/content/Reference:Light_Source#Area_Lights) are supported.
5. Materials: POV materials defined in [scenes/pov/include/materials.inc](https://github.com/syanenko/cinema2pov/blob/main/cinema2pov/scenes/pov/include/materials.inc) file and linked by C4D materials by name. This library can be easely extended by defining user's own materials, as described here:
[Materials](https://wiki.povray.org/content/Reference:Material),
[Textures](https://wiki.povray.org/content/Reference:Texture),
[Interior](https://wiki.povray.org/content/Reference:Interior),
[Finish](https://wiki.povray.org/content/Reference:Finish).
6. Other: Null - grouping objects as [Union](https://wiki.povray.org/content/Reference:Union).

**Examples**
- Splines\
To preserve flexibility, exported spline data stored in an array that can be processed by macros,\
see examples in 'c4d\export2pov\examples'.

![data_usage](https://user-images.githubusercontent.com/6688301/222774955-c665690e-13a9-4862-aec0-bf9a59f1994e.png)
#
About POV-Ray:\
Officail site: [povray.org](http://www.povray.org)\
Documentation: [wiki.povray.org](https://wiki.povray.org/content/Documentation:Contents)\
Newsgroups: [news.povray.org/groups/](https://news.povray.org/groups/)\
Repository: [github.com/POV-Ray/povray](https://github.com/POV-Ray/povray)

Tutorials:\
Basics: [https://povlab.online/povtutorial/](https://povlab.online/povtutorial/)\
Animation: [https://povlab.online/animtutorial/](https://povlab.online/povtutorial/)\
Isosurfaces: [https://povlab.online/isotutorial/](https://povlab.online/isotutorial/)

Videos: [POV-Ray channel on Youtube](https://www.youtube.com/playlist?list=PL_L-Rlt-OWoJm6HN9t-hxXRk-b6SONXbJ)

Contact me at [LinkedIn](https://www.linkedin.com/in/sergey-yanenko-57b21a96/).