Raytraced far from origin ++

Something more for you to iron out:

Raytracing far from origin isn’t behaving correctly.

Close to origin it works fine.
But noise reduction causes a strange blur bannering for a while before it starts working. Once the first noicecanselling is done the rest of the rendering updates nicely.

Manipulating the view is very slow since the startup resolution is too high and Rhino jumps in and out of Raytraced and rendered mode, showing that I zoom in in Rendered, then switching back to raytraced that isn’t zoomed in yet and then zoom that in, so manipulating the view is very trippy.

And clicking on options while a view is in raytraced mode makes everything slow. So right now raytraced mode is still a “fun” display mode that isn’t suitable for using while working. Raytraced should always work in the background and not affect foreground processes IMO. Moving an objects should be instantaneous in all other views and then raytraced should update whenever it can.

I am sad to say that there is issues here that does not make this feel like the third generation of a raytraced display mode, but rather like a partly integrated first iteration of the technology.

On my system when it has ran for a while when I manipulate a view it does not show frame 1, frame 1, frame 1, but rather wait to redraw until frame 4 is calculated. That makes it laggy. Then it waits for frame 40 to be completed. Kind of taking “realtime” out of “realtime rendering”…

If I alter the reflectivity of a material it takes six seconds before it updates…

My main focus would be:
1- Make Raytraced wait for manipulations of objects instead of forcing manipulation of objects to wait for raytraced.
2- Dynamically de-resolution when manipulating so we don’t need to rely on rendered mode, OR switch fully to rendered mode for manipulation until the stuff works.
3 - Fix the strange wait issue, manipulating a material is a pain right now.
3- Fix the view redraw issue so raytraced doesn’t toggle back on until it has figured out what the last camera position from “rendered mode fast display toggle” was. This will fix the trippy zoom-in-out issue.

32GB ram, i7 processor, 56 meshes in file, no bad objects.
Rendering on 4070 ti.

Thanks for the detailed report.

  1. Could you send me the model please.
    2." If I alter the reflectivity of a material it takes six seconds before it updates" Could you explain this more.

Thanks.
-Lars

Never has been, still f32 precision only, not f64

Just swap to raytraced for Perspective view and open the material for the main “red” color and drag the slider for reflectivity. Tried now on my home computer and it worked much faster here, no large lag.

I sent you the file, but first I sent the wrong building, so now you have two files far from origin to play with :smiley:

@Holo I received the model. Thank you. I was not able to reproduce the lag here. If you get a chance could you try it on your work computer again?

Strange stuff, the 6 second lag has disappeared. Maybe it was because Rhino 9 was just updated and needed a restart.

Do you think it would be possible to stream the raytracing feed in the background to the view port so manipulating (moving, scaling, drawing a new line etc) could be done in real time (high fps) while the raytraced image updates in it’s own pace (low fps)?

And have a powerful Downscaler for the initial frames so it calculates these fast.
If you have not seen this online raytracer then maybe it can give some inspiration:

Right now raytraced is mainly useful for

Glad the lag is gone.

Both are already how Raytraced is meant to work. It needs improving. I have logged it RH-98934. Thanks for the LGL link.

Your last sentence got cut off: “Right now raytraced is mainly useful for…”. What were you going to say?

-Lars

Right now raytraced is mainly useful for just testing the rendering… :slight_smile:

Since viewport manipulation is slow in the initial frames we can’t really use it for finetuning materials nor for setting up the view accurately on larger projects.

I like that in Rhino 9 it is possible to set the end resolution (even though it is in a clumsy way hidden in the settings)

I would love to see that the initial passes were restricted to a lower resolution so they were super snappy when we move or drag objects. AND that raytrace speed does NOT affect the redraw speed of the other viewports. If I draw a curve in topview then this should not be affected by perspective view calculating. Neither should perspective view if I draw a cruve there.

Does that make sense? Not having to turn Raytraced on and off, or set it to pause, all the time would make it much more usable.

Hei Jørgen -

Apparently, that part was fixed here: RH-98781 Rendering Cycles Viewport: Raytraced mode takes seconds to show a material change
-wim