POV-Ray : Newsgroups : povray.general : POV to Indigo Using File IO : Re: POV to Indigo Using File IO Server Time
30 Jul 2024 22:27:21 EDT (-0400)
  Re: POV to Indigo Using File IO  
From: Jan Dvorak
Date: 7 May 2008 08:51:37
Message: <4821a5d9$1@news.povray.org>
Dave Dunn napsal(a):
> Charles C <"nospam a nospam.com"> wrote:
> 
>> Keep in mind you're somewhat limited by the fact that the "I" in "IO"
>> requires comma-separated values.
>> Charles
> 
> Yeah, it was just a random thought until I started looking at the code and saw
> the challenges. The best that could happen, short of a .NET application or
> something, would be a set of macros, one for each object type, that would allow
> you to set parameters, render to POV and then #write the XML as string data to a
> file. Probably more trouble than it's worth at this point.
> 
> I don't have time to look up the #write syntax and haven't used it in like five
> years, so don't laugh, but here is the conceptual part:
> 
> #macro Sphere (Location, Radius Texture)
> 
> sphere {Location,Radius,
> texture {Texture}}
> 
> #write filename
> "<sphere>
> <material_name>"Texture"</material_name>
> <center>" Location "</center>
> <radius>" Radius "</radius>
> </sphere>"
> #end
> #end
> 
> 
> 
> 
you will have to output the strings one by one or use concatenate(...). 
Pov-ray does not support implicit concatenation (unlike PHP).

-- 
the ultimate time-killer:
+a0.0 +am2 +r9

Johnny D


Post a reply to this message

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