» Texture onto sphere help
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Texture onto sphere help

question resolved graphics

htone 02/02/12 - 03:00

I have a couple of square, "seamless" textures that I would like to put around a sphere(ex9 geometry). They fit almost perfectly except for one narrow strip. How does one tweak the texture coordinates to make it fit perfectly (like the 'on shape' option for the Sphere(DX9)? Using the texture transform doesn't work. Do I have to code it into the shader? If so, how hard is it? I've been avoiding that so far but I know it's just a matter of time... ;)

4 replies 0 new

link | Flag this reply as a solution. mino (translator) 02/02/2012 - 05:37

hi,

connect Address (EX9.SamplerState) to Sampler State pin of EX9 node (like DrawFixed).
then Cycle U to 1.

Thank you... I got it working using DrawFixed but I can't find anything resembling a Sampler State pin on phong or gourand directional. Any ideas?

link | Flagged as solution by mino. Remove solution flag. mino (translator) 02/02/2012 - 10:24

i found some forum topics:

please try clone EX9.Effect node and

pass P0
    {
        //Wrap0 = U;  // useful when mesh is round like a sphere
        VertexShader = compile vs_1_1 VS();
        PixelShader = compile ps_2_0 PS();
    }

to

pass P0
    {
        Wrap0 = U;  // useful when mesh is round like a sphere
        VertexShader = compile vs_1_1 VS();
        PixelShader = compile ps_2_0 PS();
    }

also GlobalRenderState (EX9) will same result.

Yes!!! Thank you

anonymous user login

Shoutbox

~3h ago

Urbankind: circuitb:Wrongcop is epic! :)

~4h ago

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

~4h 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...

~6h ago

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

~6h ago

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

~9h ago

u7angel: @mediadog, make it a forum question.

~9h ago

u7angel: @mediadog, tty renderer ?

~11h ago

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