how to exclude models from light?

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default how to exclude models from light?

    in the multiuser demo (link below) i noticed on some computers, especially on
    macs with openGL, that the groud has sometimes effects of the lightsource. i
    want some models be affected by the light and some not.

    i have the following things done with the shader:
    myshader.specular=rgb(0,0,0)
    myshader.ambient=rgb(0,0,0)
    myshader.diffuse=rgb(0,0,0)
    myshader.shininess=0
    myshader.flat = TRUE

    but if i switch to software mode i can see the lighteffect on the ground, how
    to get it off?

    to see what i tried to explain click on the link below, switch on software
    mode and look on the ground and then turn around, you will see that the ground
    will have some dark lightrefelction.

    thanks for any hint!

    hondo3000 Guest

  2. Similar Questions and Discussions

    1. tar and --exclude
      Am running ubuntu breezy updated to 2.6.12-10-686 I was trying to backup my system following the instructions here: ...
    2. How to exclude classes?
      How to exclude classes from being compiled in run-time? I guess it can decrease time (and size) to compile an mxml file. We can do it for FlashMX...
    3. Flex 1.5 exclude compiler?
      Dear Sirs, I am newer for Flex. When I try Flex found difference between version 1.0 and 1.5. The Flex 1.0 had command-line compiler, and 1.5...
    4. Exclude Files from HttpForbiddenHandler
      Hi all, By default .cs files are protected from downloading by adding ".cs" to the HttpForbiddenHandler in machine.config. How to ALLOW (exclude...
    5. Exclude information on Print
      Hi gang, I've been a silent reader here for a while, and have a minor problem I can't seem to make right. Here's the situation: I work in a...
  3. #2

    Default Re: how to exclude models from light?

    What if you disable specular color for the light source ? It will light all
    models but maybe you won't get that lighting effect on the ground.

    member("3d world").light("omni2").specular = FALSE

    Best regards,
    Karl.


    Karl Sigiscar Guest

  4. #3

    Default Re: how to exclude models from light?

    hm, i tried it without success. even deleting the light did not effect the
    effect.
    i have no idea where it comes from.

    i will make some testing next days, but this is very confusing for me at the
    moment.
    maybe there is a problem with using the "glossmap" channel for the lightmaps?

    the ground in this scene is a giant polygon (square with two triangles),
    maybe this is the reason why i can
    not see the effect on the other objects...

    i will try to find out more about it, but if somebody knows something about
    problems with the
    glossmap channel, feel free to post it here.

    hondo3000 Guest

  5. #4

    Default Re: how to exclude models from light?

    Yes indeed.

    Lighting changes when a surface is more subdivided. I noticed that already.
    Maybe you can try and add some polygons to the floor by subdividing it.



    Karl Sigiscar Guest

  6. #5

    Default Re: how to exclude models from light?

    giving the ground more polygons killed the effect. but i am not very happy with
    this solution because now i dont have two triangles for the ground instead i
    have 200. so my ground plane is now tiled 10x10, made some tests with 2x2 or
    5x5 but with this resolutions the effect was still visible.

    strage that this seems to have nothing to do with light or texturing just the
    camera position and size of the polygon seems to responsible for this effect.

    but seems that most graficscards seem to display the scene correct...

    thanks for helping me here!


    hondo3000 Guest

  7. #6

    Default Re: how to exclude models from light?

    If I understand the question correctly, to all of you guys that
    replied, none of this will do what hondo3000 wants to do.

    Hondo3000,
    What I think your looking for is called "Light Linking", and Shockwave
    does not support this. By default, when you place any type of light, it
    lights ALL OBJECTS. The only way to get rid of this is to link your
    lights in a 3d appication program such as Maya, Max, or Plasma etc.
    Then you will need to bake these lights into textures, and place them
    on your surfaces.

    Here is an example of what I am talking about. The tutorial is in Maya,
    but if you don't have Maya, I am sure that there tutorials on light
    linking the 3d application you have.

    roofy Guest

  8. #7

    Default Re: how to exclude models from light?

    Ok, the display problem occurs only in combination with fog.
    hondo3000 Guest

  9. #8

    Default Re: how to exclude models from light?

    >Ok, the display problem occurs only in combination with fog.

    ???? Shockwave supports fog?

    roofy Guest

  10. #9

    Default Re: how to exclude models from light?

    Good to know.


    Karl Sigiscar Guest

Posting Permissions

  • You may not post new threads
  • You may 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