Fun with 3D (POV-Ray)


#1

Made a simple Python plugin showcasing text usage in the new PovRay node in Natron 2.0.0-RC2 (Linux-only at the moment). I’m just scratching the surface of what’s possible, feel free to enhance the py-plugin, or make more py-plugins using the PovRay node :wink:

https://github.com/olear/openfx-arena/tree/master/PovRay/Text3D


#2

Hi Olear,

Cool, but the viewer stays desperately black… :frowning:


#3

Does the regular ‘PovRay’ node work?

EDIT: Does the font used exist?
EDIT2: If you look at the log, you see “no objects in scene”, so probably a font issue(?)


#4

I don’t know povray language but this the outpout when connect the default povray node to viewer

Natron Version 2.0.0
Copyright (C) 2015 the Natron developers
>>>Use the --help or -h option to print usage.<<<
init.py script loaded
initGui.py script loaded
povray: cannot open the user configuration file /home/rapha/.povray/3.7/povray.conf: No such file or directory
Persistence of Vision(tm) Ray Tracer Version 3.7.0.unofficial (g++ 4.8 @
 x86_64-pc-linux-gnu)
This is an unofficial version compiled by:
 Felix Geyer <debfx@ubuntu.com> for Debian <www.debian.org>
 The POV-Ray Team is not responsible for supporting this version.

POV-Ray is based on DKBTrace 2.12 by David K. Buck & Aaron A. Collins
Copyright 1991-2013 Persistence of Vision Raytracer Pty. Ltd.

Primary POV-Ray 3.7 Architects/Developers: (Alphabetically)
  Chris Cason         Thorsten Froehlich  Christoph Lipka   

With Assistance From: (Alphabetically)
  Nicolas Calimet     Jerome Grimbert     James Holsenback    Christoph Hormann 
  Nathan Kopp         Juha Nieminen     

Past Contributors: (Alphabetically)
  Steve Anger         Eric Barish         Dieter Bayer        David K. Buck     
  Nicolas Calimet     Chris Cason         Aaron A. Collins    Chris Dailey      
  Steve Demlow        Andreas Dilger      Alexander Enzmann   Dan Farmer        
  Thorsten Froehlich  Mark Gordon         James Holsenback    Christoph Hormann 
  Mike Hough          Chris Huff          Kari Kivisalo       Nathan Kopp       
  Lutz Kretzschmar    Christoph Lipka     Jochen Lippert      Pascal Massimino  
  Jim McElhiney       Douglas Muir        Juha Nieminen       Ron Parker        
  Bill Pulver         Eduard Schwan       Wlodzimierz Skiba   Robert Skinner    
  Yvo Smellenbergh    Zsolt Szalavari     Scott Taylor        Massimo Valentini 
  Timothy Wegner      Drew Wells          Chris Young       

Other contributors are listed in the documentation.

Support libraries used by POV-Ray:
  ZLib 1.2.8, Copyright 1995-2012 Jean-loup Gailly and Mark Adler
  LibPNG 1.2.50, Copyright 1998-2012 Glenn Randers-Pehrson
  LibJPEG 80, Copyright 1991-2013 Thomas G. Lane, Guido Vollbeding
  LibTIFF 4.0.3, Copyright 1988-1997 Sam Leffler, 1991-1997 SGI
  Boost 1.54, http://www.boost.org/
  OpenEXR, Copyright (c) 2004-2007, Industrial Light & Magic.

Parser Options
  Input file: /tmp/povray_LnE313
  Remove bounds........On 
  Split unions.........Off
  Library paths:
    /usr/share/povray-3.7
    /usr/share/povray-3.7/ini
    /usr/share/povray-3.7/include
  Clock value:    0.000  (Animation off)
Image Output Options
  Image resolution.....960 by 540 (rows 1 to 540, columns 1 to 960).
  Output file........../tmp/povray_LnE313.png, 32 bpp with alpha PNG
  Dithering............Off
  Graphic display......Off
  Mosaic preview.......Off
  Continued trace......Off
Information Output Options
  All Streams to console..........On 
  Debug Stream to console.........On 
  Fatal Stream to console.........On 
  Render Stream to console........On 
  Statistics Stream to console....On 
  Warning Stream to console.......On 
==== [Parsing...] ==========================================================
File '/tmp/povray_LnE313' line 18: Possible Parse Error: Cannot find file
 'colors.inc', even after trying to append file type extension.
File '/tmp/povray_LnE313' line 18: Parse Error: Cannot open include file
 colors.inc.
Fatal error in parser: Cannot parse input.
Render failed


#5

The default povray includes are needed for anything to work, the log says it can’t find “color.inc” (core include), should be in /usr/share/povray-3.7/include according to your installation, anything there?


#6

Ok, on Ubuntu/Debian we must install ‘povray-includes’ package, add this to installation readme could be needed :wink:


#7

Is there a problem with cloud.py, the quality param affects color sky, the color is only available with q=9 ?


#8

No problem with the node, quality effects everything. Quality 9 should be used for “final” clouds.


#9

Thanks for your lights