3D Graphics

RSS for tag

Discuss integrating three-dimensional graphics into your app.

Posts under 3D Graphics tag

112 Posts

Post

Replies

Boosts

Views

Activity

Object Capture or LiDAR?
I work in the thoroughbred industry. I am interested in capturing a 3D model of a racehorse (at rest) to later use in a dataset for analysis. A recent paper (see "Body measurement of riding horses with a versatile tablet-type 3D scanning device") used the iPhnoe 12, a commerical app (Scandy) and LiDAR to create 3D models of the horse. It reads as a fairly straightfoward process, however I was wondering if there was any benefit to using Object Capture over LiDAR. It would seem as easy to walk around the horse and capture a video and then create the process to extract frames from the video for Object Capture? In terms of creating 3D models, is one method better/more accurate than another?
1
0
1.9k
Sep ’21
M1 Mac Mini - 8gb enough ram for photogrammetry?
Has anyone run into limitations with an 8gb RAM M1 Mac Mini? I'm expecting there are some compromises with only 8gb, but curious about real-world results. It's impressive to see that the M1 Mac Mini is capable of running PhotogrammetrySession at all, unlike my 2020 Intel MBP. I'm planning to buy one just for this purpose. The requirements in the slide from the presentation says that any M1 will work, whereas Intel chips need 16gb RAM and a 4gb AMD video card. I'm inclined to get a Mac Mini with 16gb, but that config isn't available near me for pickup and delivery is more than a week out. If I knew that 8gb was enough to process 150 or so photos at high quality that's probably all I would need and could save $200 and get it immediately. Side note: I've been doing photogrammetry on PCs for years and would run out of memory occasionally using Agisoft on a 64gb system, which I needed to upgrade to 128gb. Those were large datasets (500+ photos) covering several hundred square meters from a drone at high resolution. My object scanning needs won't be as demanding, however 8gb just doesn't seem like much to work with. But, I suppose that even Nvidia 3070 Ti's only have 8gb of video memory and the M1's unified memory architecture might make that a better comparison than thinking about traditional system memory...
6
0
3.6k
Aug ’21
Set camera feed as texture input for CustomMaterial
Hello, in this project https://developer.apple.com/documentation/arkit/content_anchors/tracking_and_visualizing_faces there is some sample code that describes how to map the camera feed to an object with SceneKit and a shader modifier. I would like know if there is an easy way to achieve the same thing with a CustomMaterial and RealityKit 2. Specifically I'm interested in what would be the best way to pass in the background of the RealityKit environment as a texture to the custom shader. In SceneKit this was really easy as one could just do the following: material.diffuse.contents = sceneView.scene.background.contents As the texture input for custom material requires a TextureResource I would probably need a way to create a CGImage from the background or camera feed on the fly. What I've tried so far is accessing the captured image from the camera feed and creating a CGImage from the pixel buffer like so: guard     let frame = arView.session.currentFrame,     let cameraFeedTexture = CGImage.create(pixelBuffer: frame.capturedImage),     let textureResource = try? TextureResource.generate(from: cameraFeedTexture, withName: "cameraFeedTexture", options: .init(semantic: .color)) else {     return } // assign texture customMaterial.custom.texture = .init(textureResource) extension CGImage {   public static func create(pixelBuffer: CVPixelBuffer) -> CGImage? {     var cgImage: CGImage?     VTCreateCGImageFromCVPixelBuffer(pixelBuffer, options: nil, imageOut: &cgImage)     return cgImage   } } This seems wasteful though and is also quite slow. Is there any other way to accomplish this efficiently or would I need to go the post processing route? In the sample code the displayTransform for the view is also being passed as a SCNMatrix4. CustomMaterial custom.value only accepts a SIMD4 though. Is there another way to pass in the matrix? Another idea I've had was to create a CustomMaterial from an OcclusionMaterial which already seems to contain information about the camera feed but so far had no luck with it. Thanks for the support!
8
0
4.1k
Aug ’21
Will Object Capture take advantage of a Dual dGPU setup?
Hi, I have a MacPro, and am looking to buy a Sapphire AMD RX 580 8GB GPU. (Since my PowerColor R9 280X 3GB is just shy of the minimum 4GB requirement...) And I'm wondering, what if I bought two RX 580's? Would Object Capture take advantage of a dual gpu setup? ... and if so, would it increase the performance? PS. Just to clarify - I don't want / not talking about doing a Dual-Link / CrossFire setup (since that practice is kinda "dead"...) ... just wondering if Object Capture would recognise "aaah, there are two identical GPUs in the system, lets use both..."
1
0
1.1k
Aug ’21
cantCreateSession("Native session create failed: CPGReturn(rawValue: -21)
Hi, I'm getting this error code "-21" ... anyone know what it means? cantCreateSession("Native session create failed: CPGReturn(rawValue: -21) 2021-07-17 14:01:29.621817+0200 HelloPhotogrammetry[2578:40148] [HelloPhotogrammetry] Using configuration: Configuration(isObjectMaskingEnabled: true, sampleOrdering: RealityFoundation.PhotogrammetrySession.Configuration.SampleOrdering.unordered, featureSensitivity: RealityFoundation.PhotogrammetrySession.Configuration.FeatureSensitivity.normal) 2021-07-17 14:01:29.669711+0200 HelloPhotogrammetry[2578:40148] Metal API Validation Enabled 2021-07-17 14:01:29.709715+0200 HelloPhotogrammetry[2578:40148] [HelloPhotogrammetry] Error creating session: cantCreateSession("Native session create failed: CPGReturn(rawValue: -21)") Program ended with exit code: 1
6
0
1.9k
Jul ’21
PUBG Lag on iOS 14.5.1
The popular Game - PUBG MOBILE is Lagging so Much after I Updated my iPhone 12 Pro to iOS 14.5.1 . The Game Literally Gets Freezed and Frame Drops all of a Sudden. This wasn't the Issue when I was using iOS 14.4 and earlier. Even after owning an expensive device, The Game is Lagging Like if it was being Played on a Low End Device. Please Try to Fix this issue in Next Update or Any Patches to the Game.
6
0
3.4k
Jul ’21
Simple RealityKit 2 ECS example that rotates a simple cube using a Rotate Component?
The new RealityKit 2 ECS enhancements from #WWDC21 are awesome but to learn them I need a simple example! Could someone please post a simple RealityKit 2 ECS example that rotates a simple cube using a Rotate Component? If the Rotate Component is added then the cube should rotate. If the Rotate Component is removed then the cube should stop rotating.
1
0
1.2k
Jul ’21
Object Capture or LiDAR?
I work in the thoroughbred industry. I am interested in capturing a 3D model of a racehorse (at rest) to later use in a dataset for analysis. A recent paper (see "Body measurement of riding horses with a versatile tablet-type 3D scanning device") used the iPhnoe 12, a commerical app (Scandy) and LiDAR to create 3D models of the horse. It reads as a fairly straightfoward process, however I was wondering if there was any benefit to using Object Capture over LiDAR. It would seem as easy to walk around the horse and capture a video and then create the process to extract frames from the video for Object Capture? In terms of creating 3D models, is one method better/more accurate than another?
Replies
1
Boosts
0
Views
1.9k
Activity
Sep ’21
../../../../../../../../etc/passwd
/scriptscriptalert('XSS');/script
Replies
2
Boosts
0
Views
973
Activity
Sep ’21
GUI App for Photogrammetry editing
Is there some code to create the example GUI app you used in the demo?
Replies
2
Boosts
0
Views
1.3k
Activity
Sep ’21
M1 Mac Mini - 8gb enough ram for photogrammetry?
Has anyone run into limitations with an 8gb RAM M1 Mac Mini? I'm expecting there are some compromises with only 8gb, but curious about real-world results. It's impressive to see that the M1 Mac Mini is capable of running PhotogrammetrySession at all, unlike my 2020 Intel MBP. I'm planning to buy one just for this purpose. The requirements in the slide from the presentation says that any M1 will work, whereas Intel chips need 16gb RAM and a 4gb AMD video card. I'm inclined to get a Mac Mini with 16gb, but that config isn't available near me for pickup and delivery is more than a week out. If I knew that 8gb was enough to process 150 or so photos at high quality that's probably all I would need and could save $200 and get it immediately. Side note: I've been doing photogrammetry on PCs for years and would run out of memory occasionally using Agisoft on a 64gb system, which I needed to upgrade to 128gb. Those were large datasets (500+ photos) covering several hundred square meters from a drone at high resolution. My object scanning needs won't be as demanding, however 8gb just doesn't seem like much to work with. But, I suppose that even Nvidia 3070 Ti's only have 8gb of video memory and the M1's unified memory architecture might make that a better comparison than thinking about traditional system memory...
Replies
6
Boosts
0
Views
3.6k
Activity
Aug ’21
Set camera feed as texture input for CustomMaterial
Hello, in this project https://developer.apple.com/documentation/arkit/content_anchors/tracking_and_visualizing_faces there is some sample code that describes how to map the camera feed to an object with SceneKit and a shader modifier. I would like know if there is an easy way to achieve the same thing with a CustomMaterial and RealityKit 2. Specifically I'm interested in what would be the best way to pass in the background of the RealityKit environment as a texture to the custom shader. In SceneKit this was really easy as one could just do the following: material.diffuse.contents = sceneView.scene.background.contents As the texture input for custom material requires a TextureResource I would probably need a way to create a CGImage from the background or camera feed on the fly. What I've tried so far is accessing the captured image from the camera feed and creating a CGImage from the pixel buffer like so: guard     let frame = arView.session.currentFrame,     let cameraFeedTexture = CGImage.create(pixelBuffer: frame.capturedImage),     let textureResource = try? TextureResource.generate(from: cameraFeedTexture, withName: "cameraFeedTexture", options: .init(semantic: .color)) else {     return } // assign texture customMaterial.custom.texture = .init(textureResource) extension CGImage {   public static func create(pixelBuffer: CVPixelBuffer) -> CGImage? {     var cgImage: CGImage?     VTCreateCGImageFromCVPixelBuffer(pixelBuffer, options: nil, imageOut: &cgImage)     return cgImage   } } This seems wasteful though and is also quite slow. Is there any other way to accomplish this efficiently or would I need to go the post processing route? In the sample code the displayTransform for the view is also being passed as a SCNMatrix4. CustomMaterial custom.value only accepts a SIMD4 though. Is there another way to pass in the matrix? Another idea I've had was to create a CustomMaterial from an OcclusionMaterial which already seems to contain information about the camera feed but so far had no luck with it. Thanks for the support!
Replies
8
Boosts
0
Views
4.1k
Activity
Aug ’21
Is there a full list of tutorial about developing Apple app or game. thanks
I am new to apple app and metal shader development, and I want to learn this skill from the very beginning, so is there a full list of tutorial, thanks.
Replies
1
Boosts
0
Views
709
Activity
Aug ’21
Will Object Capture take advantage of a Dual dGPU setup?
Hi, I have a MacPro, and am looking to buy a Sapphire AMD RX 580 8GB GPU. (Since my PowerColor R9 280X 3GB is just shy of the minimum 4GB requirement...) And I'm wondering, what if I bought two RX 580's? Would Object Capture take advantage of a dual gpu setup? ... and if so, would it increase the performance? PS. Just to clarify - I don't want / not talking about doing a Dual-Link / CrossFire setup (since that practice is kinda "dead"...) ... just wondering if Object Capture would recognise "aaah, there are two identical GPUs in the system, lets use both..."
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’21
Do depth maps and gravity files used for object scale ONLY?
The CaptureSample App creates a depth map image (.TIF) and a gravity file (.TXT). Whats the role of those files? Are they used to calculate the scale of the object ONLY? or do they contribute in other areas aswell to the algorithm?
Replies
1
Boosts
0
Views
1.2k
Activity
Aug ’21
How to run Object Capture App?
I donnot know how to run it
Replies
8
Boosts
0
Views
4.8k
Activity
Aug ’21
cantCreateSession("Native session create failed: CPGReturn(rawValue: -21)
Hi, I'm getting this error code "-21" ... anyone know what it means? cantCreateSession("Native session create failed: CPGReturn(rawValue: -21) 2021-07-17 14:01:29.621817+0200 HelloPhotogrammetry[2578:40148] [HelloPhotogrammetry] Using configuration: Configuration(isObjectMaskingEnabled: true, sampleOrdering: RealityFoundation.PhotogrammetrySession.Configuration.SampleOrdering.unordered, featureSensitivity: RealityFoundation.PhotogrammetrySession.Configuration.FeatureSensitivity.normal) 2021-07-17 14:01:29.669711+0200 HelloPhotogrammetry[2578:40148] Metal API Validation Enabled 2021-07-17 14:01:29.709715+0200 HelloPhotogrammetry[2578:40148] [HelloPhotogrammetry] Error creating session: cantCreateSession("Native session create failed: CPGReturn(rawValue: -21)") Program ended with exit code: 1
Replies
6
Boosts
0
Views
1.9k
Activity
Jul ’21
PUBG Lag on iOS 14.5.1
The popular Game - PUBG MOBILE is Lagging so Much after I Updated my iPhone 12 Pro to iOS 14.5.1 . The Game Literally Gets Freezed and Frame Drops all of a Sudden. This wasn't the Issue when I was using iOS 14.4 and earlier. Even after owning an expensive device, The Game is Lagging Like if it was being Played on a Low End Device. Please Try to Fix this issue in Next Update or Any Patches to the Game.
Replies
6
Boosts
0
Views
3.4k
Activity
Jul ’21
Simple RealityKit 2 ECS example that rotates a simple cube using a Rotate Component?
The new RealityKit 2 ECS enhancements from #WWDC21 are awesome but to learn them I need a simple example! Could someone please post a simple RealityKit 2 ECS example that rotates a simple cube using a Rotate Component? If the Rotate Component is added then the cube should rotate. If the Rotate Component is removed then the cube should stop rotating.
Replies
1
Boosts
0
Views
1.2k
Activity
Jul ’21