GPUOpen-LibrariesAndSDKs / RadeonProRender-Baikal

MIT License
335 stars 78 forks source link

I can not render with Orthographic Camera when i specify it with arguments #133

Closed lumx closed 6 years ago

lumx commented 6 years ago

I started trying different camera types and it seems that Orthographic camera is not working. I just get a grey wall that is the default material in Cornell Box image

yozhijk commented 6 years ago

Hi @lumx ,

It is correct behavior for an ortho camera with its default settings. Note, that it is using parallel projection and your image plane is very small by default in world space (like 36x24mm), so it only projects a small piece of the back wall. If you make an image plane larger in world space, like for example 4m, the whole Cornell Box is going to fit in there. Below is an image with with image plane size = 4m and ortho camera (BaikalStandalone64 -ssx 4 -ct orthographic)

image

lumx commented 6 years ago

@yozhijk Thank you for you quick reply. After going through the code in more detail I saw what I missed