Giter Club home page Giter Club logo

kinecttotexturedobj's Introduction

kinectToTexturedOBJ

This uses openNI, but it should work with no problems with ofxKinect or whatever.

if you want to use this core right away you'll need to use gameoverhack's ofxOpenNi experimental branch: https://github.com/gameoverhack/ofxOpenNI/tree/experimental

You'll also need kyle mcdonald's ofxCv addon: https://github.com/kylemcdonald/ofxCv

Right now it's using a recorded ONI file to extract the depth and rgb data. An open file dialog will appear asking for an oni file.

kinecttotexturedobj's People

Contributors

roymacdonald avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kinecttotexturedobj's Issues

Thread 1 error

My build succeeds, but the application icon bounces in my dock without actually opening. XCode console reports "ofxOpenNIDevice[0]: OF_LOG_ERROR: setGeneratorResolution() called on invalid generator!
(lldb)," and it highlights a section of code in the addons > ofxOpenNI > include > openni > XnCppWrapper.h file with a message tag reading "Thread 1: EXC_BAD_ACCESS (code=2, address=0x0)."

I've uploaded a screen-grab of what is going on here: http://itp.nyu.edu/~mae383/thread1_error.mov

Using of_0071, XCode 4, 10.6 Base SDK and Default Apple LLVM compiler 3.1, Native Archicture

Using this with Openni

I can't seem to get this working with openni, are there specific instructions on how to use this? Thanks

No such file - openNITypes.cpp

Hey - I was actually having this issue yesterday and somehow it went away - today no such luck. I get the following error:

clang: error: no such file or directory: '/Users/staff/Websource/openFrameworks/apps/kinect/kinectToTexturedOBJ/../../../addons/ofxOpenNI/src/ofxOpenNITypes.cpp'
clang: warning: -lpthread: 'linker' input unused when '-c' is present
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I'm using the experimental branch of openni from gameoverhack.

Export just vertices in OBJ?

Hi - If I wanted to modify this to export just vertices, not the mesh or material, where would be the best place to start with that?

zScale / translateZ?

Hi - I'm trying to export only a certain z depth to OBJ and I noticed that you have some code in your file that controls zScale and translateZ, but that doesn't seem to have any visual effect within the editor - is this feature set up?

I noticed that within depthToObjExporter.h I can replace

//obj << "v " << r.x << " " << -r.y << " " << -r.z << endl;

with

if (r.z > 400 && r.z < 1100){ //MH - capture only certain z depth
  obj << "v " << r.x << " " << -r.y << " " << -r.z << endl; 
}

but I'd like to be able to set it visually / dynamically.

crash if kinect not plugged in

Hi - I have developed a pretty good workflow for recording an ONI from processing, then exporting that ONI to OBJ files. I even configured it to export at only a certain Z depth range. The only issue I'm running in to at this point is that, if the Kinect is not plugged in, the program crashes.

I get an error in openframeworks > graphics > ofPixels.cpp :

Thread 1: EXC_BAD_ACCESS (code=2, address=0x10)

In this code:

template<typename PixelType>
bool ofPixels_<PixelType>::isAllocated() const{
    return bAllocated;
}

It's strange - in the visual editor, if the kinect is plugged in, when I load the ONI, the depthImage displays properly, looping through the recorded sequence, but the RGB image is actually a live feed from the kinect. If I disconnect the kinect and run the program and select an ONI, the depth image shows up, but the RGB image is completely absent from the editor (and exporting causes the above crash. Any ideas on how to go about solving this one?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.