Research Log of Web Science Students

Computer Science is not simply programming

Posts Tagged ‘nyartoolkit

Momentary Video Capture Blinking *minor* Bug and D3D error

leave a comment »

After the CS199 meeting, I managed to work on the JMF’s frame rate which resulted to better output. I tinkered a little bit on the Java3D util files on NyARToolkit because I’m trying to optimize its frame rate and how it projects “inside” the video captured. I unfortunately did not save a copy of my working file so when I got home, my program’s video capture kept blinking (much like double buffering or continuous refreshing). Since it kept getting the same blinking bug on Bootcamp, I restarted to MacOS and used VMWare. When I ran the code, JMF’s capture device did not start and the program ended with the following errors:

DefaultRenderingErrorListener.errorOccurred:

CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context

graphicsDevice = Win32GraphicsDevice[screen=0] canvas = javax.media.j3d.Canvas3D[canvas0,0,0,640×480]

[Java3D]: Using D3DDEVTYPE_REF mode.

[Java3D] Warning : Fail to create hardware D3D Device, switch to use reference rasterizer. – D3DERR_DEVICELOST

There aren’t a lot of information about this error when I googled it. However, I managed to solve it when one reply to a thread suggested that upgrading my Video Card Drivers will make it work. Since I’m using VMWare, I can definitely omit the idea that the problem lies with the hardware drivers. So I reinstalled DirectX since this was where the original problem occurred. Then, it worked! Finally.

Written by rururu

November 23, 2009 at 4:30 pm

Posted in Augmented Reality

Tagged with , , ,

Sleepless Nights, Software Options and Project Demo

leave a comment »

Since Parallels Desktop is proprietary and I only have 13 days left before the trial key expires, I decided to switch back to VMWare. After all, VMWare’s much more stable in terms of hardware support than in VirtualBox.(Although, in Ubuntu, there exists a bug wherein you won’t be able to access the Mac folders) Also, I haven’t tested the iSight Driver on Windows XP using VMWare yet so I might as well try it.

Read the rest of this entry »

Written by rururu

August 22, 2009 at 8:07 pm

JMF and NyARToolkit and Mac OSx

with 5 comments

After iSight worked on Parallels, I started installing Netbeans, JMF, and Java3D on Windows XP. Then I tried running NyARtoolkit for Java with the libraries I gathered earlier. However, the project always catches the exception ArrayIndexOutOfBoundsException 0>=0. It was pointing to the JMFCaptureDevice class. I figured that I should know the List of Capture Devices supported by JMF. So I stumbled upon this website where you could get all the list of supported captured devices by JMF on your laptop. So I compiled it, ran it, and it detected two audio devices.

Patay.

It was unable to detect the video capture.

I checked the JMFRegistry and looked for detected devices. Fortunately, a video capture device was detected. I rebuilt the project and… voila! NyARtoolkit worked.

Written by rururu

August 22, 2009 at 10:34 am

Hardware Issues

with one comment

I think I may have been spending too much time focusing on my virtualization of Ubuntu that I’ve used up all my time reconfiguring and not doing my supposed tasks this vacation.

So far. These are the things that I’ve done with my Macbook.

  • Reinstalled Ubuntu thrice on my Virtualbox. (Problems found : (a.) uvcvideo was already installed but it still can’t detect iSight Camera; modprobe -r uvcvideo returned pipeline null. no camera found. (b) Installed isight-firmware-tools, copied AppleVideoUSBSupport on /lib/firmware, typed ift-extract /lib/firmware/AppleVideoSupport in terminal then rebooted; no camera found; (c) tried to let Ubuntu automatically detect iSight and reinstalled cheese, camorama, and Ekiga; Returned errors: No camera found and cannot find device on /dev/video0)
  • Installed iSight driver on Windows XP but
  • Downloaded and Installed VMWare on Laptop, installed Ubuntu twice on it. Downloaded and installed all Package updates. Same procedures done with Virtualbox. (Problems found : (a.) uvcvideo was already installed but it still can’t detect iSight Camera; modprobe -r uvcvideo returned pipeline null. no camera found. (b) Installed isight-firmware-tools, copied AppleVideoUSBSupport on /lib/firmware, typed ift-extract /lib/firmware/AppleVideoSupport in terminal then rebooted; no camera found; (c) tried to let Ubuntu automatically detect iSight and reinstalled cheese, camorama, and Ekiga; Returned errors: No camera found and cannot find device on /dev/video0)

My other options include using my old Acer 4520 machine(which I’ve already tested on Windows and NyARtoolkit worked) and to reformat my Macbook and dual-boot with Ubuntu and MacOSx. I think it has virtualization issues that’s why I can’t connect with VMWare or Virtualbox.

I’ll be reformatting my laptop a little later so I’d be able to start my 3D modelling afterwards.

*edit*

Another option that I can do is to buy another webcam. Actually it’s the most feasible option I can think of right now. Costly yet might be effective. I’m still on the process of designing and finalizing my game board, however, my main priority is getting my hardware working..

Written by rururu

August 21, 2009 at 2:12 am