timscaffidi / ofxVolumetrics

Simple volumetric rendering addon for openFrameworks.
Other
53 stars 15 forks source link

Volumetrics up side down #2

Closed fishkingsin closed 10 years ago

fishkingsin commented 11 years ago

implemented with artoolkitplus

https://vimeo.com/57343052

but the up vector does not sync together

any hints?

timscaffidi commented 11 years ago

Hi, I'd be interested to see your code, can you make a post on the openFrameworks forum with your code? It is hard to tell from the video why this is happening.

fishkingsin commented 11 years ago

source: https://github.com/fishkingsin/ARVolumetrics

and the forum thread: http://forum.openframeworks.cc/index.php/topic,11770

fishkingsin commented 11 years ago

just found that it was the fbo upside down issue

fboRender.draw(0,0,ofGetWidth(),ofGetHeight());

replace with

fboRender.draw(0,ofGetHeight(),ofGetWidth(),-ofGetHeight());

may be it works