Professional Web Applications Themes

advanced texturing - Macromedia Director 3D

I want to know if it's possible to mix textures in the shader or do I have to prerender a texture with copyPixels, the result I'm looking for is transitions between two diffrent textures, such as gravelroad to tarmac. What way would be most efficient? -- Christoffer Enedahl [url]http://www.enedahl.com[/url] [url]http://www.openLingo.org[/url]...

  1. #1

    Default advanced texturing

    I want to know if it's possible to mix textures in the shader or do I have
    to prerender a texture with copyPixels, the result I'm looking for is
    transitions between two diffrent textures, such as gravelroad to tarmac.
    What way would be most efficient?

    --
    Christoffer Enedahl
    [url]http://www.enedahl.com[/url]
    [url]http://www.openLingo.org[/url]


    Christoffer Enedahl Guest

  2. #2

    Default Re: advanced texturing

    Christoffer Enedahl wrote:
    > I want to know if it's possible to mix textures in the shader or do I have
    > to prerender a texture with copyPixels, the result I'm looking for is
    > transitions between two diffrent textures, such as gravelroad to tarmac.
    > What way would be most efficient?
    Hi. Nope, you can´t mix them in the shader. Actually, I´ve never done
    this myself for getting such effect. But my guess is that changing the
    image property of the texture would be the nicier way.

    Otherwise, you´d have to create newTextures or change it´s member
    property... and that would be slower for sure as you´d have to set your
    member´s image first and then change the texture´s member property.

    on init me
    textureRef = member("3D").texture("map #3")
    end

    on updateTexture me
    someProcessedImage = copyPixels(..........)
    textureRef.image = someProcessedImage
    end

    C´ya!
    --
    Agustín María Rodríguez | [email]agustinOnWine.com.ar[/email] | [url]www.OnWine.com.ar[/url]

    Agustín María Rodríguez Guest

  3. #3

    Default Re: advanced texturing

    Ok, Actually I was not after a realtime transition, but a static transition
    texture from 2 types of roads in my cargame.
    I'll stick with the copyPixels solution, thanx

    --
    Christoffer Enedahl
    [url]http://www.enedahl.com[/url]
    [url]http://www.openLingo.org[/url]

    > Hi. Nope, you can´t mix them in the shader. Actually, I´ve never done
    > this myself for getting such effect. But my guess is that changing the
    > image property of the texture would be the nicier way.
    >
    > Otherwise, you´d have to create newTextures or change it´s member
    > property... and that would be slower for sure as you´d have to set your
    > member´s image first and then change the texture´s member property.
    >
    > on init me
    > textureRef = member("3D").texture("map #3")
    > end
    >
    > on updateTexture me
    > someProcessedImage = copyPixels(..........)
    > textureRef.image = someProcessedImage
    > end

    Christoffer Enedahl Guest

  4. #4

    Default Re: advanced texturing

    how about changeing the blendconstantlist

    [url]http://www.geocities.com/hairybobby2000/3tutetexturemulti.htm[/url]

    you apply two textures to a shader then just mix from one to the other


    its often a bit tricky though




    HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp

    [url]http://www.geocities.com/hairybobby2000[/url]

    see my photos of the sunrise eclipse

    [url]http://www.geocities.com/hairybobby2000/ecllipse.html[/url]
    hairybobby webforumsuser@macromedia.com Guest

  5. #5

    Default Re: advanced texturing

    I'm sure thats handy, but thats not the effect I was looking for. thanx
    anyway.

    --
    Christoffer Enedahl
    [url]http://www.enedahl.com[/url]
    [url]http://www.openLingo.org[/url]

    "hairybobby" <webforumsusermacromedia.com> skrev i meddelandet
    news:bf8uvg$3ku$1forums.macromedia.com...
    > how about changeing the blendconstantlist
    >
    > [url]http://www.geocities.com/hairybobby2000/3tutetexturemulti.htm[/url]
    >
    > you apply two textures to a shader then just mix from one to the other
    >
    >
    > its often a bit tricky though
    >
    >
    >
    >
    > HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp
    >
    > [url]http://www.geocities.com/hairybobby2000[/url]
    >
    > see my photos of the sunrise eclipse
    >
    > [url]http://www.geocities.com/hairybobby2000/ecllipse.html[/url]

    Christoffer Enedahl Guest

Similar Threads

  1. A general question about multi-texturing
    By has981 in forum Macromedia Director 3D
    Replies: 3
    Last Post: May 9th, 11:32 AM
  2. Texturing Help
    By screeny32 in forum Macromedia Director 3D
    Replies: 1
    Last Post: November 28th, 01:28 PM
  3. Panoramas and texturing help
    By imagine2 in forum Macromedia Director 3D
    Replies: 0
    Last Post: August 12th, 12:26 AM
  4. Dynamic texturing
    By Reznor webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 1
    Last Post: January 24th, 10:27 AM
  5. Texturing inside and out
    By W. Locke Morgan in forum Macromedia Director 3D
    Replies: 0
    Last Post: September 13th, 09:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139