I have downloaded the POVRayRender package and I tried to use it.
I can't get it to work.
I even used the command Deep
instead of Short
, that works but I can't get colors in the POV-Ray output.
Can someone explain it to me in detail from the beginning?
Mathematica and POV-Ray 3.7 are both on my D:\
drive
I would be very happy.
-
1$\begingroup$ Would be nice to link to source at least. Is there any manual? Where exactly are you stuck? $\endgroup$– KubaCommented Jul 21, 2017 at 11:41
1 Answer
Assuming you mean the package from this source: https://github.com/xslittlegrass/POVRayRender-For-Mathematica and presented in this thread: Mathematica and POV-Ray workflow (Q&A), here is a small introduction:
- Download the package to a directory of your liking and unzip.
- Open Mathematica
- Under File > Install... , choose package and input the path to the package you just downloaded.
- Also copy the directory "POVRayRender" into the
$UserBaseDirectory
, which is usually on Windows: C:\Users\\AppData\Roaming\Mathematica - Restart Mathematica.
- Load the functions via: Needs["POVRayRender`"]
Set the path to your povray installation with, for example:
ConfigurePOVRayRender["POVRayPath" -> "C:\\Program Files\\POV-Ray\\v3.7\\bin\\pvengine.exe"];
Try out a nice example:
p = ParametricPlot3D[{{4 + (3 + Cos[v]) Sin[u], 4 + (3 + Cos[v]) Cos[u], 4 + Sin[v]}, {8 + (3 + Cos[v]) Cos[u], 3 + Sin[v], 4 + (3 + Cos[v]) Sin[u]}}, {u, 0, 2 Pi}, {v, 0, 2 Pi}, PlotStyle -> {Red, Green}, PlotPoints -> 80, Mesh -> None]; POVRayRender[p, Method -> "Triangle"]
-
$\begingroup$ Thank you!.it works fine now,i am really happy now. $\endgroup$ Commented Feb 4, 2018 at 9:45