Re: [Aqsis-commits] [SCM] Aqsis Renderer branch, master, updated. CVS_Tip-2486-g71f239a

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [Aqsis-commits] [SCM] Aqsis Renderer branch, master, updated. CVS_Tip-2486-g71f239a

by Chris Foster-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Aug 11, 2009 at 11:42 PM, Paul
Gregory<pgregory@...> wrote:

> - Log -----------------------------------------------------------------
> commit 71f239ac53cd5404fd4ac0482a2f20fc8b459785
> Author: Paul Gregory <pgregory@...>
> Date:   Tue Aug 11 14:41:02 2009 +0100
>
>    Add channel naming support.
>
>     * Now individual channels can be named.
>       Display "file.exr" "exr" "N" "string layername" "Normal"
>            "string channelname0" "X"
>            "string channelname1" "Y"
>            "string channelname2" "Z"
>            "quantize" [0 0 0 0]

Regarding the interface, how about making the channelnames into an array:

Display ... "string channelnames" ["X" "Y" "Z"]

The array length would be known by what type of AOV you're displaying.

~Chris.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Aqsis-development mailing list
Aqsis-development@...
https://lists.sourceforge.net/lists/listinfo/aqsis-development

Re: [Aqsis-commits] [SCM] Aqsis Renderer branch, master, updated. CVS_Tip-2486-g71f239a

by Chris Foster-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Aug 12, 2009 at 12:36 PM, Chris Foster<chris42f@...> wrote:
> Regarding the interface, how about making the channelnames into an array:
>
> Display ... "string channelnames" ["X" "Y" "Z"]
>
> The array length would be known by what type of AOV you're displaying.

After discussing this briefly at the meeting, I've come to think that my
solution above isn't any good, mainly because there's no guarentee that the
channel names array will be passed portably through the interface and into
DspyImageOpen.

At first I thought it would be a really odd implementation to not pass through
the array correctly, but there's probably various reasons why the renderer
might want to cache the RI calls somehow and recall them later.  The most
obvious example would be InlineArchive - in that case, the renderer really
needs to know the length of the channelnames array so that it can copy and
save it somewhere.

I think this leaves us with what you had before (using parameter name
numbering), or the following, which I think is a little nicer:

Display "string channelnames[3]" ["X" "Y" "Z"]

If we use this I think it's fairly clear that it will be correctly handled by
other renderers, not just aqsis.

The interface drawback is that the user has always to write an inline
declaration with the correct array size, but I think this is less of a burden
than creating several independent numbered channel names.

~Chris.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Aqsis-development mailing list
Aqsis-development@...
https://lists.sourceforge.net/lists/listinfo/aqsis-development