armory3d / armory_examples_browser

Armory3D Examples Browser

Home Page:https://armory3d.github.io/armory_examples_browser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Online examples severly broken

StrandedAlien opened this issue · comments

Too many to list... Almost looks like they have been generated automatically and nobody cared to check. Animation examples do not react to key presses, pause trait example does not pause... and so on. My guess

Animation examples: Traits not dedicated to object
pause trait examples: Did you set the checkbox for the pause trait in scene settings? Does not look like.

Would recommend to check them all.
You might want to also consider to remove examples from the web version, which may not be fully compatible with this target.
Like the material parameters example (third cube completely black)

Not very important, but it makes a bad impression when newbies check out Armory3D. My 2 cents.

Hello.
The mentioned Animation & Pause Trait examples all work for me.

I believe you forgot to click into your browser window to enable input checking. 🙂
Else input checking is disabled by default.

A few of the examples are known to be broken and are being fixed behind-the-scenes I believe.
If you would like to still double-check, feel free to state the ones you still believe to be broken so that others can verify.

Thanks.

I installed the examples using this process and over the 130 available examples 51 of them
do not compile correctly with a correct html5 output.
In those cases the "kha.js" that should be produced along with the other files is missing.
When testing the index.html all you will get is a white screen.

I listed below the examples that do no compile correctly and need review when using this process.

  • animation_bonechild
  • animation_movebone
  • archery
  • call_hx
  • call_js
  • debug_draw
  • ease
  • first_person
  • game_bowling
  • graphics_settings
  • input_multitouch
  • input_sensor
  • linked_proxy
  • logic_event_fromhaxe
  • logic_gamepad
  • macro_armpack
  • material_params
  • material_shaders
  • mesh_generate
  • mesh_import
  • platformer
  • playground
  • race_track
  • raycast_objects
  • render_splitscreen
  • render_to_texture
  • screentex
  • script_camera_lerp
  • script_linkedgroup
  • script_properties
  • script_properties_global
  • script_rigidbody_trigger
  • script_spawnobject
  • script_transform
  • server_stream
  • sound
  • spawn_from_scene
  • tanks_networking
  • tanks_script
  • third_person
  • third_person_terrain
  • tilesheet
  • tilesheet_2d
  • top_down
  • twin_stick
  • ui_canvas
  • ui_script2d
  • ui_script3d
  • vr_dino
  • wasm_call
  • world_sun_direction

Hi, what OS, Armory version and examples version have you been using? I used Manjaro, Amory3D 22/05 and a fresh git clone of the examples. I tried a few of the above mentioned examples and had no such troubles as kha.js not generated for browser target.

commented

Most of these fail only in blender background mode.
You can build in non-background mode by changing the argument passed to Project.buildGroup in the hxml files.

static function buildGroup( src : String, dst : String, forceRebuild = false, ignoreErrors = false, backgroundMode = true, ?ignoreProject : Array<String> ) {

From what I understand, there are 3 reasons why an error might occur in building an example in background mode:

  1. If the Blend file is old and is no longer compatible with the current version of Armory. For example the vr_dino in this case. These examples must be ignored for build if not fixable.

  2. The blend file has logic nodes that did not / cannot auto-update to the newest version(faulty node-replacement). These can be fixed manually by simple replacing the respective logic nodes in each blend file.

  3. The example has a canvas or traits and the working directory is wrong. A part of this PR: #2 was to fix this issue by changing the current working directory CWD before building the example (Changes made to the project.hx file). This solved most of my compilation issues with examples and is quite important.