camera

iPhone camera images as OpenGL ES textures

Is it possible to use an image captured with the iPhone's camera as a texture that is then manipulated in OpenGL ES (flag wave effect, etc.)? The main problem being the size of the iPhone screen being 320x480 (no status bar) and thus the image won't have dimensions that are power-of-2. Is the main option copying it into a 512x512 textu...

Custom iPhone camera controls (not using UIImagePickerController)

While I understand that in order for an iPhone application to be accepted on the App Store, one requirement is that only documented libraries are to be used. If this is the case, how are certain applications such as "Night Camera" and "Camera Plus" using a camera control that seems to be something other than the one contained within UII...

UIViewController memory leak issues

Similar to the known memory leak issue regarding creating and destroying an instance of the UIImagePickerController, I'm finding similar problems regarding instances of the UIViewController class. The recommended way to use the UIImagePickerController is to create the instance once and keep it around for the lifetime of the application,...

Moving from Wiimote to camera?

I've been doing some Johnny Chung Lee-style Wiimote programming, and am running into problems with the Wiimote's relatively narrow field-of-view and limit of four points. I've bought a Creative Live! camera with an 85-degree field of view and a high resolution. My prototype application is written in C#, and I'd like to stay there. ...

How can I find the 3D coordinates of a projected rectangle?

Hello everybody. I have the following problem which is mainly algorithmic. Let ABCD be a rectangle with known dimensions d1, d2 lying somewhere in space. The rectangle ABCD is projected on a plane P (forming in the general case a trapezium KLMN). I know the projection matrix H. I can also find the 2D coordinates of the trapezium edge p...

How do I save data from Camera to disk using MediaStore on Android?

For my application, I'd been using my own Camera class for taking images and my own database but soon enough I couldn't really keep up with changes and I decided to use the built in camera application in Android to do the job, but I can't seem to get it to save file. What am I missing here? The application seems to save the file but it's...

How can I connect a TCP/IP Camera to the PC?

I want to write an application that can capture from a TCP/IP camera. I haven't bought the camera yet. I have the following questions: What should I look for in the camera? Do all cameras have SDKs or APIs for that? thanks ...

Problem with light and depth in OpenGL

glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_MODELVIEW); ifstream myFile("Coordinates.txt"); if (!myFile.is_open()) { cout << "Unable to open file"; exit(1); // terminate with error } // Light values and coordinates float ambientLight[] = { 0.3f, 0.3f, 0.3f, 1.0f }; float diffuseLight[] = { 0.7f, 0.7f, 0.7f, 1.0f }; float specular[...

Changing video resolution in n95 with J2ME

We've tried using the parameters in the capture url as documented: capture://video?height=480&width=360 No combination of width and height works. We always get an error -6 when creating the player. capture://video works fine but the videos are ridiculously small. Is it possible to record at a higher resolution on the N95? ...

XNA 2D Camera Engine That Follows Sprite

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects like zoom, panning, shake, and other effects. Anybody have a solid example of how this is done, preferably in a GameComponent? ...

How can I programmatically take a picture using a webcamera and save it to a file?

Preferably, answers will be in a .Net language. However, all answers are very welcome. Thank you,in advance, for your assistance. ...

Converting stream of jpg files to FLV stream

I work with a Panasonic hcm280a camera that can be controlled by my software, It generates a stream of jpeg files that are huge and I want to convert this stream to a FLV stream preferably with a good compressional ration Does FFMpeg do that? I am basically looking for an off the shelve open source software (or commercial software) that...

How can I make my mouse control the camera like a FPS using OpenGL/SDL?

I've created this basic 3D Demo using OpenGL/SDL. I handled the keyboard callback so I can "strafe" left and right using 'a' and 's' and move forward and backward using 's' and 'w'. However, I would like to now make it so I can control the direction my camera is "looking" based off my mouse movements. Just like in a FPS shooter when...

How could simply calling Pitch() and Yaw() cause the camera to eventually Roll()?

I'm coding a basic OpenGL game and I've got some code that handles the mouse in terms of moving the camera. I'm using the following method: int windowWidth = 640; int windowHeight = 480; int oldMouseX = -1; int oldMouseY = -1; void mousePassiveHandler(int x, int y) { int snapThreshold = 50; if (oldMouseX != -1 && oldMouseY !...

control wireless security camera using .NET program

this wireless camera says it has motion detection amoung its features. link text Can/How can I control such a camera from my .NET code? I want my code to be told when motion is detected so that the code can instruct the lights to be turned on ( that is the next question ). Or have the .net code tell the camera to look in another direct...

Can someone explain how I can use Quanternions to use the mouse to look around like a FPS?

Yesterday I asked: How could simply calling Pitch and Yaw cause the camera to roll? Basically, I found out because of "Gimbal Lock" that if you pitch + yaw you will inevitably produce a rolling effect. For more information you can read that question. I'm trying to stop this from happening. When you look around in a normal FPS shooter ...

looking for some network video camera to program against

Hello everyone, I am looking for a network camera which I could program against the following functions, I can plug-in the camera into network cable, then it could work to capture video independently, no need to plug-in into a computer to make it work; I can remotely control the camera, e.g. control its start/stop/direction; I can...

.Net MTP / PTP Wrapper?

I'm writting a hobby project to deal with files on cameras. Previously I found issues with the camera and the FolderBrowserDialog. What I believe is happing is that the camera is using MTP or PTP (Picture Transfer Protocol not peer-to-peer). In order to make interfacing with the camera more seamless I'd like to use PTP or MTP to access...

3D Camera Zoom and follow physics in java?

I'm trying to make it so that no matter how far apart two objects are they'll both remain on screen. I'm using JOGL, but that shouldn't matter as I just need help with the math. This is what I have so far: float distance = (float) ((Math.sqrt((p1.x - p2.x) + (p1.y - p2.y)))); float camx = (float)((p1.x + p2.x) * 0.5); float camy = (flo...

How do you disconnect from a camera using Flash AS3?

I have a flash application that connects to a users webcam using public static function getCamera(name:String = null):Camera When the application is done with the use of the webcam it needs to be disconnected since its making use of resources unnecessarily.How can I do this? Apologies for being a "micro-efficiency" freak. I am not e...