Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
302 19. Data VisualizationTechniques with WebGL
IO.Im ages is a convenience function to load an array of images. e function uses the
native Image API, which loads asynchronously. For example:
Listing 19.3 Native image API loading.
var image = new Image();
image.src = 'myimage.jpg';
image.onload = function() {
console.log('Image loaded');
};
e next step is to set these images as textures and to process and average the data set
to get a smooth spherical manifold.
19.4.2 Processing Data
In order to smoothen the data, we rst load the image as an RGBA (red green blue alpha)
oating-point texture, calculate the temperature change number in the alpha ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079