» HLSL shader effect question
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

HLSL shader effect question

question open graphics

cybear 01/02/12 - 11:40

I want to create a repeat effect of a Texture in HLSL which let me decide the number of repetition, the scaling, the angle and the position similiar to the attached picture.

Is that possible to do it with HLSL? May somebody have a hint how to do the repeating and scaling in HLSL? I tried to understand the kaleidoscope code, but it isn't so easy to understand. I also gave a look at the blur shaders, but I didn't understand till now how to create only stripes of the texture.

Thank you in advance! :)

3 replies 0 new

link | Flag this reply as a solution. tonfilm (devvvv) 01/02/2012 - 15:50

that effect is more easy with texture transforms and spreads.. if you connect the same transformation to the object and the texture transformation, you will have seamless image. then you can add some additional offset transformations to the texture transformations. that should give similar effects.

Thank you tonfilm for your answer!

I know that way using texture transform like Joreg did in the "Stripes" node. I wanted to know if it is possible to do it in a shader for saving CPU calculations...

Maybe Unc's Mosaic fx is a starting point.

anonymous user login

Shoutbox

~13min ago

Urbankind: circuitb:Wrongcop is epic! :)

~52min ago

joreg: @tobi: use GetSlice() as the patch i referred you to is demonstrating. or start a forum thread with your patch.

~1h ago

TobiTobsen123: hmm yes i can see the values...but how to handle them as seperate values? I need to forward them via TCP/IP...

~3h ago

joreg: @tobi: OSCDecoder helppatch has a section: OSC_Advanced (bottomright) that demoes decoding of multiple messages

~3h ago

TobiTobsen123: I'm using an OSCDecoder, it receives two arguments...works but how can I seperate the arguments into two seperate values

~6h ago

u7angel: @mediadog, make it a forum question.

~6h ago

u7angel: @mediadog, tty renderer ?

~8h ago

microdee: however non-conductive objects are invisible for this so the pencil and the sticks in the video are still a mysteries