Jump to content

depth map only has 1 bit color depth


jhadenfeldt
 Share

Recommended Posts

I am having a hard time getting a depth map to work within my project. I understand that the depth map should be a grey scale image with the elements closer to the camera being colored darker.

In my project though, I only get a 1 bit image (the plane on the left has the depthMap as a diffuseTexture). I tried my depth map code on the playground and I get the desired outcome, but I can't port my whole project to the playground. 

Does anyone know what could cause this issue?

 

depthMap.PNG

Link to comment
Share on other sites

We always welcome added explanations to the documentation including any example playgrounds that help clarify the issue. All documentation PRs are reviewed and help and advice given, if needed, to produce a successful submission. If you have not done so have a read through this post 

One missing point - after

Quote

To get all the tools used by the site, just execute the following command line: "npm install" (just do it once)

You need to do

npm install -g grunt-cli

Any problems let us know.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...