Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofCamera orbit angle bug?

$
0
0

@Autofasurer wrote:

Setting the latitude to 90º doesn't seem to generate the right image (see attachment)?
As you can see top and bottom are offset...What's going on here?

Simple setup:
.h

#pragma once

#include "ofMain.h"

class ofApp : public ofBaseApp{

	public:
		void setup();
		void update();
		void draw();
    
    ofSpherePrimitive   sphere;
    ofCamera            cam;
    
};

.cpp:

//--------------------------------------------------------------
void ofApp::setup(){
    ofBackground(0);
    sphere.set(250, 16);
    cam.orbit(0, 90, 500);
}

//--------------------------------------------------------------
void ofApp::draw(){
    cam.begin();
    sphere.drawWireframe();
    cam.end();
}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles