harfang3d / tutorials-hg2

Tutorials for Harfang Python & Lua
25 stars 10 forks source link

resources_compiled #1

Closed alexx600 closed 2 years ago

alexx600 commented 3 years ago

Hello, I have some major problem trying to run your tutorials. Most of examples use "/resources_compiled" folder as an asset initial location. "/resources_compiled' is also mention in gitignore.

Should i use some of python scipt to compile, resources? Maybe it is possible to push lost directory?

Best regards Alexander

astrofra commented 3 years ago

Hi Alex, thanks for your interest in HARFANG 2.0 👍 The problem you ran into is very easy to solve. As you correctly guessed, you need to compile the resources, so that they actualy become assets that the runtime will be able to load & run.

For that, you just need to run the Asset Compiler (Assetc) supplied on HARFANG website : https://www.harfang3d.com/releases/2.0.111/

image

The simplest way is simply to drag & drop the original 'resources' folder onto the assetc.exe and let it work. You only need to compile the resource folder once, unless you did some modifications to it.

More details about our Asset Compiler can be found here : https://www.harfang3d.com/docs/2.0.111/man.assetcompiler/

Let me know if this works for you, so I can close the issue.