Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[core] Update RasterShader to support crossfading - #5372

Merged
brunoabinader merged 4 commits into
masterfrom
brunoabinader-raster-fade
Jul 2, 2016
Merged

brunoabinader merged 4 commits into
masterfrom
brunoabinader-raster-fade

Conversation

@brunoabinader

@brunoabinader brunoabinader commented Jun 16, 2016 •

Copy link
Copy Markdown
Contributor

So far this has been the trickiest pending task from mapbox/mapbox-gl-shaders#1. I'm afraid this will require help from someone with more GL expertise. I've started updating RasterShader according to the new shader code and am assuming that tile == parentTile for testing purposes.

Question: If u_buffer_scale is always 1 - why do we need to expose this as a uniform? I assume we want to eventually expose this as as data-driven style property?

Part of #115.

👀 @kkaefer @lucaswoj @ansis @jfirebaugh

@brunoabinader brunoabinader added feature GL JS parity For feature parity with Mapbox GL JS ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold Core The cross-platform C++ core, aka mbgl labels Jun 16, 2016
@brunoabinader
brunoabinader force-pushed the brunoabinader-raster-fade branch from 21ae382 to f714152 Compare June 19, 2016 16:42
@brunoabinader

Copy link
Copy Markdown
Contributor Author

Where/How can we populate the a_texture_pos array?

Solved by adding a new Buffer StaticRasterVertexBuffer and using GL_TRIANGLE_STRIP when drawing the arrays 🎉

@brunoabinader
brunoabinader force-pushed the brunoabinader-raster-fade branch 2 times, most recently from c8ff87c to b7048bc Compare June 19, 2016 17:53
@brunoabinader

brunoabinader commented Jun 19, 2016 •

Copy link
Copy Markdown
Contributor Author

Voilà:
screen shot 2016-06-19 at 8 55 10 pm

Missing: Use raster-fade-duration to provide transition between raster tiles - I'd prefer to implement that in a separate PR.

@brunoabinader brunoabinader added ✓ ready for review and removed ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Jun 19, 2016
@brunoabinader
brunoabinader force-pushed the brunoabinader-raster-fade branch 2 times, most recently from 272da62 to deb96ee Compare June 20, 2016 11:14
@brunoabinader
brunoabinader force-pushed the brunoabinader-raster-fade branch 2 times, most recently from abbacdf to 81f15bf Compare July 1, 2016 17:20
@brunoabinader brunoabinader added ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold and removed ✓ ready for review labels Jul 1, 2016
@brunoabinader
brunoabinader force-pushed the brunoabinader-raster-fade branch from 81f15bf to aa1fa49 Compare July 2, 2016 15:05
@brunoabinader brunoabinader removed the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Jul 2, 2016
@brunoabinader
brunoabinader merged commit aa1fa49 into master Jul 2, 2016
@brunoabinader
brunoabinader deleted the brunoabinader-raster-fade branch July 2, 2016 15:31
VertexArrayObject backgroundPatternArray;
VertexArrayObject backgroundArray;

VertexArrayObject coveringPlaingOverdrawArray;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm specifically referring to coveringPlaingOverdrawArray`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in #5557.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Core The cross-platform C++ core, aka mbgl feature GL JS parity For feature parity with Mapbox GL JS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants