POV-Ray : Newsgroups : povray.general : Feature request: Various SDL / Command Line Stuff : Re: Feature request: Various SDL / Command Line Stuff Server Time
30 Jul 2024 10:18:02 EDT (-0400)
  Re: Feature request: Various SDL / Command Line Stuff  
From: Christian Froeschlin
Date: 19 Mar 2009 18:00:37
Message: <49c2c085$1@news.povray.org>
clipka wrote:

> Of course, virtually every OS provides *some* way of batch processing. However,
> it would be desirable if this could be done in a way that works with all
> platforms on which POV runs.

It would be really cool to integrate this into SDL itself ;)

#declare MY_TEXTURE = scene
{
   camera {orthographic ...}
   light_source {...}
   plane {...}
}

#declare MY_SCENE = scene
{
   camera {...}
   light_source {...}
   sphere {0,1 pigment {image_map "foo.png"}}
}

render
{
   scene {MY_TEXTURE}
   width  1024
   height 1024
   output_file_name "foo.png"
}

render
{
   scene {MY_SCENE}
   width  1024
   height 768
   output_file_name "myscene.png"
}

This also allows for variables which persist across multiple frames
in animations (done manually using a #while loop). And just imagine
what you can do with macros. Well, better not to hold my breath ;)


Post a reply to this message

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