Author Topic: Normal map error with normals  (Read 21320 times)

2013-10-14, 23:09:45

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
I think this may actually be a bug, I'll attach the file that did the tests for investigation.





https://dl.dropboxusercontent.com/u/2067306/corona_report/bug_normal%20map.zip

2013-10-14, 23:18:43
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
What is the problem? The faceting on the terminator line?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2013-10-14, 23:29:47
Reply #2

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
Yes, when I use "normal map" the shadow is faceted, as if not smoothed the surfaces.

This is the correct result.


2013-10-15, 03:49:22
Reply #3

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
I tried to put the gamma at 2.2, the render is not correct but the error did not show up, is not it something with the color space?


2013-10-15, 09:26:28
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12809
  • Marcin
    • View Profile
I tried to put the gamma at 2.2, the render is not correct but the error did not show up, is not it something with the color space?

You changed gamma where?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2013-10-15, 10:11:03
Reply #5

lacilaci

  • Active Users
  • **
  • Posts: 749
    • View Profile
you get rid of the terminator effect by increasing subdivisions on your model... But I don't get how gamma could affect this (maybe hiding the effect in dark areas :D).

2013-10-15, 16:01:43
Reply #6

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
maru: Using "Color Correction", as you turn to advanced mode and will have the option to change the gamma.
About my previous comment, I confuse, in realy I made ​​a de-gamma, as the texture is 8bit she is not linear, this gamma 2.2 was embedded. The Normal map shader of Corona asks for it not be done, as I said the render is wrong but the problem disappears, which made ​​me think that may be associated with the color space.

lacilaci: I have not changed the subdivisions of the model, when we use normal map subdivisions should not interfere with the final result, remember that it is used also in low poly models. And the gamma is directly connected to the correct result of the normal map, when working with 3ds max linearized you need to make a de-gamma in texture of normal map for it to work properly.

I even tried to use a texture linearized but had no effect,  I prefer no more try guessing the problem, kkkkkkkkkkkk

2013-10-15, 16:12:09
Reply #7

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
hmm... can you render me the "normal difference" pass for both cases?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)


2013-10-15, 17:53:11
Reply #9

lacilaci

  • Active Users
  • **
  • Posts: 749
    • View Profile
so no matter what ammount of subdivisions you use it shows the terminator effect?

This is what i've got..

what build do you use?

2013-10-15, 18:19:36
Reply #10

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
lacilaci, what happens is that when you increase the subdivision the error starts to become imperceptible, because it happens on the faces of the object, as the smaller the face unless the error will appear.
But if you have to increase subdivision of the object to be certain it no longer makes sense to use normal map, in which case you use a displacement.

By the way, I'm not using any build

2013-10-15, 18:46:54
Reply #11

lacilaci

  • Active Users
  • **
  • Posts: 749
    • View Profile
Oh, i get it... You are actually trying to get rid of shadow terminator using normal map, right?

2013-10-16, 00:06:18
Reply #12

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
Keymaster: Sorry I forgot the render pass you asked, I did all passes of normals and the "normal geometry" realizes the "faceted"

normalsDiscrepancy


normalsDotProduct


normalsShading


normalsGeometry

2013-10-16, 00:12:04
Reply #13

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
ok, everything looks normal. I'll take a look once I get it working again
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2013-10-16, 00:23:23
Reply #14

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
ok, I stopped making assumptions, kkkkkkkkkkkk :P

2013-10-16, 23:31:18
Reply #15

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile
Good evining


Hello tiagodmed

This is the effect you wanted?
a softer shadow?


Greats
Raf

2013-10-16, 23:36:45
Reply #16

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile
lacilaci, what happens is that when you increase the subdivision the error starts to become imperceptible, because it happens on the faces of the object, as the smaller the face unless the error will appear.
But if you have to increase subdivision of the object to be certain it no longer makes sense to use normal map, in which case you use a displacement.

By the way, I'm not using any build

you can post an example?

Thanks
Raf

2013-10-16, 23:48:05
Reply #17

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
In real I've posted on the first page, but to pinpoint the error, here is wrong and right.


2013-10-16, 23:51:06
Reply #18

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile

2013-10-16, 23:53:44
Reply #19

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile
How come you use a teapot with segments 5 - 10?

is there a reason?

2013-10-17, 00:15:26
Reply #20

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile
There are other methods for dividing the surface of 5 segments
Editable poly/subbdivision surface

The aliasing effect disappears unlike Meshsmooth and TurboSmooth

2013-10-17, 09:31:53
Reply #21

lacilaci

  • Active Users
  • **
  • Posts: 749
    • View Profile

2013-10-17, 17:47:29
Reply #22

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
Normal mapping cannot fix shadow terminator effect. Or can it??? http://blog.irayrender.com/post/29042276644/shadow-acne-and-the-shadow-terminator

Damn it, that was what I feared!

And at the end he says exactly what I mentioned, if you have to increase subdivision to minimize the problem is better now to use displacement.

2013-10-19, 08:16:59
Reply #23

Vanya

  • Active Users
  • **
  • Posts: 21
    • View Profile
Hi friends, today something that did not work, the problem of map in the map itself.

« Last Edit: 2013-10-19, 09:01:29 by Vanya »

2013-10-19, 09:37:29
Reply #24

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile
Hello Vanya

3dsmax .. version?

2013-10-19, 09:41:51
Reply #25

rafpug

  • Active Users
  • **
  • Posts: 722
    • View Profile
Normal mapping cannot fix shadow terminator effect. Or can it??? http://blog.irayrender.com/post/29042276644/shadow-acne-and-the-shadow-terminator

Damn it, that was what I feared!

And at the end he says exactly what I mentioned, if you have to increase subdivision to minimize the problem is better now to use displacement.

ahahah tiagodmed...you are strong!

2013-10-19, 11:51:27
Reply #26

Vanya

  • Active Users
  • **
  • Posts: 21
    • View Profile
Hello Vanya

3dsmax .. version?

3dsMax 2012 Design

I have a question off topic, the Corona does BAD work on dual processors ??
« Last Edit: 2013-10-19, 11:55:59 by Vanya »

2013-10-19, 19:02:52
Reply #27

tiagodmed

  • Active Users
  • **
  • Posts: 44
    • View Profile
Hi friends, today something that did not work, the problem of map in the map itself.



I don't understand what you did, it seems like you tried to put a normal map shader within the normal map shader, was that?
I can not imagine a reason to do so, does not make sense, within the normal map shader you must put a bitmap normal map, or substance shader from normal map.

2013-10-21, 08:06:18
Reply #28

Vanya

  • Active Users
  • **
  • Posts: 21
    • View Profile

I don't understand what you did, it seems like you tried to put a normal map shader within the normal map shader, was that?
I can not imagine a reason to do so, does not make sense, within the normal map shader you must put a bitmap normal map, or substance shader from normal map.

Yes, the first time I accidentally put the "normal map" into the "normal map" //
But I know what and where to insert ;)
This is not normal ! in 'mentalray' 'vray' 'and in all other rendering programs' you can insert the "normal map" in a "normal map" many many time, as you may have noticed, then this card is broken.

2013-12-19, 23:44:01
Reply #29

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
I took a look at the original problem, and it is just the standard terminator issue, because the bump map actually has small details on it. You need to just increase subdivisions of the geometry
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-09-06, 00:21:45
Reply #30

kumodot

  • Active Users
  • **
  • Posts: 315
  • Corona ADDICTED and Evangelist
    • View Profile
    • Kumodot


   Corona 1.2.1 and Max 2016, corona is just ignoring any "Render Iters" on Turbosmooth modifier. It only render correctly if i put Viewport Iters High.(But this is heavy to work this way. :(
     
Your Portuguese is worse than my english.
--------------------------------------------
3DGeneralist/Vfx Supervisor