473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Camera Systems

26
Hey there.

I have made a new camera system and I'm having a sort-of issue.

The attached image (Untitled.jpg) will be the image I refer to when I say pink, orange, green or whatever. The black square is my camera and the gray square is a cube that I created to test the camera with.

The image (Untitled2.jpg) is the result of rotating the camera around the X axis by 45 degrees.

I am concerned, because I would expect the cube in Untitled2 to be coming into the frame from the bottom of the screen. When I rotate the camera around the X axis by 45 degrees I'd expect it to follow the pink line. It's not doing that and seems to be following the orange line.

I think I'm missing a step in the creation of the camera. Or I'm not doing something. It's odd. It's like the camera is facing down the blue line. What am I missing?

Thanks for any help and I can provide more info if necessary.
Attached Images
File Type: jpg Untitled2.jpg (4.8 KB, 167 views)
File Type: jpg image.jpg (3.9 KB, 178 views)
Dec 30 '09 #1
3 2018
Jajjo
26
Ok. I sorted it.

Turns out I forgot that using cameras requires you to use the opposite sign for the direction you want.

I was actually moving my camera below the cube, which is where all the odd behavior came from.

Everything is working now.
Dec 30 '09 #2
Jajjo
26
Ok, I have a new problem.

Currently the mouse coordinate returns the position at the blue dot being 0, 0. How do I make it so that the 0, 0 is at the GREEN dot?

I'm currently getting the cursor position with GetCursorPos() and then subtracting the windows x and y position from the cursors current x and y position.
Attached Images
File Type: jpg Untitled.jpg (4.2 KB, 158 views)
Dec 30 '09 #3
Jajjo
26
Never mind.

Sorted it again.

Got the cursor position with GetCursorPos(), then used ScreenToClient() to convert it from screen coords to the client area coords. Worked perfectly.
Dec 30 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Newbie | last post by:
I am doing some robotics projects but my main area of interest is trying out several algorithms for the processing of the stream of data coming from the video. I am wondering what type of camera...
1
by: Pola | last post by:
I am working with IIS. I am using ISAPI Extension dll, that runs on the web server. I am working on the appl that have to receive images(jpeg from video camera) in the real time. the client...
0
by: Manas Mittal | last post by:
Hi I have made a application that uses the Microsoft's old VisSDK software libraries. The software works fine with a Logitech Camera attached. However, I am unable to get it to work using when...
5
by: Brian | last post by:
Hello, I was wondering if anyone knows of an easy way to capture an image from a digital camera and put it into a picturebox. I need to be able to view the video feed and click a capture button...
3
by: Brad Rogers | last post by:
Ive got a project needing to establish a video stream from a camera connected to a USB port. Is there an established way to call out a camera connection dialog box and assign the stream to the...
2
by: Stupid48 | last post by:
I have this Pentax Optio camera and I want to access it via vb.net. I would like to write something where I can snap the picture from the application and it automatically acquires the image from...
2
by: MDausmann | last post by:
Hi I have a camera that mounts as a folder when I plug it in and is available in explorer. I thought it would be possible to access the images on the camera using normal file operations but I...
6
by: ink | last post by:
Hi I am developing on a Symbol MC70 devices and in the past they have always realised an SDK for development including Symbol.Camera Wrapper. However it seems that for the MC35 they are not, or...
2
by: dcblair | last post by:
Hi guys and girls. I can't seem to figure this one out. Here is my setup: Speedtouch 536 DSL Modem, Nexxt 4 Port Wireless Router, CNET CIC 920W Wireless IP Camera. The camera is set up in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.