Game score and UI Canvas

Hi,
I’m using build 14 on Linux, however I can not run UI Canvas. Even trying to edit the github examples. The UI window opens, but the screen turns black. I’m trying to programing scoring event using custom properties and logic node. Can I do without the UI Canvas, with mesh object?

Take a look at the endless runner game in the armory example github. There is a canvas in the scene trait but it is disable. You need to enable it and uncomment a block of codes in the gems.hx trait.

2 Likes

I enabled MyCanvas in the Gem object, and uncommented the rows in the GemTrait script, but two problems appeared:
In the game when the runner hits the gem, the game hangs
When I click on Edit Canvas the Armory window load black screen
Opening Armory in terminal I get this
Thanks for your help

Looks like a driver problem, you are using linux right ? What does glxinfo shows you ? Your system specs ?
Dont forget to update your driver and kernal if needed. Try to restart.

Yes
I have Linux running on Intel HD Graphics 5500. Ubuntu Linux 16.04 (updated)
Mesa Version: 17.0.7. I’ll try to upgrade to 17.2. Thanks

I think armory need atleast OpenGL3.3 for the graphic driver. You also need opengl4.5 to enjoy all the graphics features.

Yes, I think is that
I upgrade mesa to 17.2.4 -last version, but my opengl is 3.0:
Run glxinfo | grep “OpenGL version” :
OpenGL version string: 3.0 Mesa 17.2.4

Run glxinfo | grep OpenGL:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel® HD Graphics 5500 (Broadwell GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.4
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.2.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.2.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Hey all

have a new issue with ui canvas i get it worked and every time if i start the scene new its reset the value to 0 but if i collect a object(Gem) again it save the last value and add it on , is there a way to reset the value really to 0 not just to visible 0 . or is it an issue with the set scene but my character start from the beginning and the value start from 0 but just visible.

thanks for reply

regards Kotaros