Jump to content

Recommended Posts

Posted

There seems to be a bug with the hdri to pbr script. Whenever I attempt to create a skybox with script, the materials turn into red lines. I've attempted with multiple files and received the same result. I've attached two of the files I've attempted as well as a screenshot of the suspected bug. 

Bugreport.rar

  • Thanks 1
  • Sweetgebus changed the title to Leadwerks 0.9.9 HDRI to PBR bug
Posted

Looks like it's probably some problem converting the floating point format to BC6H. You can see the data through the noise, it's just producing the wrong values.

I will find the cause.

image.thumb.png.04ec6886c9574f9d191aa462b1d24dad.png

  • Like 2

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

There is no problem with my own pixel format conversions.

The problem lies in the third-party panorama to cubemap utility I used. For some reason it has trouble loading this image. I don't know why, because I think I have used this exact image in the past.

I am going to replace this tool with my own reprojection code. It won't be hard.

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Solution
Posted

Okay, I got this worked out. The problem was simply the number of bytes per pixel for that format were not being set correctly in my integrated FreeImage EXR loader.

I plan to replace the external HDRI to cube tool, but for now I will just upload the simple fix since it is working right now.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

×
×
  • Create New...