Results 1 to 10 of 10
  1. #1

    Weight paint vertices visible from the active camera

    Hi,

    I created a tiny utility that sets the weights of vertices that are in the field of view of the camera. May come in handy if you want to restrict the distribution of particles for example. Details and download instructions in this article.

    cheers,

    -- Michel.
    Check out my new add-on, IDMapper, or the other ones on my Blender Market store.
    There you will also find my e-books 'Creating Add-ons for Blender', 'Open Shading Language for Blender' and the new 'Blender Add-on Cookbook'.
    Main blog: http://blenderthings.blogspot.com



  2. #2
    Member
    Join Date
    Oct 2009
    Location
    Athens,Greece
    Posts
    210
    Really nice and useful, thanks!!



  3. #3
    The script now can also take into account any objects in the scene that might block the view from the camera.

    cheers,

    -- Michel.
    Check out my new add-on, IDMapper, or the other ones on my Blender Market store.
    There you will also find my e-books 'Creating Add-ons for Blender', 'Open Shading Language for Blender' and the new 'Blender Add-on Cookbook'.
    Main blog: http://blenderthings.blogspot.com



  4. #4
    Added new functionality: Weight diminishes further away from the camera, an optional margin around the camera frame and a vertex weight edit modifier.

    cheers,

    -- Michel.
    Check out my new add-on, IDMapper, or the other ones on my Blender Market store.
    There you will also find my e-books 'Creating Add-ons for Blender', 'Open Shading Language for Blender' and the new 'Blender Add-on Cookbook'.
    Main blog: http://blenderthings.blogspot.com



  5. #5
    Member Spirou4D's Avatar
    Join Date
    Jul 2010
    Location
    Lille, France
    Posts
    1,267
    Hi varkenvarken,

    Thanks alot for this new kind of add-on: very nive idea!
    Congrats.
    Words are Images that loosed Light!
    Linux Mint 18.2 Saunya - Bi-Quad Intel 2.66Ghz x64Bytes - Nvidia OpenGL GT 630 4Go-vram



  6. #6
    Hi.

    I'm experiencing two issues clearly visible on the screenshot: there is a bald spot just near the camera and there is a specular weighting also rear the camera!

    weight test.png



  7. #7
    @Ray Tracer: the reflected weights are clearly a bug: i probably forgot to check if the point of intersection with the view frame was negative. I am pretty sure all my testcases were with the camera outside the plane being weighted, so thank you for reporting it!
    The bald spot i don't understand, i don't think it has to do with the clipping distance (because i do not take that into account) but it might be a precision issue. Can you post the .blend somewhere? (or just tell me what the dimension of the plane and the positions of the plane and the camera are ?
    Check out my new add-on, IDMapper, or the other ones on my Blender Market store.
    There you will also find my e-books 'Creating Add-ons for Blender', 'Open Shading Language for Blender' and the new 'Blender Add-on Cookbook'.
    Main blog: http://blenderthings.blogspot.com



  8. #8
    I fixed the reflected weights.The bald spot is not a bug: from the camera view some vertices 'near your feet' are in fact not visible, so if you look from the top there is an area around the camera position that is indeed not weighted :-) (To verify this behaviour: if you increase the field of view of the camera, i.e. decrease its focal lenght, this bald spot will be smaller).

    cheers,

    -- Michel.
    Check out my new add-on, IDMapper, or the other ones on my Blender Market store.
    There you will also find my e-books 'Creating Add-ons for Blender', 'Open Shading Language for Blender' and the new 'Blender Add-on Cookbook'.
    Main blog: http://blenderthings.blogspot.com



  9. #9
    Originally Posted by varkenvarken View Post
    I fixed the reflected weights.The bald spot is not a bug: from the camera view some vertices 'near your feet' are in fact not visible, so if you look from the top there is an area around the camera position that is indeed not weighted :-) (To verify this behaviour: if you increase the field of view of the camera, i.e. decrease its focal lenght, this bald spot will be smaller).

    cheers,

    -- Michel.
    Yep, I figured it out

    Thanks for the quick fix!



  10. #10
    Hi,

    I noticed that having a displace modifier unapplied can lead to strange result, as you can see in the test below.
    Applying the displace modifier seems to fix the problem.
    Can you look into this?

    visibletest2.jpg



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •