|
|
clipka <ano### [at] anonymousorg> wrote:
> Am 04.01.2018 um 13:02 schrieb muyu:
> > clipka <ano### [at] anonymousorg> wrote:
> >> Am 03.01.2018 um 16:16 schrieb muyu:
> >>
> >>> I did another search in the forum. It seems that UberPOV can pass data through
> >>> frames without parsing each time. Is this true?
> >>
> >> Yes, absolutely.
> >
> > I did not find material to show how to use this feature. Could you please give
> > an simple example? Thanks a lot.
>
> For example, to load a complex mesh just once, you could use:
>
> #ifndef MyMesh
> #persistent MyMesh = mesh { ... }
> #endif
> object { MyMesh }
>
> Or, to load an image map just once, you could use:
>
> #ifndef MyPigment
> #persistent MyPigment = pigment {
> image_map { ... }
> }
> #endif
> object { SomeObject
> texture {
> pigment { MyPigment }
> finish { ... }
> }
> }
>
>
> In essence, `#persistent` works like `#declare`, but the variable sticks
> around until UberPOV exits.
>
> You'll still need to assemble the contents of such persistent variables
> into a new scene for each frame; however, you can prepare arbitrarily
> complex objects in this manner, such as nested CSG unions.
Thanks a lot for your suggestions. But it still need parsing from frame to
frame. I upload my pov file in this link
http://news.povray.org/povray.binaries.animations/message/%3Cweb.5a50228f5c821073553834de0%40news.povray.org%3E/#%3Cweb
.5a50228f5c821073553834de0%40news.povray.org%3E
Could you please help have a look? Thanks a lot in advance.
Have a nice weekend
Shouyang
Post a reply to this message
|
|