Blender-RCT-Graphics icon indicating copy to clipboard operation
Blender-RCT-Graphics copied to clipboard

Vehicles aren't centered on rendering

Open spacek531 opened this issue 2 years ago • 8 comments

The expectation is (0,0,0) corresponds with the center of the vehicle by default and a pixel Y offset won't be required. I currently have to offset by -16. to get the vehicle properly positioned.

Project file: busproject.zip

spacek531 avatar Mar 10 '23 07:03 spacek531

I believe there's already an additional offset that gets added when you enable vehicle rendering. Are you using the vehicle renderer?

oli414 avatar Mar 10 '23 09:03 oli414

yes

spacek531 avatar Mar 10 '23 09:03 spacek531

I pressed F12 and it's clear the camera isn't pointed at 0,0, so the issue is likely not the post processing: image

spacek531 avatar Mar 12 '23 00:03 spacek531

Nah this is a special process, centering the final render on the center would waste 1/3rd of the view in most cases. This is adjusted for later on in the final offsets (if that still works)

oli414 avatar Mar 12 '23 00:03 oli414

Rendering with the camera offset zeroed out yields the same offsets, so it's clearly taking that into account.

spacek531 avatar Mar 12 '23 01:03 spacek531

I have no idea what the root cause is but I can counteract it by setting the frame offset to (0, -16) in the operators.

spacek531 avatar Mar 12 '23 01:03 spacek531

To my knowledge vehicles still have a different base offset, just check it with a single pixel at 0,0,0 without using the add-on

oli414 avatar Mar 12 '23 01:03 oli414

Where is the base offset defined?

spacek531 avatar Mar 12 '23 02:03 spacek531