Results 1 to 12 of 12

Thread: Gradient confusion

  1. #1

    Gradient confusion

    I have an object whose surface includes a gradient that changes from the front of the object to its rear. I have this mostly working using Distance From and a null (distance from null).

    the null is parent to my object, so that where the null moves, so does the object. Yet when the null/object are far away, you can't see this gradient surface; you can see it when both are near the camera. I need that surface to behave constantly, and I'm not seeing why it doesn't based on the fact that I'm using a null to control it.

    I've tried using Distance from pivot point but that gets me nowhere (I position the object's pivot point right where the null is placed in another file using the same object.

    Any ideas on what I'm missing?

    thank you!

    Johnny
    _______________________________________
    Discuss sustainability at www.ThinkPlan.org

  2. #2
    Chief Noob Hoopti's Avatar
    Join Date
    Mar 2004
    Location
    Mooresville, NC
    Posts
    435
    You mentioned you're parenting the null to the object, and then when you move the null the texture changes. I think you've got your parenting backwards.

    Hoop
    www.mean3d.com

    "Problems worthy of attack, prove their worth by hitting back." -- Piet Hein

  3. #3
    Quote Originally Posted by Hoopti
    You mentioned you're parenting the null to the object, and then when you move the null the texture changes. I think you've got your parenting backwards.

    Hoop

    sorry..I might have written it wrong; the null is the parent, the object with the gradient is the child, and the child's surface uses a gradient which incorporates Distance from Object, which in this case is the null.

    J
    _______________________________________
    Discuss sustainability at www.ThinkPlan.org

  4. #4
    Try this thread and see if you get some ideas.

    http://vbulletin.newtek.com/showthre...light=gradient

    If not post a pic of your object and lets take a look.

  5. #5
    Chief Noob Hoopti's Avatar
    Join Date
    Mar 2004
    Location
    Mooresville, NC
    Posts
    435
    Here's a scenefile with a box parented to a null, using a distance to object gradient, with the null moving, and the gradient remaining the same. I'm not able to duplicate your problem. Let me know where my assumptions are wrong and I'll try to help.

    The movie of this scene is here:

    http://www.bigdogvideos.com/gradientbox.mov

    Hope this helps.

    Hoop
    Attached Files Attached Files
    www.mean3d.com

    "Problems worthy of attack, prove their worth by hitting back." -- Piet Hein

  6. #6
    Quote Originally Posted by Hoopti
    Hope this helps.

    Hoop

    yeah, actually it does...now, after coffee, I'm going to take some screenshots and do a few renders to show the problem I'm having...

    hope it's something dumb, or something I forgot TO do...

    thanks for the help..pics to follow shortly.

    Johnny
    _______________________________________
    Discuss sustainability at www.ThinkPlan.org

  7. #7

    this is what I've got

    Sorry it took so long..got sidetracked.

    OK..the 3 images on the right are from a quick clip, far, closer, close up. "Far" is not meters away, but inches. Close up is pretty much right in front of the camera.

    Top left image shows the XYZ arrows of the null which is parent to the bolt.

    Bottom left image shows the relevant part of the surface showing the gradient, and how it's used in distance to bolt null. 50mm is where I want the glow to end; the bolt overall is about 60mm.

    now, to me, the top right image barely shows this white-hot metal..you get a little brighter in the middle image, and brightest in the bottom. Even tho red hot metal appears less bright with distance, it shouldn't be AS dull as what's pictured above.

    J

    _______________________________________
    Discuss sustainability at www.ThinkPlan.org

  8. #8
    It just looks like it's getting darker - is it moving away from your lights ( are they set to falloff?) or do you have fog on - to make sure if it's the gradient or not, replace it with a white texture or something and see if that fades
    Confirmed -
    No Weapons of Mass Destruction
    or links to Al Queda or 9/11. (Sep. 2003)

  9. #9
    Quote Originally Posted by toby
    It just looks like it's getting darker - is it moving away from your lights ( are they set to falloff?) or do you have fog on - to make sure if it's the gradient or not, replace it with a white texture or something and see if that fades
    that's how it looks to me, too... no fog at all..I'll try your suggestion to test whether the gradient or not...and will look at the light falloff angle...right now, I don't recall if they're set to fall off...

    *EDIT* D'OH! just hopped back into the scene, turned off the light fall off on the 2 lights, and scrubbed with fPrime on...that was it!

    I feel both relief and embarassment...at least I learned something...thank you!

    J
    Last edited by Johnny; 06-17-2005 at 02:37 PM.
    _______________________________________
    Discuss sustainability at www.ThinkPlan.org

  10. #10
    Chief Noob Hoopti's Avatar
    Join Date
    Mar 2004
    Location
    Mooresville, NC
    Posts
    435
    Glad it worked out.

    Hoop
    www.mean3d.com

    "Problems worthy of attack, prove their worth by hitting back." -- Piet Hein

  11. #11
    You know what would look totally bitchin' on that rivet? Some fake sss using the distance-to-light (or object) gradient in the luminosity channel.

    discussed here -
    http://vbulletin.newtek.com/showthre...SSS#post241143
    Confirmed -
    No Weapons of Mass Destruction
    or links to Al Queda or 9/11. (Sep. 2003)

  12. #12
    Quote Originally Posted by toby
    You know what would look totally bitchin' on that rivet? Some fake sss using the distance-to-light (or object) gradient in the luminosity channel.

    discussed here -
    http://vbulletin.newtek.com/showthre...SSS#post241143
    yeah, that WOULD look cool! I guess 'sss' stands for sub-surface scatter...

    J
    _______________________________________
    Discuss sustainability at www.ThinkPlan.org

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
  •