Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change line width, glLineWidth not effective #9

Open
vincentschen opened this issue Jul 30, 2017 · 2 comments
Open

Unable to change line width, glLineWidth not effective #9

vincentschen opened this issue Jul 30, 2017 · 2 comments

Comments

@vincentschen
Copy link

This line doesn't seem to be affecting the line width: https://github.com/lapfelix/ARKit-line-drawing/blob/master/ARKitDraw/ViewController.swift#L77

Do we have all the necessary imports/packages?

@vincentschen vincentschen changed the title Unable to change line width, glLineWidth not effect Unable to change line width, glLineWidth not effective Jul 30, 2017
@SPDEX
Copy link

SPDEX commented Sep 4, 2017

Did you find any solution for changing line width?

@Jimw338
Copy link

Jimw338 commented Nov 19, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants