Professional Web Applications Themes

Blending texture layers - Macromedia Director 3D

In my lingo generated shader for a terrain model, I have two textures, a detail texture and a more overall texture for the terrain. For some reason I cannot make them blend together each 50%, I have tried lots of permutations with blend constant lists and blend source lists and blend function lists and understand none of it! At the moment I cannot get it so that my textures blend together and my object is not transparent! Whenever i have the two blending right, the object goes 50% transparent! This must be a simple newbie mistake but can anyone tell ...

  1. #1

    Default Blending texture layers

    In my lingo generated shader for a terrain model, I have two textures, a detail
    texture and a more overall texture for the terrain. For some reason I cannot
    make them blend together each 50%, I have tried lots of permutations with blend
    constant lists and blend source lists and blend function lists and understand
    none of it! At the moment I cannot get it so that my textures blend together
    and my object is not transparent! Whenever i have the two blending right, the
    object goes 50% transparent! This must be a simple newbie mistake but can
    anyone tell me how to blend two textures in my shader without the whole thing
    going transparent as well? Thx in advance, William Hogben

    Will Hogben Guest

  2. #2

    Default Re: Blending texture layers

    This works for me:

    tex1 = gMember.newTexture("terrain", #fromcastmember, member("terrain"))
    tex2 = gMember.newTexture("detail", #fromcastmember, member("detail"))
    s = gMember.shader("terrain")
    s.texturelist[1] = tex1
    s.texturelist[2] = tex2
    s.blendfunctionlist[2] = #multiply

    "Will Hogben" <webforumsusermacromedia.com> wrote in message
    news:car6sd$qeq$1forums.macromedia.com...
    > In my lingo generated shader for a terrain model, I have two textures, a
    detail
    > texture and a more overall texture for the terrain. For some reason I
    cannot
    > make them blend together each 50%, I have tried lots of permutations with
    blend
    > constant lists and blend source lists and blend function lists and
    understand
    > none of it! At the moment I cannot get it so that my textures blend
    together
    > and my object is not transparent! Whenever i have the two blending right,
    the
    > object goes 50% transparent! This must be a simple newbie mistake but can
    > anyone tell me how to blend two textures in my shader without the whole
    thing
    > going transparent as well? Thx in advance, William Hogben
    >

    Gianpiero Colagiacomo Guest

  3. #3

    Default Re: Blending texture layers

    thanks, that works great.
    Will Hogben Guest

Similar Threads

  1. Multiple texture layers
    By Jez C in forum Macromedia Director 3D
    Replies: 2
    Last Post: August 14th, 12:25 PM
  2. blend texture layers relative to camera distance
    By Grampa Gar in forum Macromedia Director 3D
    Replies: 0
    Last Post: June 15th, 04:48 AM
  3. Help regarding multiple texture layers
    By jrPace in forum Macromedia Director 3D
    Replies: 5
    Last Post: July 6th, 10:02 AM
  4. Assigning UV coordinates to a texture in shader layers
    By Petter MS in forum Macromedia Director 3D
    Replies: 0
    Last Post: December 29th, 12:22 PM
  5. blending? Fading?
    By Thundercat webforumsuser@macromedia.com in forum Macromedia Freehand
    Replies: 1
    Last Post: July 15th, 11:09 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