Skip to content

jasonsturges/openfl-away3d-terrain-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFL Away3D Terrain Demo

3D terrain demo using OpenFL, Away3D, and Haxe

screen-capture

YouTube: https://youtu.be/xr2_u2pRKF4

Web Demo: https://jasonsturges.github.io/openfl-away3d-terrain-demo/

  • Mouse down — move camera
  • f — Launch Full Screen
  • w or Arrow Up — forward
  • s or Arrow Down — backward
  • a or Arrow Left — left
  • d or Arrow Right — right

Getting started

This is a Haxe project, demonstrating a basic 3D terrain with water and skybox, built with OpenFL and Away3D.

Install Haxe

If you don't already have Haxe installed, start by installing either Mac, Linux, or Windows packages.

Library Dependencies

If this is your first time running haxelib, setup by executing the following command:

$ haxelib setup

Install Lime

$ haxelib install lime
$ haxelib run lime setup

Install OpenFL

$ haxelib install openfl
$ haxelib run openfl setup

Install Away3D

$ haxelib install away3d

Building and running

To run, call openfl test with a target, such as:

$ cd openfl-away3d-terrain-demo/
$ openfl test html5

Troubleshooting

For other compiler errors, make sure libraries are updated to the latest versions by calling:

$ haxelib upgrade

License

This project is free, open-source software under the MIT license.

Copyright 2015-2017 Jason Sturges