I'm not sure how to do what you suggest: I'm trying to normalize the red (u) and green (v) values, so that 1.8=0.8, 3.3=0.3, and so on see the script below: i need to filter the jagged lines around the edges of the 0-1 loop... a sort of multisample control?
BackdropNode { inputs 0 name BackdropNode1 tile_color 0x8e8e3800 label "normalize values" note_font_size 20 selected true xpos -110 ypos -131 bdwidth 213 bdheight 228 } push $cut_paste_input Reformat { format "512 512 0 0 512 512 1 square_512" name Reformat7 selected true xpos 249 ypos -119 } set N2f869150 [stack 0] Roto { replace true curves {{{v x3f99999a} {f 0} {n {layer Root {f 512} {t x43800000 x43800000} {a} {curvegroup Rectangle1 512 bezier {{cc {f 8192} {px {1 x42480000} {{0} {0}} {{x42533334 x43a84cce} {x43e31998 x43862664}} {{0} {0}} {{0} {0}} {{x4341cccd x43eeccce} {x43e31998 x43862664}} {{0} {0}} {{0} {0}} {{x4344ccc3 x43f04cca} {x439d0889 x43002aa9}} {{0} {0}} {{0} {0}} {{x4251dde4 x43a82224} {x439d0889 x43002aa9}} {{0} {0}}}} idem} {tx 1 x43a3f333 x43c3f333} {a ft x40400000 str 1 spx x43800000 spy x43800000 sb 1 tt x41100000 opc x3f051eb8}}}}}} toolbox {selectAll { { selectAll str 1 ssx 1 ssy 1 sf 1 } { createBezier str 1 ssx 1 ssy 1 sf 1 sb 1 tt 4 } { createOpenSpline str 1 ssx 1 ssy 1 sf 1 sb 1 } { createBezierCusped str 1 ssx 1 ssy 1 sf 1 sb 1 } { createBSpline str 1 ssx 1 ssy 1 sf 1 sb 1 } { createEllipse str 1 ssx 1 ssy 1 sf 1 sb 1 tt 8 } { createRectangle str 1 ssx 1 ssy 1 sf 1 sb 1 tt 9 } { createRectangleCusped str 1 ssx 1 ssy 1 sf 1 sb 1 } { brush str 1 ssx 1 ssy 1 sf 1 sb 1 } { eraser src 2 str 1 ssx 1 ssy 1 sf 1 sb 1 } { clone src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } { reveal src 3 str 1 ssx 1 ssy 1 sf 1 sb 1 } { dodge src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } { burn src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } { blur src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } { sharpen src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } { smear src 1 str 1 ssx 1 ssy 1 sf 1 sb 1 } } } toolbar_brush_hardness 0.200000003 toolbar_source_transform_scale {1 1} toolbar_source_transform_center {256 256} colorOverlay {0 0 0 0} opacity 0.5199999809 lifetime_type "all frames" motionblur_shutter_offset_type centred feather_type smooth source_black_outside true createNewTrack {{-1} "-1\t(none)\t-1" "1000\tNew Track Layer\t1000"} name Roto2 selected true xpos 322 ypos -65 } Blur { size 73 name Blur2 selected true xpos 322 ypos -17 } push $N2f869150 Expression { expr0 x/width expr1 y/height name Expression10 selected true xpos 172 ypos -63 } Merge2 { inputs 2 operation plus name Merge4 selected true xpos 172 ypos -11 } Expression { expr0 "r(x,y, 3, 3)%1" expr1 "g(x,y, 3, 3)%1" channel2 {-rgba.red -rgba.green -rgba.blue none} channel3 {none none none -rgba.alpha} name Expression11 selected true xpos -41 ypos -11 } ColorBars { inputs 0 format "512 512 0 0 512 512 1 square_512" name ColorBars1 selected true xpos -304 ypos -135 } STMap { inputs 2 uv rgb name STMap4 selected true xpos -304 ypos 217 } Viewer { frame 31 colour_sample_bbox {0.6171875 0.921875 0.62109375 0.92578125} samplepoints {{1.51171875 0.61328125} } input_process false name Viewer1 selected true xpos -304 ypos 346 } On Mon, Apr 28, 2014 at 8:51 PM, Elias Ericsson Rydberg < elias.ericsson.rydb...@gmail.com> wrote: > Could you not tile your texture before applying it? > > > 2014-04-28 17:35 GMT+02:00 <marlor.l...@gmail.com>: > >> Hi, >> >> I'm trying to repeat a UVmap when values go beyond 1 or below 0 >> I insert an Expression node like r%1 and g%1 to repeat the normalized >> values, but I get very hard edges, as if the STMap didn't apply any >> filtering around the edges of the 0-1 loop >> I also tried to change the sampled area, putting r(x,y,3,3)%1 into the >> expression, but it doesn't seem to make a big difference >> >> is there a solution? >> >> thanks! >> marco >> >> _______________________________________________ >> Nuke-users mailing list >> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >> > > > _______________________________________________ > Nuke-users mailing list > Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users