Introducing gloc for Open Web Shader Linking

UPDATE: Check out video of David Sheets’ presentation at WebGL Camp Orlando from Friday March 16.

UPDATE: David Sheets is scheduled to speak at the next San Francisco WebGL Developer’s Meetup in May.

We have just released our first version of gloc, a toolkit for WebGL and OpenGL ES2 GLSL shaders. The purpose of gloc is to make it much easier to build – and much easier to share – shaders. As a result, we hope gloc will help to further the creative potential of 3D graphics on the web and mobile platforms. (gloc links our creativity!)

With gloc, shaders and shader fragments, for numerical and graphics functions, become portable first-class web resources.

What gloc enables:

  • Libraries of shader functions
  • Capability-based shader component fall-backs
  • Collaborative shading effect mash-ups
  • LD_PRELOAD-like functionality
  • Compression by factorization of common shader functions

What gloc makes much easier:

  • Semantically-linked shaders in visualization systems
  • Cascading shaders for selective overriding
  • User Interface effects and compositing
  • and much more!

Where gloc lives:

The source code for the gloc suite version 1.0.0 has been released under the BSD 3-Clause license on GitHub. A Web interface is immediately available.

How gloc works:


gloc pipeline: gloc transforms ES SL into glo object files which are subsequently linked by glol with other glo resources to produce complete WebGL shaders.

Continue reading

Posted in Ashima Arts | 2 Comments

New 3D Climate Model for Mars

The first paper describing our newest climate model for Mars has just gone live at the journal Icarus as a paper-in-press.  You can access the paper here.  The model simulates the global Martian atmosphere – but unlike all prior full general circulation models for Mars (Mars GCM), it does so with a novel numerical approach and a novel (cube-sphere) computational grid.  The upshot of the improved numerics is much better treatment of things like dust and water vapour that are blown around in the atmosphere.  As the crucial elements of the Martian climate system, getting the transport of these systems right is central to proper simulation of the climate.  In the paper, we “calibrate” the model with Mars Odyssey Orbiter Gamma Ray / Neutron Spectrometer and Mars Exploration Rover Alpha Proton X-ray Spectrometer measurements of argon.  Argon is a really useful “tracer” as it has no chemical or physical sources or sinks – it is merely enriched or diluted by “freeze distillation” of the CO2 that makes up the majority of the Martian atmosphere.  The good news is that the new model does much better than all prior Mars GCMs.  The bad news is that the model still under-predicts argon in the southern polar winter.  There’s still obviously work to be done before we properly understand transport in the Martian atmosphere.

As with the WRF model that we also run at Ashima Research, the core MITgcm is primarily used for study of the Earth’s climate addressing crucial questions of atmospheric and oceanic circulation, regional and global climate, and climate change.

The figure, below, shows Martian topography and albedo (reflectivity) on the native cube-sphere grid.  The full globe can be constructed by “folding” the edges of the domain together.  The major advantage over standard grid-point models is the absence of two “convergence” points at the poles.

Posted in Ashima Research | Leave a comment

3D Printing the “Puck” Shape Model

Back in October, Ashima bought a 3D printer from MakerBot. In recent years, 3D printers have dramatically fallen in price and now offer a really cool, cheap means of prototyping small hardware. Although not capable of printing a whole “puck” flier in one go, it is able to build the modular components that comprise a full size “puck.” And here’s the first completed prototype model. A lot of work is still needed to demonstrate that we can get the necessary thrust-to-weight at this scale, but the shape model has already proven useful in getting tactile feedback on the size of vehicle that would be useful in the field. The printed concepts are also useful for crafting prototypes of system components before going out to more expensive fully-functional prototype manufacturing. Click to see more of the story for a couple of extra photos including a size comparison with the current quad flier.

Continue reading

Posted in Ashima Devices | Leave a comment

Data Assimilation for Mars

Our paper on data assimilation (DA) for Mars has just been published and this week we’re also speaking about it at the American Geophysical Union meeting in San Francisco. DA is a method for ‘fusing’ an atmospheric / climate model with data. If the model works well, DA allows the global extrapolation of observations that have incomplete or irregular coverage. If the model works poorly, DA provides a very efficient means of figuring out what’s wrong with the model and a framework for testing improvements. DA is widely used for Earth science for everything from recent climate reconstruction to weather forecasting. It’s only very rarely been used for other planets, though, because of the difficulty of developing and maintaining the DA capability (the software) and the computational demands. The DART DA system for Mars changes all of this by augmenting an open-source NCAR-developed DA system for planetary use. As a teaser, here’s an incomprehensible but colourful figure from the paper :)

Continue reading

Posted in Ashima Research | Leave a comment

Quadcopter Flights

We’ve been flying our quadcopter testbed this month as part of our “puck” flier development (see our earlier post for the product we’re aiming to produce).  The quadcopter we’re flying doesn’t look much like the final goal “puck” device, but it provides a great testbed for the avionics, automated control systems, and for assessing the imaging behaviors.  Today we shot some video of the quadcopter flying for pretty much a full battery cycle (about 12 minutes).  The flier uses a range of sensors for attitude and position determination and has modest “flight computer” for flight control.

EDIT: We’re continuing to add more videos of and from the flier as we make them

Newer, Still Rather Cheap 5.8 GHz 720 CMOS Camera

Fighting winds in the park in Corona, Jan 25 (no onboard footage) – click here
Flight in the park, 17 Jan – click here
Nighttime flight with camera a 45degree view angle – click here
Evening flight over the building – click here
Nighttime flight with camera looking nadir – click here

Old, Super-Cheap 2.4 GHz Camera Test Camera

Long flight video – click here
Picture-in-picture from live camera during flight – click here
High-level flight over the building – click here
Nighttime flight – click here
Night roof flight 1 – click here
Night roof flight 2 – click here
Sunset onboard flight – click here
Park Flight 1 – click here
Park Flight 2 – click here
Park Flight 3 – click here
Parking Lot – click here


Posted in Ashima Devices | Leave a comment

Going to Mars with MSL

The Mars Science Laboratory was injected into interplanetary cruise just a few moments ago (early morning PST, Nov 26).  Next stop will be Mars in August 2012.  This is the most complex landed vehicle ever sent to another planetary object. It possesses a range of sophisticated instrumentation, mostly focused on understanding the geology, geochemistry, and mineralogy of rocks in the Gale Crater landing site.  It has a few auxiliary instruments: a surface radiation detector, an active neutron subsurface sounder (which looks for subsurface ice or hydrated minerals), and a Rover Environmental Monitoring Station (REMS).  Ashima Research has been involved with the REMS instrument as a Co-I investigator since 2004. Looking forward to doing some meteorology on Mars!

Posted in Ashima Research | Leave a comment

At the Surface of Mars: Panoramas in WebGL

We’ve collected together a bunch of panoramas from the surface of Mars, taken by NASA spacecraft over the last 15 years, and wrapped them in our WebGL panorama viewer. The viewer takes panorama images in equirectangular coordinates (that’s just even spacing in equal increments of latitude and longitude) and manipulates the projection – so this is an example of 2D pixel manipulation. The panoramas were all generated by a combination of the Jet Propulsion Laboratory, University of Arizona, Cornell University, and/or Arizona State University (depending on which mission the specific images were from). From top to bottom, the panoramas are: 1. Spirit at Eagle Crater; 2. Spirit in the Columbia Hills; 3. Spirit’s final panorama from ‘Troy’; 4. Opportunity at Victoria Crater; 5. Opportunity on the rim of Erebus Crater; 6. Mars Pathfinder landing site; 7. Phoenix Lander landing site. To move around the panoramas, use the image scroll function. You can use the magnifying buttons to zoom in and out.

Posted in Ashima Arts, Ashima Devices, Ashima Research | Leave a comment

Modeling the Solar System’s Most Extreme Greenhouse

Back in June we published a paper on our successful efforts to model the way solar and thermal radiation maintain Venus’ extreme climate (you can find the paper here). We also just got word that we’ll be presenting this work at the AGU conference in December, so we thought it time to give some insight into what we’re doing.  The goal of the project was two-fold: to create a self-consistent model that could stand up against spacecraft observations (i.e. to test how well “we” – the science community and our predictive models – really understand the greenhouse effect and solar heating of the atmosphere) and to develop a baseline for faster radiative transfer models that can be used in comprehensive climate models.  Why model Venus?  It’s an extreme case, it really stretches our understanding of atmospheric and climate physics and dynamics and it provides a very extreme test of our ability to model climate.  And you all know why we might care about how well we can model climate, right?

Image from the ESA Venus Express Venus Monitoring Camera.

Continue reading

Posted in Ashima Research | 1 Comment

High Dynamic Range Imaging

We’ve been playing with high dynamic range imaging as part of our process of capturing building interiors for our 3D modeling (EDIT: an awesome intro to HDR for artistic photography was pointed out to me here). And we admit, we’ve been having some fun! Check out this local tone mapped image of our street corner (Lake and California, in Pasadena), taken from the roof at sunset. Click on the image link, below, to see the whole thing (about 8 Mb).

Posted in Ashima Devices | Leave a comment

Seven Years of Global Mars Images

Ashima Research’s marsclimatecenter.com website just had a major update, with the addition of seven years of full colour, global images of Mars.  The data were collected between 1999 and 2006 by the Mars Global Surveyor (MGS) Mars Orbiter Camera (MOC).  The images were created by Huiqun Wang, our colleague at Harvard.  The website allows you to select images by Earth date (day – month – year style) and Mars date (using areocentric solar longitude and Martian year).  You can also select from northern and southern polar images, and traditional global map-style images.  To read more about the images, check out the image data set description page.  To get going browsing, selecting, and/or downloading the images, check out the image archive search tool.

Posted in Ashima Research | Leave a comment