Page 1 of 95 123 11 51 ... LastLast
Results 1 to 20 of 1891
  1. #1
    Member
    Join Date
    Dec 2011
    Location
    Oxford
    Posts
    173

    Cycles Strand Rendering

    Hi all! I have been working on strand rendering in cycles. It's still quite early and experimental. The initial patch I worked on has now been included in trunk. So, any recent builds should contain this feature (later than 53373). A recent build can be downloaded from the link below.

    http://builder.blender.org/download/

    For full instructions on how to use it and what the settings do please visit the wiki http://wiki.blender.org/index.php/De...66/Cycles/Hair.

    To use the hair rendering you must change the `feature set' on the render tab to `experimental' (from `supported') and be using the cpu to render. With these settings once a particle system is added new panels will be displayed in the particle tab to control the strands.

    There are a few known limitations and bugs currently. These include:
    - Only available for CPU rendering
    - Doesn't support motion blur.
    - There are gaps and overlaps using line segments. This shouldn't be visible for thin strands. You can use triangle primitive strands to fill these gaps but these don't support the hair info node yet. Curve primitives also remove these gaps but artifacts can sometimes appear (particularly with an orthographic camera).
    - When an objects isn't scaled equally along each axis the strand thickness isn't changed in the same way for a dynamic and a static bvh. This can be fixed by applying any scaling to the object mesh.
    Last edited by BroadStu; 09-Feb-13 at 11:58.



  2. #2
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    1,762
    Here is a first test! (Already posted on the Cycles thread)
    2 minutes in CPU, 50 sample per pixels. 1000 strands + 50 children each. Awesome job man!




    More to come, and lot of questions too

    Btw, I noted it does "read" children amount from the "view" value, not render value. Any thoughts?
    Finished projects:
    #1 - Eames chaise lounge #2 - Those days... #3 - Chester Interior



  3. #3
    Member
    Join Date
    Apr 2011
    Location
    Manchester, UK
    Posts
    1,883
    That is amazing.
    Latest Project: BMW 1 Series
    Recently completed and finished project:
    Aston Martin / Beware Christine / M6



  4. #4
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    1,762
    The patch is indeed amazing. Can't wait to back home and test more. I'll try a chair and a character as soon as i get familiar with it.

    Question:
    - Any suggestion/examples on how to properly use strand node? Didn't play much with it, yet.
    - How do i set "tapering"?
    - How to increase strand/hair resolution? Particle segment value seems not affecting it (this is non patch related question)

    Thanks
    Finished projects:
    #1 - Eames chaise lounge #2 - Those days... #3 - Chester Interior



  5. #5
    Member
    Join Date
    Dec 2011
    Location
    Oxford
    Posts
    173
    @marcoG_ita: Great results! As for the child number I currently just export the data that's stored by blender internal. This was added quite recently. I initially just exported the main strand hair keys and interpolated a new path between these (as happens when export cache is disabled). I will look into the possibility of extending this to the child render number.



  6. #6
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    1,762
    Thanks! Nevermind render/view children if it does add complexity. It's a smaller "issue", viewport seems to handle well hairs, though, in the future would be cool to have view and render setting separately. Thanks again
    Finished projects:
    #1 - Eames chaise lounge #2 - Those days... #3 - Chester Interior



  7. #7
    Member
    Join Date
    Dec 2011
    Location
    Oxford
    Posts
    173
    - The strand shape sets the tapering of the strands (~1 gives an extreme tapering, -1 gives a perfect cylinder and 0 gives a linear decrease in radius along the strand). Unfortunately, these settings are applied to every particle system. I actually initially made them individual to the system but that created errors and I decided as a temporary fix to make them global properties for now.
    - The main use of the strand info node is to allow variation along the strand by using the intersection value to mix shaders or adjust colour. For example, this allows you to make the strands transparent at tips. It also enables you to set specific hair systems to use the tangent normal and actual normal values for the others. You could also calculate the dot product between this and the actual normal to give a way of adjusting the shader along the strand's width.
    - The resolution of the strands are adjusted by changing the `draw step' value under draw properties tab (that is closed by default). The segments are actually created between these points and this smooths the result. The segments setting was mainly used when I only exported the hairkeys and had to interpolate the strands path from these.
    Last edited by BroadStu; 09-Dec-12 at 07:51.



  8. #8
    Member PA3D's Avatar
    Join Date
    Oct 2012
    Location
    Montreal, Canada
    Posts
    195
    This looks awesome, will try and have a look as soon as I can, thanks for your work Broadstu!
    Paul-André

    If You got nothing good to say about someone, say nothing at all!



  9. #9
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    1,762
    Originally Posted by BroadStu View Post
    - The strand shape sets the tapering of the strands (~1 gives an extreme tapering, -1 gives a perfect cylinder and 0 gives a linear decrease in radius along the strand). Unfortunately, these settings are applied to every particle system. I actually initially made them individual to the system but that created errors and I decided as a temporary fix to make them global properties for now.
    - The main use of the strand info node is to allow variation along the strand by using the intersection value to mix shaders or adjust colour. For example, this allows you to make the strands transparent at tips. It also enables you to set specific hair systems to use the tangent normal and actual normal values for the others. You could also calculate the dot product between this and the actual normal to give a way of adjusting the shader along the strand's width.
    - The resolution of the strands are adjusted by changing the `draw step' value under draw properties tab (that is closed by default). The segments are actually created between these points and this smooths the result. The segments setting was mainly used when I only exported the hairkeys and had to interpolate the strands path from these.
    Many thanks, time to test now

    Regards
    Finished projects:
    #1 - Eames chaise lounge #2 - Those days... #3 - Chester Interior



  10. #10
    Member Bao2's Avatar
    Join Date
    Aug 2009
    Location
    Galicia - Spain
    Posts
    4,832
    Awesome work. 4507 lines of awesomeness.
    >>> Neytiri WIP <<<
    When explanations are complex you know there is no Truth on it.
    Tangled Fan Art



  11. #11
    Member
    Join Date
    Sep 2004
    Location
    Milan
    Posts
    1,225
    It seems that there is an issue with rendering(not the viewport rendering,but the tile render)it appears a circle pattern(several circles nested on the screen from the center of the image) on top of the rendering,mainly when the strands are small and you are far away from them.
    The viewport rendering seems not having this problem.
    Anyway,great stuff!



  12. #12
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    1,762
    This + the power of Nodes = total awesomeness

    I can't get where to plug Strand Info node though.



    Finished projects:
    #1 - Eames chaise lounge #2 - Those days... #3 - Chester Interior



  13. #13
    Wow! This is absolutely beautiful and powerful!
    Awesome job!



  14. #14
    Member
    Join Date
    Mar 2008
    Location
    ITALY
    Posts
    46
    Originally Posted by marcoG_ita View Post
    I can't get where to plug Strand Info node though.
    I think you can use as a factor for mixing something for example "Intercept" as factor for mixing 2 colors make tip color different than root color.



  15. #15
    Member
    Join Date
    Dec 2011
    Location
    Oxford
    Posts
    173
    @renderdemon - that's very interesting. More details would be very useful. Have you got an example image or .blend file? It would also be interesting to know if this happens for the `accurate' preset mode? and if it happens in the viewport when the bvh is changed to static? It could be related to an issue I fixed yesterday.



  16. #16
    Member
    Join Date
    Sep 2004
    Location
    Milan
    Posts
    1,225
    Originally Posted by BroadStu View Post
    @renderdemon - that's very interesting. More details would be very useful. Have you got an example image or .blend file? It would also be interesting to know if this happens for the `accurate' preset mode? and if it happens in the viewport when the bvh is changed to static? It could be related to an issue I fixed yesterday.
    Hi BroadStu,it happens also with the accurate preset,and also with static bvh,from the center of the image they appear concentric circles,but if you go near the hair they render fine(I'm testing short hair to act like fur)
    Anyway,I understand you need more information so I'll try to do a simple scene to explain better.



  17. #17
    Member Jonathan L's Avatar
    Join Date
    Aug 2011
    Location
    Seattle, Washington
    Posts
    1,675
    Looking good, keep up the good work!

    Just a simple test with anisotropic shading:
    Check out my portfolio and tutorials, or follow me on Twitter.



  18. #18
    Member
    Join Date
    Mar 2012
    Location
    Italy
    Posts
    1,762
    1 minute and 30 sec, 10'000 hairs + 5 children each. Is addictive

    @Monster3D - Yes indeed, i had to plug a multiply math to get the effect, that's why i didn't see differencies before, now works. Thanks



    15'000 hairs + 7 children, also thinner hair

    Last edited by marcoG_ita; 09-Dec-12 at 11:11.
    Finished projects:
    #1 - Eames chaise lounge #2 - Those days... #3 - Chester Interior



  19. #19
    great stuff! especially the last post.

    I hope this speeds things up for brecht when it comes to it.
    MY BLENDER SKETCHBOOK (updated 1st september)
    Computer Specs WIN7 / I7 3930 / 32gb Ram / Gtx 560 TI 2GB



  20. #20
    Member PA3D's Avatar
    Join Date
    Oct 2012
    Location
    Montreal, Canada
    Posts
    195
    Question here, do I install the patch from the scripting interface with a line like this one?

    patch -p0 < d:\Cycles_Hair(8-12-2012)[52815].patch

    Because if so, I am getting errors running it!

    Thanks for any assistance!

    EDIT: I meant the command line with the patch util installed
    Last edited by PA3D; 09-Dec-12 at 12:18.
    Paul-André

    If You got nothing good to say about someone, say nothing at all!



Page 1 of 95 123 11 51 ... LastLast

Posting Permissions

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