[Android (C)] custom material_shaders (not working)
- Dominant language
- C++
- Stars
- 3.3k
- Forks
- 353
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
When adding a custom shader to a material like this example here :
https://github.com/armory3d/armory_examples/tree/master/material_shaders/Shaders
you will get an error on Android:
```
2020-12-22 17:16:23.163 22316-23462/my.app.com D/hl: Uncaught exception: Can't cast dynobj to iron.data.TSceneFormat
2020-12-22 17:16:23.164 22316-23462/? V/threaded_app: android_app_destroy!
```
and this is the only reference I found on this error so far:
https://github.com/HaxeFoundation/haxe/issues/6206
Seems like we have to make sure that objects we are comparing/using are of the same type, somewhere in the code.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the custom shader files in the linked armory_examples material_shaders/Shaders example and reproduce the Android failure. Trace the reported dynobj-to-iron.data.TSceneFormat cast error, then verify that the example runs on Android without the crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- computer-graphics, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100