Skip to content

How can I use this without the camera feed? #307

Answered by ThomasGorisse
bileldeb asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Sorry for the late answer. If you are still interested on that subject, I can help you in exchange of some screen records of your app shared in here.
This is a very interesting subject and I really think that the usages of this behavior are awesome.

So here how it is implemented inside AR Environment Lights app:

data class APIEnvironment(
    val name: String,
    val ktxIblUrl: String? = null,
    val ktxSkyboxUrl: String? = null,
    val hdrUrl: String? = null,
    val fromServer: Boolean = true
) {
    private var environment: Environment? = null

    suspend fun loadEnvironment(context: Context) = environment
        ?: withContext(Dispatchers.IO) {
            when {
            …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bileldeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants