svhawks / arkitenvironmentmapper Goto Github PK
View Code? Open in Web Editor NEWA library that allows you to generate and update environment maps in real-time using the camera feed and ARKit's tracking capabilities.
License: MIT License
A library that allows you to generate and update environment maps in real-time using the camera feed and ARKit's tracking capabilities.
License: MIT License
I install the example in iphone6s, but the model is too bright.
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?
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
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.
Right now, the coordinate conversion texture is 32 bits-per-pixel, which makes coordinate conversion somewhat inaccurate. Use either a 64 bpc or 128 bpc texture to achieve higher accuracy.
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.
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? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.