Hi there,
How can I get an orthographic top view onto an SDF? The setup below doesn’t seem to work:
![Capture](//discourse.vvvv.org/uploads/default/original/2X/1/19d864457bf4303d0f553a9e9b17ea2add90b2a7.png)
The scene window gives me an output with perspective distortion:
![Capture](//discourse.vvvv.org/uploads/default/original/2X/b/ba593228aef3e6f6bf124d7c7a38957d20004bef.png)
Can it be that raymarching and ortho view doesn’t go along well? Same setup with meshes works fine. Is there something I have missed?
thanks a lot!
Fuse raymarching does not yet seem to support orthographic projection.
I think I can temporarily solve this by adding the following to the setupRay
function in FuseRayMarchBase.sdsl
in the Fuse library.
if (Projection[2].w == 0.0)
{
rd = -normalize(ViewInverse[2].xyz);
ro = mul(float4(mul(float4((uv.xy*2-1)*float2(1,-1),0,1),ProjectionInverse).xy,0,1),ViewInverse).xyz;
}