SaschaWillems / Vulkan-glTF-PBR

Physical based rendering with Vulkan using glTF 2.0 models
MIT License
979 stars 132 forks source link

How to pass (GLTF)model name to main.cpp #21

Closed gokulsukumar03 closed 5 years ago

gokulsukumar03 commented 5 years ago

Hi SaschaWillems, I want to pass the model name from activity to main.cpp. In the example, defualt give (std::string sceneFile = assetpath + "models/DamagedHelmet/glTF-Embedded/Box.gltf")

I like to pass (GLTF) model name from the activity. KIndly let me know how to do this.

SaschaWillems commented 5 years ago

Afaik that requires the use of JNI, which is the interopt between Java an C++ on Android. Never done that, so I can't help with that.