Results 1 to 20 of 20
  1. #1

    Adapting Pruster's Thin-Film Code

    Hey everyone! After a couple months of researching and trying to understand code, I was finally able to adapt Pruster's code for thin-films into a node group for GPU purposes.

    Here is the original thread: https://blenderartists.org/forum/sho...nce-and-metals

    Here is the blend file: https://www.dropbox.com/s/05eeeqv242...ary.blend?dl=0

    Here's an animation of a bubble I made with it as an example of how it looks:
    https://www.youtube.com/watch?v=o6Ho...ature=youtu.be

    Still frame:
    Click image for larger version. 

Name:	Bubble s.png 
Views:	16 
Size:	1.36 MB 
ID:	506894
    Last edited by JettG_G; 09-Dec-17 at 15:12.
    Come see my sketchbook! Click.



  2. #2
    Lovely, gonna play around with it and cross check the results! Terrible job to do, I'm happy you did it



  3. #3
    Despite some of the frustration, I had a lot of fun creating it! Oh, and I hope you enjoy the roughness setting I implemented into it. I figured, instead of having two separate outputs for roughnesses at opposite extremes, why not have the ability to interpolate between the two (even if not exactly accurate)?

    Edit: Oh, and being able to alter the fresnel in this way in combination with the microsurface roughness stuff found in this thread, I think it might produce some pretty cool stuff.
    Last edited by JettG_G; 30-Nov-17 at 23:32.
    Come see my sketchbook! Click.



  4. #4
    Congrats,i know how difficult it can be,to rebuild a code with cycles nodes.download now..



  5. #5
    Member
    Join Date
    Sep 2012
    Posts
    2,825
    What an amazing deed, wonderful world... great gift!
    TYVM... to all



  6. #6
    i have tryed a few short tests ,and have looked in your node groups.nice work with the nodes.more material presets would be nice to have.



  7. #7
    Ah yeah, I thought of making some material presets, but I was too lazy to do so. I'll see what I can do later.
    Come see my sketchbook! Click.



  8. #8
    I've tried your node and my OSL code for the space helmet, and the results seem to be virtually the same! Excellent! So how about we put the material presets in my .blend file of the OSL code as node materials in yours?

    Edit: one comment - maybe calling inputs T1 and T2 and outputs T1 and T2 isn't the best idea as they have very different meanings?
    Last edited by prutser; 03-Dec-17 at 16:31.



  9. #9
    Oh man, I hadn't even realized they were the same! Thanks for pointing that out. But yeah, I agree that using your material presets would be a nice solution. I'll hopefully get to doing that sometime this week (er, well, maybe this month).
    Come see my sketchbook! Click.



  10. #10
    I wouldn't mind doing that for you. I have a ten hour flight ahead of me



  11. #11
    You guys are great. Just sayin'
    Paul's Law: You can't fall off the floor.



  12. #12
    Originally Posted by prutser View Post
    I wouldn't mind doing that for you. I have a ten hour flight ahead of me
    That would be pretty awesome, thanks!
    Come see my sketchbook! Click.



  13. #13
    There, I think it's done. I believe your nodes are working great! I haven't seen any discrepancies and it's way faster on my machine than the OSL code. Thanks again! Btw, have you done benchmarking to see whether the single layer is faster without the nodes for the second layer? Or does Cycles optimize out nodes that aren't connected?

    Here's the file:

    https://www.dropbox.com/s/9mosop13vs...ary.blend?dl=0

    Cheers!

    Btw JettG_G: post a news item on blendernation, Bart included my work before and I think this is a significant update for more people to see!
    Last edited by prutser; 07-Dec-17 at 04:42.



  14. #14
    This node connects nowhere?

    Click image for larger version. 

Name:	complex power.png 
Views:	10 
Size:	212.7 KB 
ID:	507776



  15. #15
    Wow, great work, Pruster! I've updated the original post to include the new file. I was also actually able to find a way to not require users to always input a normal into the node group, and I went ahead and deleted any unnecessary geometry input nodes.

    I haven't done any real benchmark tests, but the single layer outputs do render faster than the double layer outputs. I guess it's safe to say that Cycles does optimize out the unconnected nodes.

    So I realize that for your code you put a CC BY-NC-SA 4.0 license, but allowed the output itself to be used for anything. I looked up the license requirements and because it is essentially a transformation of your code, that would also make the node group itself have the same license, correct?

    Oh, and I can try posting a news item there once I figure out the licensing stuff!
    Last edited by JettG_G; 07-Dec-17 at 21:18.
    Come see my sketchbook! Click.



  16. #16
    Originally Posted by greitibatai View Post
    This node connects nowhere?

    Click image for larger version. 

Name:	complex power.png 
Views:	10 
Size:	212.7 KB 
ID:	507776
    Woah, good eye! That's there so that if someone needed to, they could choose which solution they want to use. Complex powers of the form (a+ib)^(1/n) have n number of solutions to them. The file should be updated with the correction now.

    By the way, can someone check to see if the dropbox link allows them to download the file? I tried the link in incognito, but it requires me to login to be able to access it even though the settings say anyone with the link can view the file.
    Come see my sketchbook! Click.



  17. #17
    Member
    Join Date
    Nov 2013
    Location
    Local Coordinates 0,0,0
    Posts
    259
    Originally Posted by JettG_G View Post
    By the way, can someone check to see if the dropbox link allows them to download the file? I tried the link in incognito, but it requires me to login to be able to access it even though the settings say anyone with the link can view the file.
    Yes, the link works, even so dropbox want you to login after pressing the download button, but you can close it and press again, then it worked for me without login.

    Great work guys!



  18. #18
    Member YAFU's Avatar
    Join Date
    Mar 2013
    Posts
    3,017
    Thank you very much JettG_G and prutser!
    About thumbnail, you must delete old image from Attachments in your user settings, otherwise it will continue to appear.
    Regarding Dropbox, there is usually a floating window asking for login, but you can close that window and then download the file anyway. But your link in Firefox does not appear that floating window, only the main screen asking for login. You being in your dropbox account, in the file you want to share on the right there should be a "create link" button or something like this, and then another copy link button. That is the link that you must share here.
    Last edited by YAFU; 09-Dec-17 at 07:12.
    Be patient, English is not my language.



  19. #19
    I knew deleting the attachment from the post would remove it, but I never realized deleting it from my user settings would work! Thanks!

    Also, thanks for testing the link. On my computer, the link it gave me was the link it that it made after I clicked "create link", but for some reason it wasn't working as expected. Anyway, the new link is from the dropbox app, and I think it should be working properly now. Thanks, guys.
    Come see my sketchbook! Click.



  20. #20
    Originally Posted by JettG_G View Post
    So I realize that for your code you put a CC BY-NC-SA 4.0 license, but allowed the output itself to be used for anything. I looked up the license requirements and because it is essentially a transformation of your code, that would also make the node group itself have the same license, correct?
    You're welcome, and thank you for the improvements! With respect to the license... I guess? You know best whether it's a port or a independent implementation. I chose CC BY-NC-SA 4.0 to prevent anyone from making money from the code, but not from the images that can be produced with it.

    Cheers!



Posting Permissions

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