-
Notifications
You must be signed in to change notification settings - Fork 50
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
How to call glPointSize() (or the SceneKit equivalent) when making custom geometries using SceneKit and SCNGeometryPrimitiveTypePoint #17
Comments
Pretty sure they’ve moved over to metal, especially on iOS. You may want to check on how to do it in Metal..
|
Thanks for the prompt reply @drwave, I'll look into it and see what I can dig up! |
|
I'm riffing off of Chapter 7, page 97 and have run into an issue I can't figure out. I've posted my question to SO as well, but will repost here. Thanks again for this great book @d-ronnqvist!
I'm writing an iOS app that renders a pointcloud in SceneKit using a custom geometry. This post was super helpful in getting me there (though I translated this to Objective-C), as was David Rönnqvist's book 3D Graphics with SceneKit (see chapter on custom geometries). The code works fine, but I'd like to make the points render at a larger point size - at the moment the points are super tiny.
According to the OpenGL docs, you can do this by calling
glPointSize()
. From what I understand, SceneKit is built on top of OpenGL so I'm hoping there is a way to access this function or do the equivalent using SceneKit. Any suggestions would be much appreciated!My code is below. I've also posted a small example app on bitbucket accessible here.
The text was updated successfully, but these errors were encountered: