Hello,
I am trying to create a real time GPU Ray Tracer embedded in Augmented Reality using the Vuforia SDK. The ray tracer is done by rendering a texture on a Raw Image object nested inside a Canvas object.
It works fine in android when no augmented reality objects are used but when I embed the canvas on an ImageTarget in Vuforia, the splash screen appears but the screen remains blank.
After some debugging, I sniffed out that the bug is caused by the Compute Shader dispatch being called from the update function.
private void Update() {
UpdateTextureSize ();
shader.SetFloat ("globalTime", Time.time);
shader.Dispatch (0, numThreadGroupsX, numThreadGroupsY, numThreadGroupsZ);
}
![alt text][1]
![alt text][2]
Thank you very much for your help!
[1]: /storage/temp/109906-computeshaderraytracing1.png
[2]: /storage/temp/109907-arraytracer.png
↧