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

fix(opengl) #989 #999 Fix transform, rotate and distort #1002

Merged
merged 1 commit into from May 18, 2018

Conversation

Julusian
Copy link
Member

@Julusian Julusian commented May 18, 2018

Fixes #989 & fixes #999

The key issue was no offset being passed in for the texture buffer data, so it was using the same coordinates as the vertex.

I have tested each of FILL, ROTATE and DISTORT individually and combined and in my testing they now behave the same as 2.1


for (int i = 0; i < coords.size(); i += 3) {
for (int i = 0; i < coords_triangles.size(); i += 3) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quads or triangles?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frame_geometry is back to defining quads, as it makes the transform maths simpler as that is what it is already expecting.
but opengl doesnt support drawing quads anymore, so I am converting the quads to triangles after any transforms are calculated

@ronag
Copy link
Member

ronag commented May 18, 2018

LGTM

@ronag ronag merged commit 89ff914 into CasparCG:master May 18, 2018
@Julusian Julusian deleted the 989-broken-transforms branch June 15, 2018 10:01
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

Successfully merging this pull request may close these issues.

Distort not working correctly since #966 fill works as crop
2 participants