Professional Web Applications Themes

Alpha channels on textures - Macromedia Director 3D

Hi, I've got a D3D movie with several sprites using a 24bit PNG with an alpha channel as the texture (its only a single colour with either 100% alpha, or 0% alpha) This is working in as far as you can see through the sprites where you should be able to, and not where you shouldn't. The only problem is that director looks like its putting a black matt around the texture rather than either no matt, or blended alpha. Is there any way to fix this? I'm hoping that the sprites will blend into each other rather than the ...

  1. #1

    Default Alpha channels on textures

    Hi,

    I've got a D3D movie with several sprites using a 24bit PNG with an
    alpha channel as the texture (its only a single colour with either 100%
    alpha, or 0% alpha)

    This is working in as far as you can see through the sprites where you
    should be able to, and not where you shouldn't.

    The only problem is that director looks like its putting a black matt
    around the texture rather than either no matt, or blended alpha.

    Is there any way to fix this? I'm hoping that the sprites will blend
    into each other rather than the faint outline I've got at the moment.

    Another way I could fix this would be to use a bitmap as an alpha
    channel texture and colour the shader in seperatly - but I can't find
    any way of doing that either...

    Thanks for any help.

    Guy

    guy.bowden@gmail.com Guest

  2. #2

    Default Re: Alpha channels on textures

    You can see an example of what I mean here:

    [url]http://extranet.holler.co.uk/universal/1402/vekMazeMaxHavok4.htm[/url]

    The blue layers should blend into a single solid block of colour when
    they overlap

    guy.bowden@gmail.com Guest

  3. #3

    Default Re: Alpha channels on textures

    guy, try setting the "quality" property of the texture object(s) to:

    texture("maze").quality=#rgba5551

    that will force a 1bit alpha channel and should get rid of your alpha
    "outline". also i've noticed some weird artifacts on the black 1st
    layer. am not sure if that's the case, but your texture bitmap sizes
    should always be powers of 2 (4,8,16,32,64,128,256,512)

    btw. the best place for dir3d related schtuff is probably here:
    [url]http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l[/url]

    toxmeister@gmail.com Guest

  4. #4

    Default Re: Alpha channels on textures

    Ta very much Toxi (i presume..)

    I've tried that quality property to no avail as well. there's still
    some outline in there..

    As for sizes - would that be 2,4,..,512 * 2,4,...,512 pixels in
    dimentions for the bitmap?

    guy.bowden@gmail.com Guest

Similar Threads

  1. alpha channels and fades
    By Dena in forum Macromedia Director Basics
    Replies: 0
    Last Post: September 18th, 09:05 PM
  2. PS7, PNG and alpha channels
    By Dave Hodgson in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 4
    Last Post: August 22nd, 11:48 AM
  3. MX and Alpha Channels
    By Les in forum Macromedia Freehand
    Replies: 0
    Last Post: August 22nd, 12:49 AM
  4. Textures with Alpha Channels
    By randallr webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 2
    Last Post: August 9th, 10:52 PM
  5. Gradients in alpha channels
    By Troy Pearse in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 2
    Last Post: August 4th, 12: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