Results 1 to 12 of 12
  1. #1

    [SOLVED] matcap in cycles with nodes

    I'm currently somehow trying to use a matcap image as a material input for cycles. measing, that I want to have the glsl shading available in cycles rendered mode.

    therefore I'm using the matcap imagetexture as color input for a diffuse material and then trying out different vector inputs for the texture node. I also tried messing with vector math node, but I'm very rusty in vector math
    http://i.imgur.com/9nneiYA.jpg

    so, is there actually a way to use matcaps as material or color input for cycles? there must be some way to actually get the right input to map the image to an object.
    with some combinations of vector inputs, I managed to get some sort of projection, but it's always viewport based and the image repeats itself. it doesnt really consider the normals of the object.

    if you want to try yourself, and are very familiar with the vector nodes and everything, you can download matcap images from here: http://bensimonds.com/2010/07/30/matcap-generator/

    using matcaps as materials for rendering might be a way to speed up render times...
    Last edited by RealLifePudding; 13-Aug-13 at 07:50.



  2. #2
    Cycles does not support screen space normal input :-(



  3. #3
    Member Stan Pancakes's Avatar
    Join Date
    Oct 2012
    Location
    Russia
    Posts
    1,271
    Despide the fact that the need for such a material eludes me, here's what I would do:

    Click image for larger version. 

Name:	Screenshot from 2013-08-12 15:36:35.png 
Views:	797 
Size:	788.7 KB 
ID:	252582

    Basically the main thing is that texture is sampled using Reflection texture coordinates, all the rest is just fuss, like mixing in some glossy.



  4. #4
    well, it would be a good way to fake none-mirror-like reflections and all sorts of things. in a matcap there is kind of a lot of information stored, which could help to speed up render times if you dont need 100% perfectly calculated scenes.

    I found this: http://blender.stackexchange.com/que...ader/2051#2051
    works very good. still not really perfect, because it's kind of a workaround, but cool

    but still thanks for the replies



  5. #5
    Wait 2.69 :-)
    Name:  NORMALS.JPG
Views: 3562
Size:  24.7 KB



  6. #6
    Originally Posted by ceba View Post
    Wait 2.69 :-)
    Name:  NORMALS.JPG
Views: 3562
Size:  24.7 KB
    This didnt really give me the matcap effect:Click image for larger version. 

Name:	IS.png 
Views:	253 
Size:	322.0 KB 
ID:	282094

    Desire effect would look more look this:
    Name:  Should_be.png
Views: 3491
Size:  101.0 KB

    Is there something I'm missing?



  7. #7
    Nodes may have changed a bit since this but take a look I can update it later.
    Last edited by DruBan; 11-Jan-14 at 19:44.
    Dru (SFO)



  8. #8
    Okay checked this still works for me...

    Click image for larger version. 

Name:	matcapmapping1.jpg 
Views:	480 
Size:	166.9 KB 
ID:	282312
    Dru (SFO)



  9. #9

    happiness

    Success! Its a handy effect, faking shine and lighting is good for speeding up rendering.

    Click image for larger version. 

Name:	matcap_fix.png 
Views:	1002 
Size:	402.6 KB 
ID:	282421



  10. #10
    Glad it worked out for you. Yes, a handy effect. Also for dust, rust and fading on the upper surfaces of objects, and don't forget to try it for a very unique bump mapping method. An image texture is a very fast alternative to procedurals as well. This mapping method avoids repetition very well although it does break things up so not always appropriate.
    Dru (SFO)



  11. #11
    Member
    Join Date
    Mar 2012
    Location
    Salvador-Bahia-Brazil
    Posts
    52
    The problem is that it seams not to work over linked groups.
    I think its related to Object coords in Vector transform node.

    It's a shame, for this is realy nice to simulate fake highlight in characters eyes.



  12. #12
    Does anybody know, how to get the usable normals without matcap image?
    When i connect the vector mapping directly to color (skipping the texture node)
    i get somewhat close result, but it's not suitable for use as a normal map.
    I'd just prefer to use, what is naturally available.
    Click image for larger version. 

Name:	Screenshot.png 
Views:	404 
Size:	198.8 KB 
ID:	293452



Posting Permissions

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