simple transform and merge help

Hi,

I tried to merge two ramps each with resolution of 1024×256 to form a final image with 1024×512, but I couldn’t figure out how to manipulate the bbox or the transform node to achieve this.


As you can see, the top ramp is totally black as I transform it up 256 pixel in Y.

Code:

version 6.1 v1
define_window_layout_xml {<?xml version="1.0" encoding="UTF-8"?>
<layout version="1.0">
    <window x="0" y="0" w="1921" h="1170" screen="0">
        <splitter orientation="1">
            <split size="733"></split>
            <splitter orientation="1">
                <split size="40"></split>
                <dock id="" hideTitles="1" activePageId="Toolbar.1">
                    <page id="Toolbar.1"></page>
                </dock>
                <split size="689"></split>
                <splitter orientation="2">
                    <split size="651"></split>
                    <splitter orientation="1">
                        <split size="685"></split>
                        <dock id="" activePageId="Viewer.1">
                            <page id="Viewer.1"></page>
                        </dock>
                        <split size="0"></split>
                        <dock id="" hideTitles="1"></dock>
                    </splitter>
                    <split size="462"></split>
                    <dock id="" activePageId="DAG.1">
                        <page id="DAG.1"></page>
                        <page id="Curve Editor.1"></page>
                    </dock>
                </splitter>
            </splitter>
            <split size="1176"></split>
            <splitter orientation="2">
                <split size="991"></split>
                <dock id="" activePageId="Properties.1">
                    <page id="Properties.1"></page>
                </dock>
                <split size="122"></split>
                <splitter orientation="1">
                    <split size="1172"></split>
                    <dock id="" activePageId="Progress.1">
                        <page id="Script Editor.1"></page>
                        <page id="Progress.1"></page>
                    </dock>
                    <split size="0"></split>
                    <dock id="" hideTitles="1"></dock>
                </splitter>
            </splitter>
        </splitter>
    </window>
</layout>
}
Root {
 inputs 0
 name "C:/Documents and Settings/Administrator/Desktop/merge_ramp.nk"
 format "1280 720 0 0 1280 720 1 HD_720P"
 proxy_type scale
 proxy_format "1024 778 0 0 1024 778 1 1K_Super_35(full-ap)"
}
Constant {
 inputs 0
 channels rgb
 format "1024 512 0 0 1024 512 1 Lat-Long 1K"
 name Constant2
 xpos 54
 ypos -112
}
Reformat {
 type "to box"
 box_width 1024
 box_height 256
 box_fixed true
 name Reformat2
 xpos 54
 ypos -31
}
Expression {
 channel0 rgb
 expr0 1-sin((y/height)*0.5*3.14)
 name Expression1
 xpos 54
 ypos 76
}
Transform {
 translate {0 257}
 center {512 128}
 name Transform1
 xpos 54
 ypos 155
}
Constant {
 inputs 0
 channels rgb
 format "1024 512 0 0 1024 512 1 Lat-Long 1K"
 name Constant3
 xpos 267
 ypos -108
}
Reformat {
 type "to box"
 box_width 1024
 box_height 256
 box_fixed true
 name Reformat3
 xpos 267
 ypos -36
}
Expression {
 channel0 rgb
 expr0 sin((y/height)*0.5*3.14)
 name Expression3
 xpos 267
 ypos 79
}
Merge2 {
 inputs 2
 name Merge1
 xpos 267
 ypos 155
}
Viewer {
 frame 1
 input_process false
 name Viewer1
 xpos 267
 ypos 231
}


Thanks,
Jason

No Responses to “simple transform and merge help”

Post a Comment