3D Gallery with Great Artwork Imagine Logo with Three Colors Beach Cabin 3D Android Tablet with Different Screens Studio Apartment Red Figured Greek Vase on Blue Background Silver and Gold Flashlight Lake on Fire

3D Visualization

Waves in the Ocean

Swipe Around. Tap Button - Audio: On & Off

Visual Effect

Swipe as waves roll in the ocean against emerald green islands.

Implementation: Waves with GLSL mix()

The shader mix() function blends two texture maps as you swipe.

Preparation

Islands and waves prepared with 3ds Max, modified with Photoshop and texture mapped to the inside of a cube.

Wave maps were prepared with animated textures. Only two frames were required to render this interactive scene. As you swipe, the waves rise and fall.

Optimized Code: Efficiency

This app uses a number of techniques to load quickly and run efficiently. Cubic views, one model for all views, render to texture (RTT) and rapid texture changes with pre-loaded registers, increase speed and decrease download time.

Cube View

Each view is actually a cube that is texture mapped with a rendering of the current scene. You're viewing scenes, or rooms, from inside a cube. Shapes were modeled and mapped with 3ds Max then exported as cubic view maps.

One Model

One cube displays for every frame, meaning the app initializes one cube and the scene always displays with the same cube. The cube for this example uses just eight vertices. The vertices for a fully modeled room or background would require hundreds of thousands of vertices.

Additionally each scene would require a different set of vertices. The app would need to download multiple 3D models. Cubic views require millions fewer vertices than architectural or environmental models, which allows a much faster download and initialization time.

RTT

Each view, scene, environment or room was modeled and mapped with 3ds Max. Similar models often require scores of texture maps. However with 3ds Max, all texture maps were combined into one image with the render to texture (RTT) feature.

With render to texture only one texture image is downloaded for each frame, allowing for faster viewing.

Swipe - Change Views

Every frame in this app's pre-loaded into a register. When you interact with this app, changes to the view process with fast and simple blending of image data from multiple registers.

Interactivity's coordinated between JavaScript and WebGL shaders. First this application loads image data, for each view, into a set of GPU registers. Samplers access image data from those registers, during the run time of this app's shaders.

The fragment shader processes that image data and sends it out to render, or display, on this canvas. This allows you to see views fade into each other.

Transitions

See smooth transitions as one view fades into the next.

Swipe over the canvas as JavaScript with WebGL, changes the amount of data on display from each register.

Fragment Shader

precision mediump float;
uniform sampler2D u_sampler0;
uniform sampler2D u_sampler1;
varying vec2 v_tex_coord0;
uniform float uf_time;

void main(void) {
 // Sample the first texture:
 vec4 v4_color0 = texture2D(
 u_sampler0, 
 v_tex_coord0
 );
 
 // Sample the second texture:
 vec4 v4_color1 = texture2D(
 u_sampler1, 
 v_tex_coord0
 );
 
 // Blend the textures
 // based on the value
 // in floating point uf_time.
 vec4 v4_mix = mix(
 v4_color0,
 v4_color1,
 uf_time
 );
 
 gl_FragColor = v4_mix;
}

More Scenes!

3D Web Design

Educate, inspire and inform with interactive 3D media online. Interactive media in the form of 3D shapes or 3D models, provide unique opportunities to express concepts, such as educational course work or new product features. Seven Thunder Software's simple 3D viewer enables users to see three dimensional objects interactively. Swipe to rotate a model. Tap to select elements on the model. Options allow users to select and learn about individual features.

3D Web Development

Your message can reach the widest audience with 3D Web design. Most 3D programming's implemented with common Web technologies including WebGL, JavaScript, CSS, GLSL and HTML5. 3D Web design with WebGL works on iPhone iOS 8 and up, current Androids, Macintosh computers with OSX Yosemite on up and Windows 10 PCs.

3D Models Online

If a picture's worth a thousand words, then a 3D model's worth ten thousand words! Consider 3D interactive content for education, media and marketing. Seven Thunder Software develops 3D models for the Web, with optimized (fast loading) 3D rendering software, from photographs, blue prints, ideas and real objects.

Tags
graphic design, Website design, Web design,Interactive media, online 3D modeling, create 3D website, Web GL, 3D Development, 3D Web, 3D Web Design, WebGL example, WebGL online, WebGL example online,

Ads >
Create 3D Games: Learn WebGL Book 2 Simple Shaders: Learn WebGL Book 4
3D Programming for Beginners: Learn WebGL Book 1

for Web graphics!

Copyright © 2022 Amy Butler. All Rights Reserved.