lospec / lospec-blender-toolkit

31 stars 2 forks source link

Pixel perfect sprites on output render #7

Open lospec opened 2 years ago

lospec commented 2 years ago

I'm not sure this is even possible, but I want to find a way to make it so you can render a sprite in the viewport, and it's perfectly 1x in the render, without being scaled, no matter what your viewport size is or how far it is from the camera.

Perhaps theres a way to get info about the render settings into geometry nodes and it can calculate that along with the depth to scale it to an amount where it would be the perfect size.

Would of course also have to be combined with the billboard tool to make sure they aren't rotated.

This would be awesome for old school effects where they made things look 3d with just sprites (from games like ballz, vectorman), as well particle effects or small distant sprites which would just get scrambled by scaling.

lorenzogatti commented 2 years ago

In general, the camera and the viewports are unrelated. The appropriate way to match rendering (through a camera object) and preview (through one of the viewports) should be to set the viewport to match a camera https://docs.blender.org/manual/en/latest/editors/3dview/navigate/camera_view.html and then adjust the camera.

Not to be confused with "viewport rendering"

https://docs.blender.org/manual/en/latest/editors/3dview/viewport_render.html

that does the opposite: rendering pretending the camera matches a certain viewport.