ProductLM
YaBB Newbies
Offline
Posts: 39
Re: 30 Webcam Feeds = Very Slow
Reply #23 - Dec 11th , 2009, 1:22pm
Yay, the code is now displaying feeds, but it is all of the same image. I'm wanting each of the 30 feeds to display different images. How do I do that? String[] feeds = new String[30]; PImage[] imgfeeds = new PImage[30]; void setup(){ feeds[0] = ("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/centralMkt.jpg"); feeds[1] = ("http://www.adelaidecitycouncil.com//NetcatApps/webcam/images/bellnth.jpg"); feeds[2] = ("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/rundleEast.jpg"); feeds[3] = ("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/sk8cam.jpg"); feeds[4] = ("http://www.adelaidecitycouncil.com//NetcatApps/webcam/images/bellsth.jpg"); feeds[5] = ("http://www.abbeyroad.com/webcam/crossing.jpg?cacheKiller=362683"); feeds[6] = ("http://server.fishycam.com/fishycam.jpg?time=1260184950863"); feeds[7] = ("http://www.cph.dk/CPHdata/webcam/CPH_spot1.jpg?1260188477647"); feeds[8] = ("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/rundle.jpg"); feeds[9] = ("http://images.ibsys.com/sea/images/weather/auto/queenannecam_640x480.jpg?"); feeds[10] = ("http://www.pani.com/webcam/airport_tower.jpg?"); feeds[11] = ("http://www.cph.dk/CPHdata/webcam/CPH_spot3.jpg?1260369631305"); feeds[12] = ("http://www.camchickens.com/webcam.jpg"); feeds[13] = ("http://www.terrapin-gardens.net/images/webcam.jpg"); feeds[14] = ("http://stream.fisheyeview.com/FVCam.jpg"); feeds[15] = ("http://www.cs.ualberta.ca/~lake/cam/jpg/large/201.jpg"); feeds[16] = ("http://webcams.pancanal.com/webcam/miraflores.jpg"); feeds[17] = ("http://www.oceanvillageholidays.co.uk/webcam/ov1.jpg"); feeds[18] = ("http://brooklyn-bridge.mobotixcam.de/record/current.jpg?rand=380424"); feeds[19] = ("http://www.outercam.co.uk/ssc/camera3.jpg?1260446915311"); feeds[20] = ("http://www.xs4all.nl/~twocats/cam/Cam-A.jpg"); feeds[21] = ("http://www.sat.dundee.ac.uk/webcam/cam0.jpg"); feeds[22] = ("http://facweb.furman.edu/~rbryson/dramadept/TheatreCamPic.jpg"); feeds[23] = ("http://www.cbc.ca/bc/webcam/images/webcam.jpg"); feeds[24] = ("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); feeds[25] = ("http://www.jb.man.ac.uk/common/camera30sec.jpg?dummy=1260456117729"); feeds[26] = ("http://ecoast.vs.oiccam.com:443/ftp/capcom/jackalope/image.jpg?rand=14:52:10"); feeds[27] = ("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); feeds[28] = ("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); feeds[29] = ("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); imgfeeds[0] = loadImage("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/centralMkt.jpg"); imgfeeds[1] = loadImage("http://www.adelaidecitycouncil.com//NetcatApps/webcam/images/bellnth.jpg"); imgfeeds[2] = loadImage("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/rundleEast.jpg"); imgfeeds[3] = loadImage("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/sk8cam.jpg"); imgfeeds[4] = loadImage("http://www.adelaidecitycouncil.com//NetcatApps/webcam/images/bellsth.jpg"); imgfeeds[5] = loadImage("http://www.abbeyroad.com/webcam/crossing.jpg?cacheKiller=362683"); imgfeeds[6] = loadImage("http://server.fishycam.com/fishycam.jpg?time=1260184950863"); imgfeeds[7] = loadImage("http://www.cph.dk/CPHdata/webcam/CPH_spot1.jpg?1260188477647"); imgfeeds[8] = loadImage("http://www.adelaidecitycouncil.com/netcatapps/webcam/images/rundle.jpg"); imgfeeds[9] = loadImage("http://images.ibsys.com/sea/images/weather/auto/queenannecam_640x480.jpg?"); imgfeeds[10] = loadImage("http://www.pani.com/webcam/airport_tower.jpg?"); imgfeeds[11] = loadImage("http://www.cph.dk/CPHdata/webcam/CPH_spot3.jpg?1260369631305"); imgfeeds[12] = loadImage("http://www.camchickens.com/webcam.jpg"); imgfeeds[13] = loadImage("http://www.terrapin-gardens.net/images/webcam.jpg"); imgfeeds[14] = loadImage("http://stream.fisheyeview.com/FVCam.jpg"); imgfeeds[15] = loadImage("http://www.cs.ualberta.ca/~lake/cam/jpg/large/201.jpg"); imgfeeds[16] = loadImage("http://webcams.pancanal.com/webcam/miraflores.jpg"); imgfeeds[17] = loadImage("http://www.oceanvillageholidays.co.uk/webcam/ov1.jpg"); imgfeeds[18] = loadImage("http://brooklyn-bridge.mobotixcam.de/record/current.jpg?rand=380424"); imgfeeds[19] = loadImage("http://www.outercam.co.uk/ssc/camera3.jpg?1260446915311"); imgfeeds[20] = loadImage("http://www.xs4all.nl/~twocats/cam/Cam-A.jpg"); imgfeeds[21] = loadImage("http://www.sat.dundee.ac.uk/webcam/cam0.jpg"); imgfeeds[22] = loadImage("http://facweb.furman.edu/~rbryson/dramadept/TheatreCamPic.jpg"); imgfeeds[23] = loadImage("http://www.cbc.ca/bc/webcam/images/webcam.jpg"); imgfeeds[24] = loadImage("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); imgfeeds[25] = loadImage("http://www.jb.man.ac.uk/common/camera30sec.jpg?dummy=1260456117729"); imgfeeds[26] = loadImage("http://ecoast.vs.oiccam.com:443/ftp/capcom/jackalope/image.jpg?rand=14:52:10"); imgfeeds[27] = loadImage("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); imgfeeds[28] = loadImage("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); imgfeeds[29] = loadImage("http://www.outercam.co.uk/ssc/camera2.jpg?1260455145216"); size(1280, 800); for (int i = 0 ; i < 30 ; i++) { imgfeeds[i] = loadImage(feeds[i]); } } void draw(){ int i = (int)random(30); imgfeeds[i] = loadImage(feeds[i]); delay(1000); image(imgfeeds[i], 0, 0, (width/6), (height/5)); image(imgfeeds[i], (width/6), 0, (width/6), (height/5)); image(imgfeeds[i], (width/6)*2, 0, (width/6), (height/5)); image(imgfeeds[i], (width/6)*3, 0, (width/6), (height/5)); image(imgfeeds[i], (width/6)*4, 0, (width/6), (height/5)); image(imgfeeds[i], (width/6)*5, 0, (width/6), (height/5)); }