WebVR Tour of Public Projects in Charleston, SC
Jason Emory Parker is an interactive editor at The Post & Courier. Jason used A-Frame to create a VR tour of some of the major Charleston, SC public projects completed under Mayor Joseph Riley’s 40-year term. Below is his experience.
I created this project mainly as an experiment to get some idea of what A-Frame was capable of. I had recently completed another project for The Post and Courier which used a 3D model of the city of Charleston to show a few major public projects that had been completed during the 40-year tenure of the city’s outgoing mayor, Joe Riley.
The main city model is displayed in a
The source image is an equirectangular projection rendered in Blender3D. This can be configured under Lens tab in Camera Settings. Change the lens to panorama and the type to equirectangular.
The Post and Courier logo, graphic key, credits, and buttons are
<a-image> primitives. These could be built in any graphics editor.
To add some interactivity to the project so we need to add a camera with a cursor.
Setting the fuse to
true causes click events to be fired when the cursor gazes on an object.
I added some buttons to the project and positioned them accordingly. I used the
<a-mouseleave> tags to make the buttons change opacity when the cursor “hovers” over them.
Using these basic ingredients, I was able to complete this project in just a few hours. While the project itself is quite modest, I’m fairly impressed with what I could accomplish so quickly with A-Frame.
Two things that could improve projects like this are more animation and some sort of loading indicator while the sky source image changes. I intend to explore how to accomplish this next.