Giter Club home page Giter Club logo

arkitenvironmentmapper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arkitenvironmentmapper's Issues

The airplane model in the example is too bright and how to fix it?

I install the example in iphone6s, but the model is too bright.
img_2077
I tried to change the code in ARKitEnvironmentMapper/Classes/ImageConverter.swift, such as changing " let ev = (1 / 2) * (maxLightIntensity - estimatedIntensity) / maxLightIntensity" to "let ev = (1 / 200) * (maxLightIntensity - estimatedIntensity) / maxLightIntensity" and the variable "experimentalExposureCorrectionEnabled" in ARKitEnvironmentMapper+Options.swift changed to be true , but nothing changed, the model is still too bright. How should I fix this problem?

Finished environment mapping is too bright and needs to rotate 180 degrees

Hi!

Must start off by saying that this tool is amazing.

Im having a problem with my finished environment mapping. As the title says, the brightness is too high, is this a problem you are having aswell? The objects are really standing out in the scene. The second issue that I am having is that the environment map needs to be rotated horizontally 180 degrees, which now seems like the alignment of the env map is that of how it was fed to the camera.

Have you encountered these problems before?

Cheers

validateRenderPassDescriptor:644: failed assertion `Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'

Hi!
I change the model from the airplane to a sphere, and add the plane detect to put the sphere on the plane. But when I apply the environmentmap, the error goes "
2019-01-11 09:43:40.371207+0800 ARKitEnvironmentMapper_Example[19867:1744813] [DYMTLInitPlatform] platform initialization successful
2019-01-11 09:43:41.228950+0800 ARKitEnvironmentMapper_Example[19867:1744618] Metal GPU Frame Capture Enabled
2019-01-11 09:43:41.232703+0800 ARKitEnvironmentMapper_Example[19867:1744618] Metal API Validation Enabled
2019-01-11 09:43:41.584089+0800 ARKitEnvironmentMapper_Example[19867:1744618] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-01-11 09:43:41.585921+0800 ARKitEnvironmentMapper_Example[19867:1744618] [MC] Reading from public effective user settings.
validateRenderPassDescriptor:644: failed assertion `Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)' "

And I google to find that "textureDescriptor.usage = MTLTextureUsage.renderTarget" this line should be added, but I do not know where to add it.

Empty Image

Hello there,
this project seems very promising, but sadly I couldn't get it to work.
when I try to write the file to disk like this:

let environmentTexture = environmentMapper!.currentEnvironmentMap(as: .cgImage)
        let CIImage = CIImage(cgImage: environmentTexture as! CGImage)
        do{
            try context.writeTIFFRepresentation(of: CIImage, to: virtualCameraFileURLEnvironment!, format: .RGBAh, colorSpace: environmentColorSpace as! CGColorSpace)
        }catch{
            print("error writing file")
        }

it just outputs an empty 4,2MB file.
I had to also take out the part in the conversion function that checks the pixel format, as apple has changed this since..

P.S. are there any plans for future updates? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.