Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicles aren't centered on rendering #29

Open
spacek531 opened this issue Mar 10, 2023 · 8 comments
Open

Vehicles aren't centered on rendering #29

spacek531 opened this issue Mar 10, 2023 · 8 comments

Comments

@spacek531
Copy link
Contributor

spacek531 commented Mar 10, 2023

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

@oli414
Copy link
Owner

oli414 commented Mar 10, 2023

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

@spacek531
Copy link
Contributor Author

yes

@spacek531
Copy link
Contributor Author

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

@oli414
Copy link
Owner

oli414 commented Mar 12, 2023

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)

@spacek531
Copy link
Contributor Author

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

@spacek531
Copy link
Contributor Author

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.

@oli414
Copy link
Owner

oli414 commented Mar 12, 2023

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

@spacek531
Copy link
Contributor Author

Where is the base offset defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants