Open r03ert0 opened 10 years ago
sorry for such a late response! i revisited the project and made a scene where adding objects should come a little more naturally. you can check the place where i added a chessboard of tiles on the ground. regarding your code: i learned OpenGLES, so i'm unfamiliar with GLBegin and GLEnd. If the geometry is correct, try putting it between a glpushmatrix and a glpopmatrix, and try plugging it into the scene in the same place where the chessboard tiles are generated, lemme know what happens then.
thank you!
I had to to change the code in OculusView.h to this to make it compile (adding 3 more #imports):
//
// GLView.h
// SimpleOculus
//
// Created by Robby Kraft on 1/25/14.
// Copyright (c) 2014 Robby Kraft. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <CoreGraphics/CoreGraphics.h>
#import <OpenGL/OpenGL.h>
#import <OpenGL/gl.h>
@interface OculusView: NSOpenGLView
@end
thanks, roberto
thanks! included in the project lemme know if you are having any more issues with squashed geometry!
I finally experienced squished geometry! something is very wrong! thanks for pointing this out. I fixed something momentarily so it's no longer inducing quite a headache. I got a hold my old work's Oculus, I'm gonna dive into this.
Hello! Thanks for the project and the fix-ups. As a beginner in OpenGL and OVR, now I still fail to add objects in the scene. Would you mind share a way or just share your code to show how to build a cube in the scene, and further, what if the cube is supposed to be rotating ? Thank you so much!
hello, thank you for SimpleOculus! it was just what i needed to start going with OVR and cocoa.
One question. I tried to add a cube to the panorama, but the interpupillary distance was awkward... what is the appropriate way of adding objects? This is what I added to Scene.mm, to try to display a cube:
Also... the cube renders all squished...
thank you in advance for your help! roberto