Giter Site home page Giter Site logo

Comments (2)

SPDEX avatar SPDEX commented on May 10, 2024

Did you find any solution for changing line width?

from arkit-line-drawing.

Jimw338 avatar Jimw338 commented on May 10, 2024

This StackOverflow question seems to answer this. SceneKit doesn't provide a way to do it. But it's built on OpenGL ES, which does. But to do that you have to set a delegate for the view, and define a renderer:willRenderSceneAtTime: and call glLineWidth there.. But that's not using ARKit - I have no idea what to do with an ARKit SceneView.

And apparently you already tried that.

But that was as of Nov 2014. Apple has surely moved SceneKit to using Metal everywhere (iOS and Mac). And they may (read "should") have added something as simple as a "setLineWidthToInPixels" method to SCNGeometry. It seems rather obvious, considering that "line width" has been a rather simple attribute, all the way back to "SetLineWidth(int lineWidth)" back in the good old days with B/W low-res QuickDraw and Pascal.

from arkit-line-drawing.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.