Thx Carsten, hmm i think arDetectMarker is crashing as far as i found out (copied the results from image->getData with memcpy, and then passed this pointer that should have nothing to do with OpenSG any more).
Well i started to use another approach, not using Direct Show, but directly grabbing the frame from ARToolkit, and passing the data to the image. Seems promising, but still have some troubles displaying the video frame -> it's appearing three times and in grayscale. But maybe this is just a format error. Keep you updated. cheers Georg 2010/5/10 Carsten Neumann <[email protected]> > Hello Georg, > > Georg Stevenson wrote: > > But when calling arDetectMarker, i need to pass the image data so that > > ARToolkit can process ist. > > > > For that image->editData() is used, > > > > So the call arDetectMarker(image->editData(), thresh, &markers, > > &numberOfMarkers) is always crashing. > > > > (editData is used because arDetectMarker doesn’t take a const UInt8*). > > > > this is always crashing. > > is the editData() call crashing or does arDetectMarker crash? Is the > image correctly resized and does it have the right amount of memory > allocated? > Do you have a backtrace? > > > I suspect some multithreading issues, could someone help me on that > please ? > > which threads are involved? What are they doing and do multiple threads > work on the same OpenSG aspect simultaneously? > > Cheers, > Carsten > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users >
------------------------------------------------------------------------------
_______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
