POV-Ray : Newsgroups : povray.general : Calling C or C++ functions from Povray : Re: Calling C or C++ functions from Povray Server Time
19 Apr 2024 20:03:40 EDT (-0400)
  Re: Calling C or C++ functions from Povray  
From: jr
Date: 14 May 2020 03:45:01
Message: <web.5ebcf64d4c5eb21ca1c5a5c60@news.povray.org>
hi,

"Josh" <nomail@nomail> wrote:
> Just curious, is there a way to have Povray call an external C or C++ (compiled)
> function? I have a series of functions used in an isosurface, that get layered
> so many times that they are extremely slow. I'm sure they can be written in C or
> C++ and run a lot faster, if Povray can call C functions...

not from within your scene code, afaik.  however, if your compiled program
writes the function results to a file, you could read those in, before every
frame; you can use an .ini file to control it all.
<http://wiki.povray.org/content/Reference:Shell_Command_Options>


regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.