Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A quick way to expose cube map images in jpeg format? #8

Open
PsycoTodd opened this issue Jan 5, 2018 · 3 comments
Open

A quick way to expose cube map images in jpeg format? #8

PsycoTodd opened this issue Jan 5, 2018 · 3 comments

Comments

@PsycoTodd
Copy link

Thank you for this awesome tool.

Notice that the current git contains a built exe which exports the images (BRDF, diffuse, specular) in dds compact format. However, Is there a way to expose them separately in jpg format? Or is there any tool you have in mind which can convert the generated dds to separated jpg format?

Thank you.

@derkreature
Copy link
Owner

You could write the MDR image to individual JPG images. You would need to write "RGB" to image 1 and the MDR scalar in "A" to image 2. Around line 721 of https://github.com/derkreature/IBLBaker/blob/master/src/IblApplication.cpp

There is a third argument that is currently false:
probe->diffuseCubeMapMDR()->save(diffuseMDRPath, true /* fix seams /, false / split to RGB MMM /);
probe->specularCubeMapMDR()->save(specularMDRPath, true /
fix seams /, false / split to RGB MMM */);

You will need to change the output filename extension to jpg, and set the third parameter to true and rebuild.

@PsycoTodd
Copy link
Author

I see, will try to rebuild the application on windows then. Thank you for replying.

Todd

@derkreature
Copy link
Owner

Did this work?

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

No branches or pull requests

2 participants