Questions tagged [scntechnique]

An SCNTechnique object describes a rendering technique that uses one or more additional drawing passes, each of which uses a custom OpenGL shader program to augment or postprocess SceneKit’s rendering of the scene.

21 questions
1
vote
0 answers

iOS SceneKit SCNTechnique Metal vertex and fragment methods not work in iOS12

I have a dictionary file for the SCNSceneView.technique as below:
kobunketsu
  • 157
  • 2
  • 10
1
vote
1 answer

Low cost Image to NSData conversion for feeding SCNTechnique's sampler2D inputs

Sometimes the only way to pass precious data from CPU to GPU is by hiding it in textures. I tried to trick SCNTechnique and simply pass [NSData dataWithBytes:length:] or a CGDataProviderRef containing my neatly prepared raw pixel data bytes, but…
diviaki
  • 428
  • 2
  • 15
0
votes
1 answer

How do I get a SceneKit SCNTechnique to work with includeCategoryBitmask?

I want to use SCNTechnique to make many SCNNodes (angle joint Gizmos) with a assigned categoryBitmask draw on top of other SCNNodes. I used the exact approach by Simeon on this SO thread (see Gizmo.metal) to make it work with one SCNNode but I need…
bhartsb
  • 1,316
  • 14
  • 39
0
votes
0 answers

How add custom SCNTechnique pass to specific area, without messing with the rest of Sceneview fullscreen area?

I have a ARSCNView (could be a SCNView), and i need a small rectangle area to show a different perspective from the same scene, live. I CAN NOT USE multiple SceneViews, because if you're doing anything advanced you will know it will mess a lot of…
Alan Cruz
  • 83
  • 1
  • 11
0
votes
1 answer

Is it possible to use CIFilters directly in Metal?

I'm building an iOS App using SceneKit and ARKit. I'm using SCNTechnique to modify the rendering of SceneKit and draw a part of the scene in a stylized way. Currently, I'm using a simple metal fragment shader to draw the scene in black and…
lzsl
  • 41
  • 1
  • 3
0
votes
1 answer

Why does my scene camera only show black screen when I use SCNTechnique?

So I'm using SceneKit with iOS 12 (Swift 4.2), and I want to add a twirl/bump distortion to the camera. I found something similar here (Fish Eye Wide-angle with a Scene Kit Camera: Possible?) that supposedly creates a barrel distortion. But when I…
1
2