vkoskiv / c-ray

c-ray is a small, simple path tracer written in C
MIT License
797 stars 44 forks source link

The rendered image is not sharp as that in c-ray readme #107

Closed zinwalin closed 2 years ago

zinwalin commented 2 years ago

image

image

This is rendered output on M1 MacBook Pro, you may notice it is not as sharp as your demo in readme.

To make it sharper, what should I do? Appreciated.

BTW, I disabled SDL2 when compiling, does that influence the result?

image

zinwalin commented 2 years ago

For easier comparision, I uploaded zipped image here.

rendered_0000.png.zip

vkoskiv commented 2 years ago

The default resolution for that scene is set in the json file at 1280x800, so half that in the README example. You can adjust it by directly editing the json, or by using the -d command line flag to override it. You can see how to use it by running bin/c-ray -h

zinwalin commented 2 years ago

The default resolution for that scene is set in the json file at 1280x800, so half that in the README example. You can adjust it by directly editing the json, or by using the -d command line flag to override it. You can see how to use it by running bin/c-ray -h

Hi vkoskiv, thanks a lot, it helps. When I set higher resolution, let say, 5120x3200. on M1 MacBook Pro, the CPU usage reaches 100%, I have a 3060 TI GPU on PC(Windows/Ubuntu), is c-ray written with support of GPU acceleration. Appreciated.

vkoskiv commented 2 years ago

There is no planned GPU support at this time.

Glad you got it working!