Armory: Black screen on android, Armory 0.6b

Created on 26 Jan 2019  路  5Comments  路  Source: armory3d/armory

I'm building app using latest Armory3d version from repository.
When I run any app on Android 8.1.0 (phone TA-1047) it shows only black screen.

I've debugged it and Armory3d fails to show materials properly.

I've made app and manually loaded mesh with material into app.
And it worked, mesh did show.

So problem is either in exporting or displaying blender materials.

Most helpful comment

I got proper rendering using mobile preset. It did not apply for the first time for some reason.

All 5 comments

I'm debugging case and more accurate reason is shaders.
Setting proper shaders for material makes object visible.
Default shaders don't work.

Thanks that makes things little better, but cube has really bad form and color
screenshot_20190127-180036

Found workaround to render app on android. It renders not in the best way but shows meshes and colors properly.

// Imports needed
import iron.RenderPath;
import armory.renderpath.Inc;

// Put this inside some trait to run at initialization
notifyOnInit(function() {
        var path = new RenderPath();
        path.commands = function() {
            path.setTarget("");
            path.clearTarget(0xFF87CEEB, 1.0); // Color to clear
            path.drawMeshes("mesh");
            Inc.bindShadowMap();
        };
        RenderPath.setActive(path);
});

This is mobile version
screenshot_20190128-185549

and this is desktop version without custom render path
desktop

I got proper rendering using mobile preset. It did not apply for the first time for some reason.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

donalffons picture donalffons  路  4Comments

HeadClot picture HeadClot  路  4Comments

Amir-Arsalan picture Amir-Arsalan  路  4Comments

e1e5en-gd picture e1e5en-gd  路  3Comments

e1e5en-gd picture e1e5en-gd  路  3Comments