|
|
On 9 Jan 2005 15:54:17 -0500, "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote:
> I need to do it in a program
The question is, which program? Since your (suggested) change would not remove
all memory allocations, the parsing/scene building could be not optimal. And
you could get not perfectly optimized build of the renderer. I suggest other
solution. I expect the writer application is open source (one of modelers,
right?). I imagine it could be possible to modify it's export routine from:
#declare Object$(ID) = object{ ...AAA... pigment{ ...BBB... } }
to
#macro PigObject$(ID)() ...BBB... #end
#macro Object$(ID)() ...AAA... pigment{ PigObject$(ID)() } #end
(where $(ID) is some internal string or integer identificator of the object)
then you could simply add object with modeler testuring:
object{ ObjectMyObject() }
or give it own texturing
#macro PigObjectMyObject() red 1 #end
object{ ObjectMyObject() }
You can extend this from pigments to finishes, texturing, materials etc. etc.
I hope that's clear and readable what I meant.
ABX
Post a reply to this message
|
|