/tutorials-hg2

Tutorials for Harfang Python & Lua

Primary LanguageShell

HARFANG® Tutorials

These tutorials demonstrate the usage of the HARFANG API in Python and Lua.

To run the tutorials:

  1. Download or clone this repository to your computer (eg. in d:/tutorials-hg2).
  2. Download assetc for your platform from here to compile the tutorial resources.
  3. Drag and drop the tutorial resources folder on the assetc executable -OR- execute assetc passing it the path to the tutorial resources folder (eg. assetc d:/tutorials-hg2/resources).

assetc drag & drop

After the compilation process finishes, you will see a resources_compiled folder next to the tutorials resources folder.

You can now execute the tutorials from the folder you unzipped them to.

D:\tutorials-hg2>python draw_lines.py

or

D:\tutorials-hg2>lua draw_lines.lua

Alternatively, you can open the tutorial folder using Visual Studio Code and use the provided debug targets to run the tutorials.

If you want to know more about HARFANG, please visit the official website.

Screenshots

  • AAA Rendering Pipeline AAA rendering pipeline

  • Mouse flight controller Mouse flight controller

  • PBR materials PBR materials

  • Draw to multiple viewports Physics pool

  • Physics pool of objects Physics pool

  • Physics Kapla Physics Kapla

  • Scene Instances Scene Instances

  • Scene with many nodes Many object nodes

  • Forward rendering pipeline, using the lights priority Lights priority

  • Dear ImGui edition Dear ImGui edition