Professional Web Applications Themes

coloring a plane dinamically - Macromedia Director 3D

Hi, I have developed a script that creates a 3D chart from an array of two dimentions. This array describes the depth of the vertex of the chart, which is generated from a plane, and moving the vertex with the meshDeform modifier. My question is: I want to colorate this plane: the lower zones in blue, the higher in red, with all the intermediate colors. How can I create a shader to do this? Can anybody give me a hint? Thanks...

  1. #1

    Default coloring a plane dinamically


    Hi, I have developed a script that creates a 3D chart from an array of two dimentions. This array describes the depth of the vertex of the chart, which is generated from a plane, and moving the vertex with the meshDeform modifier.
    My question is:
    I want to colorate this plane: the lower zones in blue, the higher in red, with all the intermediate colors. How can I create a shader to do this?
    Can anybody give me a hint?
    Thanks


    cobian webforumsuser@macromedia.com Guest

  2. #2

    Default Re: coloring a plane dinamically

    I think the easiest way would be to apply a simple color fade texture to the edge of the object. This would automatically color the object smoothly like a contour map without worrying about having to build your own mesh and code the colorList for each vertex.

    Also from what I've found, the colorList method for creating meshes from scratch does not render consistently across all 3D cards and bit depths, so stick to the texture method to avoid headaches.

    Rix


    Rix webforumsuser@macromedia.com Guest

Similar Threads

  1. Question capturing the value of dinamically created textfield
    By upeshk in forum Brainstorming Area
    Replies: 0
    Last Post: September 16th, 01:13 PM
  2. Really Creating dinamically Web Controls
    By Cesar Garcia H in forum ASP.NET Building Controls
    Replies: 2
    Last Post: April 10th, 11:24 AM
  3. Populating a DataGrid dinamically
    By cadillac3 in forum Macromedia Flex General Discussion
    Replies: 12
    Last Post: October 24th, 11:22 PM
  4. dinamically linkbuttons handler
    By oterox in forum ASP.NET Building Controls
    Replies: 3
    Last Post: June 18th, 12:55 AM
  5. Invoke methods dinamically with out parameters in c#
    By cchasqueira@hotmail.com in forum ASP.NET Web Services
    Replies: 1
    Last Post: June 1st, 05:24 AM

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