question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any option to increase the maximum perceived roughness of the new PMREM generator?

See original GitHub issue

I’m using the following code along with the new PMREM generator: https://pastebin.com/pvkXtazH

To simply render a mesh with a single diffuse texture, by setting the roughness value to 1

The result is:

Annotazione 2020-01-29 034231

I’m not familiar with the inner workings of PMREM but the computed irradiance felt “shiny” so I tried to increase the sampling theta for the PMREM blur shader by multiplying it by 1.5:

float theta = dTheta * float(dir * i) * 1.5;

Now the end result is a lot similiar to the output I get on eevee on Blender (using the standard shader with only the roughness slider set to the maximum value):

test2

The question is: am I doing anything wrong in the code i shared on pastebin that would cause the perceived irradiance to look “shiny” ?

If not, is there any option I can pass to PMREM to increase the blurriness of the prefiltered map without having to change the base library?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
looeeecommented, Feb 1, 2020

Here’s the result of a render from Arnold. Using a Arnold Standard shader, all default settings except roughness = 1, metalness = 0.

I was unable to re-export the file from Blender, so I used Paint3D and exported an OBJ file. Normals did not make it through this process, so the ones here were calculated in Max, which might be why the folds look rather different in this render.

As @sciecode pointed out, it’s kind of hard to compare these renders since there is different tonemapping being used. In three.js it’s probably ACESFilmic, no idea in Blender, and in Max tonemapping is called “Exposure control”:

exp

I set this render to “no exposure control” and saved as a PNG with default gamma.

out

2reactions
Domenicobrzcommented, Jan 29, 2020

@WestLangley 1024 x 512

env.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

PMREMGenerator – three.js docs
This class generates a Prefiltered, Mipmapped Radiance Environment Map (PMREM) from a cubeMap environment texture. This allows different levels of blur to be ......
Read more >
What is Groundwater Vistas
There is no set limit on the size of any map. GV imports CAD files in DXF format, GIS shapefile format, or SURFER...
Read more >
High speed silicon wet anisotropic etching for applications in ...
Another method is to increase the etching temperature towards the boiling point of the etchant. The etching characteristics of pure potassium ...
Read more >
Piezosurgery: A Boon for Modern Periodontics - PMC - NCBI
Piezoelectric ultrasonic frequency is created by compelling an electric current from a generator over piezo-ceramic rings, which leads to their ...
Read more >
3D-printed fiber-based zeroth- and high-order Bessel beam ...
Next, we describe the results of this beam characterization separately for ZOBBs ... “Compact all-fiber Bessel beam generator based on hollow optical fiber ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found