Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Anybody up to snuff on DB and video streaming??

Author
Message
Mohawk_91
21
Years of Service
User Offline
Joined: 14th Feb 2004
Location: Orlando
Posted: 30th Nov 2005 22:43
Hey all
I want to use a low power diode about $7. US and a couple of web cams to make a more up to date version of a low cost digitizer for use in making directx models of aircraft. Can DB put the images on screen so I can scan pixels to find the radius then convert to x,y coordinates? For aircraft I will do cross sections so the z value for each set will be fixed and manually entered.
Any code samples u can provide would be appreciated. The two cameras (top and bottom view) are necessary in case of blockage by bug-eye canopies etc. then just use the smallest of the two number sets> Would require a split screen set up.
Thanks

Chuckles
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 1st Dec 2005 14:52 Edited at: 1st Dec 2005 14:53
it would be easier to just take photographs and then take measurements off them by loading em into DB, trying to create some kind of automated system with multiple cameras is going to get messy imo, you would certainly need more than a diode to do that, scanning pixels etc is gonna be the easy bit, I have seen software that is capable of making 3D models from 3/4 veiw snaps all on its own, corrects for perspective etc automaticaly, doing it with manual intervention is relativley simple, just load the image to the screen as a scaled sprite (depending what you intend) and store relative x,y positions for the cursor in an array for later use, v simple example (psuedocode without scaling ability)

dim point(2,1000)
load bitmap "pic.bmp",1
load image "pointer.bmp",1
index=1

repeat

repeat
point(1,index)=mouse x()
point(2,index)=mouse y()
sprite 1,mouse x(),mouse y(),1
until mouseclick()

inc index

repeat
point(1,index)=mouse x()
point(2,index)=mouse y()
sprite 1,mouse x(),mouse y(),1
until mouseclick()

line point(1,index),point(2,index),point(1,index-1),point(2,index-1)

inc index

until spacekey()

cls

for i=2 to index step 2

line point(1,i),point(2,i),point(1,i-1),point(2,i-1)

wait 50

next i

wait key

or something like that, fairly easy to expand on, using sprites would enable you to scale the image if you wanted to use more precision or stretch it for example (remember this is off the cuff, it might not work first try due to typos or logic errors etc).



Do parachute manufacturers have a refunds policy?

Login to post a reply

Server time is: 2025-05-22 21:27:55
Your offset time is: 2025-05-22 21:27:55