Skip to content

MeshCubeMaterial - cube backgrounds with Blur, HDR Encoding, CubeUV, and ToneMapping support#9163

Closed
bhouston wants to merge 9 commits intomrdoob:devfrom
bhouston:cubeMaterial
Closed

MeshCubeMaterial - cube backgrounds with Blur, HDR Encoding, CubeUV, and ToneMapping support#9163
bhouston wants to merge 9 commits intomrdoob:devfrom
bhouston:cubeMaterial

Conversation

@bhouston
Copy link
Copy Markdown
Contributor

Just a quick experiment to promote the cube shader to a full material.

This allows one to blur the background, and use an HDR coded material and also match its tone mapping to the rest of the scene.

As I am unsure if this is desired, I have not updated all uses of the "cube" shader to the MeshCubeMaterial.

The results look like this - you can adjust the roughness (blur) of the background or its intensity and opacity, and switch between an LDR or HDR cubemap:

image

(This is an expansion of this other PR: #9158 )

@bhouston
Copy link
Copy Markdown
Contributor Author

Demo link: http://threejsworker.com/api/pullrequests/9163/examples/webgl_postprocessing_backgrounds.html

These types of blurred backgrounds are what Marmoset Toolbag uses. I find them effective in showcases.

@bhouston
Copy link
Copy Markdown
Contributor Author

@mrdoob, thus new MeshCubeMateiral would be a great upgrade for scene.backgroundBoxMesh.material. The blurry backgrounds would work similarly in that case as with the CubeTexturePass effect. :)

@bhouston bhouston changed the title MeshCubeMaterial - cube backgrounds with Encoding, CubeUV, and ToneMapping support MeshCubeMaterial - cube backgrounds with Blur, HDR Encoding, CubeUV, and ToneMapping support Jun 17, 2016
@mrdoob
Copy link
Copy Markdown
Owner

mrdoob commented Jun 17, 2016

This whole squash PRs approach create conflicts easily. Do you mind solving the conflicts on this PR?

@bhouston
Copy link
Copy Markdown
Contributor Author

done. :)

@bhouston
Copy link
Copy Markdown
Contributor Author

never mind, I didn't update this one.

This PR breaks all uses of Cube shader. If you want it I will have to update a lot of things. I was holding off on that until I knew you wanted this. I'll try to make all those updates over the next few days.

@bhouston
Copy link
Copy Markdown
Contributor Author

This is stale and replaced with with this new PR attempt: #16900

@bhouston bhouston closed this Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants