"Rolling world effect" with camera shader, is it possible?

Hi,

The title pretty much says it all. I’m trying to accomplish a rolling world effect in my game, is it possible with just a camera shader in theory? Or does it have to be a shader applied to all meshes in my scene?

At the time I got very little knowledge about shaderscripting, but I’m trying to learn by doing some tutorials and tweaking the “image effects” in Unity. All help is appreciated:)

Thanks.

I don’t know what a camera shader is and I’m not sure what a “rolling world effect” is. If it is the visual deformation of a flat world to convey the impression of moving on a very small planet then a vertex shader applied to all meshes might do it but that solution might come with some problems (e.g. ray casting doesn’t work that well any more).

I don’t see how to do this effect with a camera script or an image effect.

Thank you, and sorry for my bad explanation.

I’m trying to achieve the same effect as the game above (which is also made with Unity).
Thanks again.

This’d have to be applied to all meshes in your scene. Otherwise you’d get pretty horrible results trying to smush the screen image into a similar shape.

Yes its possible with an image effect. But there may be distortions here and there.
Thing is, coding your game and preparing your assets according to a spherical environment (in that example game, its a continuous road with a slope i guess) is much easier in the long run and gives you more control on which objects are visible to the camera…etc

Right, thank you all.
My road will be neverending aswell, but also contain some curves and 90 degrees turns so developing it in a flat enviorment, and just add that little “roll” effect as a renderingtrick would be a huge timesaver (I think) :slight_smile:

Not really, because at the end, you will have to model your objects in a way to hide the distortion made by the image effect itself.

As aubergine pointed out, using an image effect will result in visible rendering artifacts (e.g. disocclusions) which you then probably have difficulties to fix. (When I wrote “I don’t see how to do this effect with a camera script or an image effect.” I meant that I don’t see a reasonable way how to do it. :wink: )

Ok, I´ve retired the whole image effect plan. Got a vertex shader on each object related to the enviorment in my scene, and it seems to bend quite nice.
Will do some more testing.

Got alot to learn about shaders :o)
Thanks for your time!