any cam library that runs well on irrlitch on windows?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
saulotmalo
Posts: 54
Joined: Wed Oct 04, 2006 6:56 am

any cam library that runs well on irrlitch on windows?

Post by saulotmalo »

well this is my question :

is any cam library that runs well on irrlitch on windows?

thanks
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess all which provide memory access to the camera image. Simply copy it to the texture you are displaying. Just as the movie players.
saulotmalo
Posts: 54
Joined: Wed Oct 04, 2006 6:56 am

Post by saulotmalo »

the problem is that when i get an image from the camera( webcam) the irrlicht stops, also i've created a thread for the webcam adquision... could this be problem of the irrlicht priority schedule?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

No, you should simply have a pointer to the image you got from the camera. Then lock the texture, copy from that image, and unlock. You might want to skip this copying most frames, otherwise your framerate will drop heavily. But besides that all should run fine.
saulotmalo
Posts: 54
Joined: Wed Oct 04, 2006 6:56 am

Post by saulotmalo »

sorry, can you put an example using some library of camera adquisition and irrlicht? I think i've tried to work using the pointer to the image from the webcam, but it doen't worked at all :( i was really slow...

now i'm looking for a thread_schedule called SCHED_OTHER where i'll can manage the priority of the webcam( i only need about 10 images per second to my game)

thanks!, you're always helping :)
Post Reply