yshrkt / VuforiaSampleSwift

Vuforia sample code with SceneKit using Swift
MIT License
123 stars 24 forks source link

Unable to bind video background texture!! #40

Closed NickAtGit closed 6 years ago

NickAtGit commented 6 years ago

Hi, I added the latest SDK to the app (vuforia-sdk-ios-7-0-47) and I get the app running, but get this error. Also you are mentioning the Vuforiat Sample Targets download in the description... Where can I find them? I'm using an iPhone X with iOS 11.3 Beta with XCode 9.3 Beta.


INFO/AR(5601) 2018-02-18 18:53:07: Vuforia SDK version 7.0.47
INFO/AR(5601) 2018-02-18 18:53:07: Detected and enabled use of Apple ARKit
2018-02-17 18:53:07.572662+0100 VuforiaSampleSwift[5601:1564415] Rendering mode set to: OpenGL ES 2.0
2018-02-17 18:53:07.694598+0100 VuforiaSampleSwift[5601:1564415] Rendering mode set to: OpenGL ES 2.0
DEBUG/AR(5601) UIView has CAEAGLLayer layer class
DEBUG/AR(5601) UIView responds to selector renderFrameVuforia
2018-02-17 18:53:07.747458+0100 VuforiaSampleSwift[5601:1564459] loadObjectTrackerDataSet (Test.xml)
INFO/AR(5601) 2018-02-18 18:53:07: ObjectTracker: Successfully created dataset
2018-02-17 18:53:07.749188+0100 VuforiaSampleSwift[5601:1564459] INFO: successfully loaded data set
2018-02-17 18:53:07.776433+0100 VuforiaSampleSwift[5601:1564459] Successfully activated data set.
did finish preparing

2018-02-17 18:53:07.787957+0100 VuforiaSampleSwift[5601:1564459] VideoBackgroundConfig: size: 1370,2436
2018-02-17 18:53:07.787996+0100 VuforiaSampleSwift[5601:1564459] VideoMode:w=1280 h=720
2018-02-17 18:53:07.788015+0100 VuforiaSampleSwift[5601:1564459] width=1125.000 height=2436.000
2018-02-17 18:53:07.788040+0100 VuforiaSampleSwift[5601:1564459] ViewPort: X,Y: -122.5,0.0 Size X,Y:1370.0,2436.0
2018-02-17 18:53:07.810423+0100 VuforiaSampleSwift[5601:1564108] Unable to bind video background texture!!
bpudenz commented 6 years ago

I had this problem when adding to a new project. I was copy/pasting the VuforiaManager folder but missing the shaders reference folder inside. Add the folder and 2 sub files and you've got it.

mbodge commented 6 years ago

@bpudenz I don't see those directories in my download...any ideas?

yshrkt commented 6 years ago

@mbodge you should copy shader file below: https://github.com/yshrkt/VuforiaSampleSwift/blob/master/VuforiaSampleSwift/Background.fragsh https://github.com/yshrkt/VuforiaSampleSwift/blob/master/VuforiaSampleSwift/Background.vertsh

NickAtGit commented 6 years ago

Using XCode 9.2 solved the problem for me