Page 3 of 3 FirstFirst 123
Results 41 to 52 of 52
  1. #41
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,663
    I suspect you are saving the file with color transformations... Try changing the Render settings in the Color Management panel to 'NonColour Data' or 'Linear Raw', and save the file again.

    In my version of this node setup, if I plug the output of a NormalMap node (and a normal texture), into the node input, the difference between the normal texture and the node output is almost none.. Ideally it would be 0, but after three transforms, near 0 is good enough.

    Are you sure ? Then why is there a World Space option in the node ?
    Those options are for different encodings of normal maps. In the game industry, tangent maps are very common because they are small. But in CG industry you have more formats around..
    Anyway, the Normal Map node will not convert a world space vector into a tangent vector.
    Last edited by Secrop; 22-Feb-17 at 13:59.



  2. #42
    Member ChameleonScales's Avatar
    Join Date
    Jul 2015
    Location
    Rambaud, 05000, France
    Posts
    459
    ( ゜〇 ゜)


    I left the mix node facs to 0.5 in the nodegroup...
    The normals match perfectly now (not the colors but what matters is the normals and they didn't match previously... Now they do... This is awesome... You rock !)

    I think it would be best to provide a blend file containing your node group in the original post to ensure nobody makes stupid mistakes and adds useless posts like me.
    Last edited by ChameleonScales; 22-Feb-17 at 16:38.



  3. #43
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,663
    Originally Posted by ChameleonScales View Post
    [...](not the colors but what matters is the normals and they didn't match previously...)[...]
    the socket's color in the in/output groups is a bit funny to trick... create the socket with a node that outputs the type of socket you want to have, then plug the input you want.

    Originally Posted by ChameleonScales View Post
    I think it would be best to provide a blend file containing your node group in the original post to ensure nobody makes stupid mistakes and adds useless posts like me.
    I have it as a python node, just waiting for some court decisions to be able to share it, as long with some other nodes... but I think there's someone who posted this in blendswap(?!)



  4. #44
    Are you sure that math is correct? I was reading this on unity manual:
    In addition, the values in the texture are treated as having been halved, with 0.5 added.
    I tried both 0.5 and 1 and unity still somehow change colors when setting tif texture type to normal map.

    edit: Adding 1 is making it worse.. With your values i'm getting (0.5,0.5,1) color on flat surface, it should be (0.216,0.216,1) on flat?
    Last edited by Harrier; 04-Mar-17 at 08:23.



  5. #45
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,663
    Originally Posted by Harrier View Post
    edit: Adding 1 is making it worse.. With your values i'm getting (0.5,0.5,1) color on flat surface, it should be (0.216,0.216,1) on flat?
    There should be no color transformation in normal maps!!!!!
    In a normal map, a pixel represents a Vector, not a color! Applying any color space to a normal map makes no sense! And yes, a flat surface must be (0.5,0.5,1).



  6. #46
    Originally Posted by Secrop View Post
    There should be no color transformation in normal maps!!!!!
    In a normal map, a pixel represents a Vector, not a color! Applying any color space to a normal map makes no sense! And yes, a flat surface must be (0.5,0.5,1).
    I'm getting confused, colors i picked in gimp are different than colors i'm getting in UV/image editor.
    In UV editor normal baked flat is (0.502,0.502,1) and output from your node on flat surface is (0.647,0.647,1).
    Here is file i made to get these values.
    Can check if i'm doing something wrong? Thanks
    edit: resolved by PM, had wrong fac values and image should be in linear color space
    Last edited by Harrier; 06-Mar-17 at 04:02.



  7. #47
    for those of you who would like to have this node work without need of cycles renderer and be able to work with this in material mode. There is actually a way. The problematic "Tangent" node works only in cycles renderer but it can to be baked to separate image. (values of this node are from -1 to 1 range so you need to add 1 and divide by 2). This then can be plugged into secrop node group in the place of Tangent node. (ofc you need to change back range of values 0 to 1 , to -1 to 1).

    any rotation of your uv islands will require to rebake tangent node but thats not a problem since baking is matter of one second.



  8. #48
    Connect the normal to color, and bake it, but I don't know if the gamma affects the data
    Last edited by wikifry; 19-Mar-17 at 19:47.



  9. #49
    I(and you as serindipia) confirmed the gamma affects if you bake it as colors.

    Put the textures as color data.



  10. #50
    Bake nodes(only color)
    Click image for larger version. 

Name:	bake.png 
Views:	11 
Size:	245.3 KB 
ID:	476843

    extract data

    Click image for larger version. 

Name:	debake.png 
Views:	15 
Size:	246.9 KB 
ID:	476844

    please use color data, you are baking it as color, it works for me



  11. #51
    her is the example, I baked the normals using linear space, but gamma is required, rare issue. Change between the procedural output and the debake output, looks like the same

    https://drive.google.com/open?id=0B0...1RLajdVRHJLbnc



  12. #52
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    1,663
    @wikifry, I don't really understand what's going on in that file of yours... and probably you're not understanding the purpose of the nodegroup posted on this thread (you don't even have that nodegroup in your .blend, so I don't know what you're really trying to do, or talking about).

    here's your file, edited to a point that you only need to bake the emission color to an image file with color space set to linear (the image, not the render, or the display). You need to create an empty image to store the bake, but you can read the manual on how to bake.

    http://pasteall.org/blend/index.php?id=45997

    I had to reset your exposure and gamma values. They are not supposed to be changed for this nodegroup to work, since exposure and gamma mean nothing to vectors.

    The result now looks as expected.



Page 3 of 3 FirstFirst 123

Posting Permissions

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