You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Determine an outer radius, which encloses the environment of the user, and an inner radius in which the user can move. Handle the viewport projections accordingly.
The text was updated successfully, but these errors were encountered:
Hi, halileohalilei:
How did you relax the assumption that the user's position is fixed? I am new to swift and ARkit, I did not find the code related. In 'private func setupCoordinateConversionTexture()' in ARKitEnvironmentMapper.swift, this line 'let x = UInt8(((sin(theta) * cos(phi) + 1.0) / 2.0) * 255)' means? why * 255?
It would be great if you can explain your whole method in detail. Thanks!
Hey @ghoshaw, I haven't had time to handle this issue, so the assumption is still there. I had a couple of ideas to resolve this. I was planning on either 1) storing multiple environment maps so that the user could switch between the maps if they moved farther from the initial position, or 2) assume that the user is inside a fixed size room and adjust the size of camera feed on the resulting environment map texture, or 3) use both.
I multiply the value by 255 to map a floating point value between 0 and 1 to an integer value between 0 and 255, which is the range of a UInt8.
Determine an outer radius, which encloses the environment of the user, and an inner radius in which the user can move. Handle the viewport projections accordingly.
The text was updated successfully, but these errors were encountered: