Comments (5)
Nevermind, figured it out. Turns out I had a camera node in my scn file and ARVideoKit was taking video from that point.
from arvideokit.
@avierkant, can you please specify what device you're using?
It would also be great if you add snippet of the code in order for me to recreate the issue.
from arvideokit.
@AFathi Running on an iPhone 8 Plus
Here's what I'm using to fetch user position, and the function that calls it:
func getUserVector() -> (SCNVector3, SCNVector3) { // (direction, position)
if let frame = sceneView.session.currentFrame {
let mat = SCNMatrix4(frame.camera.transform)
let dir = SCNVector3(0, frame.camera.eulerAngles.y, 0)
let pos = SCNVector3(mat.m41, mat.m42, mat.m43)
return (dir, pos)
}
return (SCNVector3(0, 0, 0), SCNVector3(0, 0, -0.2))
}
func addRandom() {
let rand01 = SCNNode()
rand01.geometry = SCNPlane(width: 2, height: 2)
let randomSelection = arc4random_uniform(213)
rand01.geometry?.firstMaterial?.diffuse.contents = UIImage(named: "\(randomSelection).png")
rand01.geometry?.firstMaterial?.isDoubleSided = true
let (direction, position) = getUserVector()
rand01.position = position
let rand01Rotation = direction
rand01.eulerAngles = rand01Rotation
self.sceneView.scene.rootNode.addChildNode(rand01)
}
from arvideokit.
I am experiencing the same problem.
from arvideokit.
My videos are recorded differently than what they are on the screen. My text nodes are oriented differently in the recorded movie than they are in the ARKit SceneView. Can you help?
from arvideokit.
Related Issues (20)
- Square Video Recording HOT 1
- can not install version 1.6.0 HOT 2
- Black Bars on video output HOT 2
- ARVideoKit forces app into portrait mode when starting from landscape left/right. HOT 3
- ARVideoKit License HOT 3
- Crash - [AVAssetWriterInput initWithMediaType:outputSettings:sourceFormatHint:]
- low FPS while recording videos!! HOT 4
- Recorded video shows flat texture on face tracking HOT 2
- Wrong aspect ratio for initial video recording on on iPhone 12 HOT 1
- Plane detection is shown blank HOT 2
- Person segmentation not being recorded HOT 3
- ARFaceTrackingConfiguration not recorder correctly HOT 4
- pod installation issue HOT 2
- high CPU usage HOT 4
- Surface shader result not recorded. HOT 3
- ARFaceTrackingConfiguration front camera audio recording not working.
- Job Open HOT 1
- Only working on iPhone X.
- App freezes for a moment when starting recording HOT 4
- when use ARVideoKit to record an ARSCNView, the loaded AR object shows black in the scene HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arvideokit.