Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have been experimenting with Apple's new SceneKit for fun, but I cannot seem to figure out how to input vertex data without loading a .dae file.

Does anybody who has been testing SceneKit have any idea how to set or modify vertex data?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

SceneKit is primarily a scene graph API and it isn't designed to be a complete solution for all your rendering needs; it's designed to augment existing APIs such as GLKit and CoreAnimation.

Primarily the focus of the API is loading serialized geometry assets (.dae files) and organizing them in a scene graph. There aren't very many robust alternative methods to get geometry into the API.

However, you may find SCNGeometry's geometryWithSources: selector to be what you need. Here's an example in practice.

share|improve this answer
    
Thank you very much. –  Justin Jan 21 '13 at 17:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.