tag:blogger.com,1999:blog-61626492722100397722024-03-14T06:35:16.051+01:00The sLideRPaolo Emilio SelvaThe_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.comBlogger116125tag:blogger.com,1999:blog-6162649272210039772.post-22240496556680164352013-12-03T21:18:00.002+01:002013-12-03T21:18:27.414+01:00sliBase updated for maya2011 and maya2013Details here: http://www.paoloemilioselva.it/2008pages.php?page=slibaseThe_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-27426010108352353322010-03-23T08:17:00.003+01:002010-03-23T08:30:03.019+01:00Una vita davanti alla tastiera...Alcuni dicono che passiamo almeno metà della nostra vita dormendo, o facendo qualcosa che possiamo definire la somma di dormire e riposare e oziare.<br />Io passo la maggior parte della mia vita davanti la tastiera di un computer, e ancora non so se è un bene o un male (eh, lo so cosa pensate...).<br />Dormo in media 7 ore che sono piu che sufficienti per farmi riposare ma soprattutto per farmi svegliare ed essere pronto e attivo in 5min.<br />in un'oretta circa sono seduto davanti la scrivania del mio ufficio, tra lavarmi, vestirmi, fare colazione ed arrivare in Weta. A questo punto, per almeno 10/12 ore rimango seduto alla sedia davanti al computer, togliendo una mezzora di pause varie caffè/tea e un'ora circa di pausa pranzo. Poi torno a casa e che faccio? Scrivo sul blog, do da mangiare a quella bestiolina digitale azzurrina in Petsociety (eh, lo so), controllo qualche battibecco divertente su RenderGlobal, rispondo ad un po di email qua e la, mi vedo un film, ascolto un po di musica, ceno. Insomma, il computer è sempre in mezzo al ca... ehm, è un compagno sempre presente. Posso dire di passare una vita davanti alla tastiera? Vabbeh, altri 15minuti buttati in un post inutile :PThe_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com3tag:blogger.com,1999:blog-6162649272210039772.post-66244682200448867022010-03-20T05:49:00.002+01:002010-03-20T06:10:41.360+01:00I'm still alive...Un giorno mi ritrovai a leggere un blog di un'amica, con una fantastica descrizione della sua vita nel suo nuovo posto di lavoro, e ho pensato "dovrei fare anche io un blog!". Aspetta un attimo! io ce l'ho un blog! Si, fermo al 16 Agosto 2008, ouch!<br />tutta colpa di Facebook... ho tradito blogspot per mettere tutti i miei caxxi su Facebook!<br />E così oggi ho deciso: resuscito questo blog! ;)The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com4tag:blogger.com,1999:blog-6162649272210039772.post-63781361533722944612008-08-16T05:46:00.002+02:002008-08-16T06:04:59.657+02:00New Adventure in New Zealand<strong>sorry, just for italians ;)</strong><br />Ehi!!!! beh, dopo un po di problemi (alcuni ancora da risolvere) riesco a scrivere nuovamente sul blog... ma stavolta a testa in giu!<br />Mi trovo a Wellington, per questa esperienza di un anno in Weta come Scientific Coder... che parolona... ma chi e' uno scientific coder?!?! non lo so... quando lo capiro' ve lo diro, promesso!<br />qui e' tutto abbastanza diverso da come ho vissuto finora, nel senso che si potrebbe definire una capitale ma non c'e' caos, non c'e' disordine...sembra tutto molto pacato. Poce persone, abbastanza gentili tutti... ma sembra una citta' pronta ed organizzata al meglio per ospitare milioni di persone!<br />ci sono piu ristoranti di quanti la popolazione possa riempirne... piu spazio di quanto la popolazione possa occuparne... piu strade di quante le macchine posso riempirne... piu grattacieli di quanti i lavoratori possano riempirne.<br />beh, si sta bene, decisamente, per chi ama la vita tranquilla. anche se... dopo piu di una settimana, conoscendo gli "italiani locali" (altri wetani immigrati in NZ) abbiamo scoperto alcuni localetti niente male e strano ma vero... pieni di gente ubriaca!!<br />devo dirlo, dentro questi locali sembrava di stare a Londra... ma nei giorni precedenti ci eravamo abbastanza demoralizzati, anche perche' forse ci aspettavamo un po londra (non proprio lo stesso casino, ma diciamo una Nettuno in estate).<br />poi, piano piano, realizzando che effettivamente qui e' inverno adesso, ci siamo un po rassegnati alla situazione... poi, grazie ancora a maruzzella e marco, abbiamo scovato la vita notturna di wellington! :)<br />aaahhhh..... dopo una giornata di lavoro, trovare un localetto con musica, gente che balla ubriaca, birra e amici, ci sta tutto! :)<br />ah, in tutto questo una bella gallery su picasa, nuova nuova, ci stava tutta, e piano piano la stiamo riempiendo. <a href="http://picasaweb.google.com/jelena.slider">http://picasaweb.google.com/jelena.slider</a><br />ma parliamo del lavoro... sono emozionato, devo dirlo! poi una volta entrato e come aver conosciuto brad pitt e vedere che la mattina anche lui corre in bagno per aver mangiato troppo la sera e lo trovi a spremersi brufoli davanti allo specchio ;)<br />il mio desk da coder sta in mezzo ai compositor... immagino non ci siano altri posti, ma i compositor sono simpatici, l'unico problema e' che stanno al buio!!!!!!!! argh!<br />io devo vedere la tastiera... a loro basta la tavoletta grafica e una manina sulla tastiera per premere ognitanto F1, F2 o altri tastini a caso ;)<br />cmq, e' mooolto fico il tutto.<br />dovevo completare un programmino per luca... ok, luca, non l'ho completato ancora ma sta ad un ottimo punto, come hai letto dalla mail :P<br />questa settimana abbiamo avuto molti grattacapo per trovare casa.<br />l'avevamo trovata, poi abbiamo scoperto che sara' disponibile solo dal 21 settembre, quindi abbiamo visto altre case, pero' nessuna come quella..e quindi alla fine la decisione e' aspettiamo il 21 settembre e nel frattempo ci buttiamo un lodge dove troviamo spero un appartamentino a 100dollari al giorno.<br />pero', la futura casa li vale tutti!! :)<br /><br />vabbeh, per adesso stacco... un salutone a tutti a testa in giu :)The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com4tag:blogger.com,1999:blog-6162649272210039772.post-23451110855680373232008-05-31T13:08:00.003+02:002008-05-31T16:05:09.776+02:00CityGenerator v0.80601 for XSI 6.02 (32bit)This new version needs no more installation step, just execute the citygenerator_interface.js from your XSI editor.<br />Take a look at the <a href="http://www.paoloemilioselva.it/citygenerator/citygenerator_v0.80601_001.mov">new video</a> and some screenshots.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/citygenerator/interface001_step0.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://www.paoloemilioselva.it/citygenerator/interface001_step0.jpg" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/citygenerator/interface001_step1.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://www.paoloemilioselva.it/citygenerator/interface001_step1.jpg" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/citygenerator/interface001_step3.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://www.paoloemilioselva.it/citygenerator/interface001_step3.jpg" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/citygenerator/interface001_step2.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://www.paoloemilioselva.it/citygenerator/interface001_step2.jpg" alt="" border="0" /></a><br /><br /><span style="font-weight: bold;">NOTE: after unit creation, remember to change the BMP file with a render fo your view. I'm working to make it automatically. Maybe on the next release.</span><br /><br />Download from <a href="http://www.paoloemilioselva.it/citygenerator/citygenerator_v0.80601.zip">here</a>.The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com9tag:blogger.com,1999:blog-6162649272210039772.post-16699958804826717082008-05-23T03:35:00.004+02:002008-05-23T14:53:21.443+02:00CityGenerator v0.80523 for XSI 6.02(download)<span style="font-weight:bold;">UPDATE (IMPORTANT): to install, put the folder into your Softimage-User folder, usually is something like "C:\users\username\Softimage\SoftimageVersion\"<br />Here there are others folders like Applications and Plugins.<br />Final folder for the installation has to be:<br />"C:\users\username\Softimage\SoftimageVersion\builder"<br />where "builder" contains all the CityGenerator files and folders</span><br /><br />Finally, a downloadable version for XSI 6.02<br />This is a very rough version. So, sorry about any bugs ;)<br /><a href="http://www.paoloemilioselva.it/blogimgs/mydownloads/citygenerator_v0.80523.zip ">http://www.paoloemilioselva.it/blogimgs/mydownloads/citygenerator_v0.80523.zip </a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-18290812130698822008-05-21T19:32:00.003+02:002008-05-21T19:38:29.527+02:00City Generator (blobDetection + buildings_generator)Finally, I mixed my two plugins to create this CityGenerator in XSI: by a blob detection on a map (plus an elevation map in b&w) it's possible to create the layout for the buildings and with my buildings_generator it's possible to create any kind of building using a library of "units" (a unit is the smaller part of a building) or creating from scratch.<br />Take a look at this video.<br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/citygenerator.mov">http://www.paoloemilioselva.it/blogimgs/mycodes/citygenerator.mov</a><br /><br />soon a downloadable version and a version also for Maya and 3dsmax.The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com1tag:blogger.com,1999:blog-6162649272210039772.post-41346684726014403372008-05-13T03:40:00.003+02:002008-05-13T19:57:30.589+02:00blob detection in XSI with C++ and JScript - UPDATEUPDATE VIDEO: <a href="http://www.paoloemilioselva.it/blogimgs/mycodes/detection2.mov">http://www.paoloemilioselva.it/blogimgs/mycodes/detection2.mov</a><br /><br />Ok, I changed the core of this plugin.<br />All the detection now is done with C++ (a custom command to detect blobs from an image) and the interface to use it is done in JScript in XSI.<br />Take a look at this video<br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/detection.mov">http://www.paoloemilioselva.it/blogimgs/mycodes/detection.mov</a><br /><br />this is the first step to locate buildings directly from a google map (blob detection, edge, some filter to correct and clean image, etc, etc) or just a simple motion capture into XSI or what ever you want with a plugin like this. :)<br /><br />enjoyThe_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com2tag:blogger.com,1999:blog-6162649272210039772.post-30133989965882187972008-05-09T15:12:00.002+02:002008-05-09T15:14:40.187+02:00blobDetection in XSI with JScriptA tool to detect a color in an image directly into XSI with JScript.<br />I want to use this to locate buildings on a map (a googlemap maybe).<br /><br />enjoy<br /><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/blobdetection.mov">http://www.paoloemilioselva.it/blogimgs/mycodes/blobdetection.mov</a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-9955778868483368572008-05-08T11:04:00.000+02:002008-05-08T11:05:07.143+02:00Buildings Generator v1.0 (output video)<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/isO_fH57lSg&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/isO_fH57lSg&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-14642642783685376042008-05-03T20:01:00.000+02:002008-05-03T21:05:52.338+02:00Buildings generator v1.0 (XSI)This is my new plugin for XSI to generate different buildings...<br />Soon, a downloadable version for XSI 6.02...stay tuned :)<br /><br />UPDATE (new video only in quicktime)<br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/buildings_generator_2.mov">buildings_generator_2.mov</a><br /><br />UPDATE (new interface JPG)<br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/interface3.jpg">interface3.jpg</a><br /><br /><br />OLD videos and images:<br /><br />and this is the old one (previous plugin version)<br /><br /><br /><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/B64neuT1hXw&hl=en"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/B64neuT1hXw&hl=en" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object><br /><br /><br />This is the plugin's interface in XSI<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/interface.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/interface.jpg" alt="" border="0" /></a><br />These are some previews from XSI<br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/001.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/001.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/002.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/002.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/003.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/003.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/004.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/004.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/005.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/005.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/006.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/006.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/007.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/007.jpg</a><br /><a href="http://www.paoloemilioselva.it/blogimgs/mycodes/builder/008.jpg">http://www.paoloemilioselva.it/blogimgs/mycodes/builder/008.jpg</a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com2tag:blogger.com,1999:blog-6162649272210039772.post-5335497213272394012008-04-30T09:20:00.002+02:002008-04-30T09:23:36.644+02:00Demoreel 2008 (april) - software engineer & 3D generalist<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/7g6VV1djwYY&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/7g6VV1djwYY&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-13721795526596129532008-04-30T09:17:00.001+02:002008-04-30T09:19:35.711+02:00Resume - March 2008<a href="http://www.paoloemilioselva.it/aboutme/PaoloESelva-resume-2008.pdf">PaoloESelva-resume-2008.pdf</a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-39351275193775959352008-04-15T18:23:00.002+02:002008-04-15T18:24:59.554+02:00modelling wip - Keira<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/blogimgs/my3dworks/keira_complete_wip.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.paoloemilioselva.it/blogimgs/my3dworks/keira_complete_wip.jpg" alt="" border="0" /></a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com1tag:blogger.com,1999:blog-6162649272210039772.post-28876033986741907782008-03-29T15:05:00.001+01:002008-03-29T15:06:52.650+01:00How to make your own motion-capture-video in Maya - part 2this is a video tutorial for the sliBase into Maya.<br /><a href="http://www.paoloemilioselva.it/blogimgs/mydownloads/motioncapture_lowcost.rar">http://www.paoloemilioselva.it/blogimgs/mydownloads/motioncapture_lowcost.rar</a><br /><br />enjoy ^_^The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com0tag:blogger.com,1999:blog-6162649272210039772.post-58815419954675848732008-03-28T03:46:00.003+01:002010-02-19T21:51:13.441+01:00How to make your own motion-capture-video in MayaWhat we are about to do is: create a jmyron blob detection, sending data with oscP5 to a server (localhost or other IP address), reading these data with my sliBase plugin to move object in realtime into Maya.<br />To make it easy, we are about to create an home-made low-cost motion-capture-video system for Maya.<br />Take a look at this video<br /><a href="http://www.youtube.com/watch?v=GtxATrZCIYg">http://www.youtube.com/watch?v=GtxATrZCIYg</a><br />I used my motion-capture-video I developed in Java but you can do the same think using JMyron, oscP5 and Processing.<br /><br />Go to <a href="http://www.processing.org/">www.processing.org</a><br /><ul><li> download Processing for your operating system</li><li> install processing</li><li> try to load an example to see if it works</li></ul>Go to <a href="http://webcamxtra.sourceforge.net/">http://webcamxtra.sourceforge.net/</a><br /><ul><li> download the library for Procesing</li><li> install it following the instructions</li><li> if your are running Processing on a mac-intel you have to change a file</li></ul><ul><ul><li> go to <a href="http://www.jibberia.com/projects/">http://www.jibberia.com/projects/</a></li></ul></ul><ul><ul><li>download and replace libJMyron.jnilib</li></ul></ul>Go to <a href="http://www.sojamo.de/libraries/oscP5/">http://www.sojamo.de/libraries/oscP5/</a><br /><ul><li> download the library </li><li> install it</li></ul>Open Processing.<br />Go to examples and try to load JMyron_simpleCamera to check it it works<br />if you see your webcam-video all it's ok! good! ^_^<br />otherwise, mail me what happens... ;)<br />Create a new project in Processing and save as "oscP5sendReceive" and copy this example:<br /><br /><blockquote style="font-family:courier new;"><span style="font-size:85%;">/**<br />* oscP5sendreceive by andreas schlegel<br />* example shows how to send and receive osc messages.<br />* oscP5 website at http://www.sojamo.de/oscP5<br />*/<br /><br />import oscP5.*;<br />import netP5.*;<br /><br />OscP5 oscP5;<br />NetAddress myRemoteLocation;<br /><br />void setup() {<br />size(400,400);<br />frameRate(25);<br />/* start oscP5, listening for incoming messages at port 12000 */<br />oscP5 = new OscP5(this,12000);<br /><br />/* myRemoteLocation is a NetAddress. a NetAddress takes 2 parameters,<br /> * an ip address and a port number. myRemoteLocation is used as parameter in<br /> * oscP5.send() when sending osc packets to another computer, device,<br /> * application. usage see below. for testing purposes the listening port<br /> * and the port of the remote location address are the same, hence you will<br /> * send messages back to this sketch.<br /> */<br />myRemoteLocation = new NetAddress("127.0.0.1",12000);<br />}<br /><br /><br />void draw() {<br />background(0);<br />}<br /><br />void mousePressed() {<br />/* in the following different ways of creating osc messages are shown by example */<br />OscMessage myMessage = new OscMessage("/test");<br /><br />myMessage.add(123); /* add an int to the osc message */<br /><br />/* send the message */<br />oscP5.send(myMessage, myRemoteLocation);<br />}<br /><br /><br />/* incoming osc message are forwarded to the oscEvent method. */<br />void oscEvent(OscMessage theOscMessage) {<br />/* print the address pattern and the typetag of the received OscMessage */<br />print("### received an osc message.");<br />print(" addrpattern: "+theOscMessage.addrPattern());<br />println(" typetag: "+theOscMessage.typetag());<br />}</span> </blockquote><br /><br />Execute it and when you click on the black window you can see the received message into the output-console in the Processing window.<br />Now, close Processing.<br />Go to <a href="http://slidertime.blogspot.com/search/label/_my%20downloads">http://slidertime.blogspot.com/search/label/_my%20downloads</a><br /><ul><li> download my latest sliBase plugin for maya (only for Windows)</li><li> install it</li></ul>This plugin is only for Windows, but you can capture data from a macosx and send to windows through ethernet using oscP5 in Processing.<br /><br /><span style="font-style: italic;">This is the system I have used for this tutorial:</span><br /><span style="font-size:85%;"><span style="font-weight: bold;">Motion capture video system:</span><br />Macbook1,1 Intel black 2GB ram, 2GHz CPU with Leopard and integrated iSight<br />Processing 0135 BETA for MacOSX<br />JMyron 0025 for Processing<br />modded libJMyron.jnilib for mac-intel<br />oscP5 0.9.3 for Processing<br />Java version 1.5.0_13 (preinstalled in Leopard, you don't need to install)</span><br /><br /><span style="font-size:85%;"><span style="font-weight: bold;">Maya receiver videodata system:</span><br />Alienware Aurora M77 with 2GB ram, AMD X2 2GHz, Geforce Go 7900GTX with WindowsXP Home edition<br />Maya 8.5<br />sliBase plugin</span><br /><br />Now connect your two machine with a network cable or a wifi or ensure that are both into the same LAN with the same IP address with the last number changed.<br />I've used a network cable (not crossed, if you don't have it. actually the net-card can exchange RX and TX automatically).<br />macbook with 192.168.0.1 and alienware with 192.168.0.2<br /><br />Then, open Processing and reopen oscP5sendReceive example.<br /><br />make these changes<br /><br />BEFORE<br /><span style="font-family:courier new;">myRemoteLocation = new NetAddress("127.0.0.1",12000);</span><br />AFTER<br /><span style="font-family:courier new;">myRemoteLocation = new NetAddress("192.168.0.2",57110);</span><br /><br />BEFORE<br /><span style="font-family:courier new;">OscMessage myMessage = new OscMessage("/test");</span><br />AFTER<br /><span style="font-family:courier new;">OscMessage myMessage = new OscMessage("/slibase");</span><br /><br />BEFORE<br /><span style="font-family:courier new;">myMessage.add(123); /* add an int to the osc message */</span><br />AFTER<br /><span style="font-family:courier new;">myMessage.add(mouseX + " " + mouseY);</span><br /><br />Now, run it.<br />Open maya, execute sliBase and open the script for OSC, as read on the instructions<br />Start it.<br />Try to move mouse on the black window in Processing and take a look in Maya, you can see something received into sliBase plugin.<br />If you can see your mouse coords changing into sliBase, it's all ok! ^_^ good!!!!<br />otherwise, mail me..... ;)<br /><br /><span style="font-weight: bold;">REMEMBER to run FIRST Processing, THEN start sliBase in Maya, THEN stop sliBase and THEN close Processing!!</span><br /><br />Now, oscP5 works, JMyron works, sliBase works... we have to mix them!<br /><br />Open Processing and create a new project and save it as "sliBaseJMyronOscP5"<br />and copy the following code:<br /><br /><span style="font-size:85%;"><span style="font-family:courier new;"></span></span><blockquote><span style="font-size:85%;"><span style="font-family:courier new;"><pre>import oscP5.*;<br />import netP5.*;<br />import JMyron.*;<br /><br />JMyron m; <br />OscP5 oscP5;<br />NetAddress myRemoteLocation;<br /><br />void setup() {<br /> int w = 320;<br /> int h = 240;<br /> size(w,h);<br /> m = new JMyron();<br /> m.start(w,h);<br /> m.findGlobs(1);<br /> frameRate(25);<br /> oscP5 = new OscP5(this,57110);<br /> myRemoteLocation = new NetAddress("192.168.0.2",57110);<br /> ellipseMode(CENTER);<br />}<br /><br />void draw() {<br /> m.trackColor(255,255,255,255);<br /> m.update();<br /> int[] img = m.image();<br /> loadPixels();<br /> for(int v = 0; v < width*height; v++)<br /> pixels[v] = img[v];<br /> updatePixels();<br /> <br /> int[][] a;<br /><br /> a = m.globCenters();<br /> if (a.length >= 2) { // send just first 2 blob<br /> int[] b1 = a[0];<br /> int[] b2 = a[1];<br /> ellipse(b1[0],b1[1],10,10);<br /> ellipse(b2[0],b2[1],10,10);<br /> OscMessage myMessage = new OscMessage("/slibase");<br /> myMessage.add(b1[0]+" "+b1[1]+" "+b2[0]+" "+b2[1]);<br /> oscP5.send(myMessage, myRemoteLocation);<br /> } else { // I need this because my sliBase crash if doesn't receive data from OSC<br /> OscMessage myMessage = new OscMessage("/slibase");<br /> myMessage.add("0 0 0 0");<br /> oscP5.send(myMessage, myRemoteLocation);<br /> }<br /> <br />}<br /><br />public void stop(){<br /> m.stop();<br /> super.stop();<br />}<br /></pre><br /></span></span></blockquote><br /><br /><br />Now, run it.<br />Open Maya and launch the plugin and the OSC-MEL script.<br />You should see into the message four zeros.<br />Take 2 white little pieces of paper and try to show to your webcam.<br />You should see two little circles in Processing and the centers of these circles into the sliBase.<br />Now all is done.<br />Assign these values to any object attributes in Maya using sliBase and look what happens... :)<br /><br />enjoy!<br /><br /><br /><br /></width*height;i++)>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com6tag:blogger.com,1999:blog-6162649272210039772.post-42167611975564720022008-02-27T23:45:00.002+01:002008-12-11T20:15:06.683+01:00WOW!!!!!!!I think the image needs no comments! :)<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJtuIMF6KiWirktKPqK8eSSKR0hDju0OAHSaDTtX1tbWVMrzhQrUEoSXmRhpKKjGRSvfw05caovThbg6dyixwZwWPqHf1l_DMNElFO8cVs6EkeHob1Hh1QcyWp5mjVjMQVGwLOy-m9kc8p/s1600-h/IMG_4169.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJtuIMF6KiWirktKPqK8eSSKR0hDju0OAHSaDTtX1tbWVMrzhQrUEoSXmRhpKKjGRSvfw05caovThbg6dyixwZwWPqHf1l_DMNElFO8cVs6EkeHob1Hh1QcyWp5mjVjMQVGwLOy-m9kc8p/s320/IMG_4169.JPG" alt="" id="BLOGGER_PHOTO_ID_5171796760001542226" border="0" /></a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com4tag:blogger.com,1999:blog-6162649272210039772.post-79423303283815948402008-02-10T15:13:00.000+01:002008-02-10T16:53:46.793+01:00sliBase - v0.2 (with OSC plugin)In this version I added the OSC (OpenSoundControl) functions to read data from OSC port/address. It requires WinXP and Maya 8.5.<br />What is possible to do with this plugin?<br />Take a look at the following video.<br /><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/w43Rgf-i5NI&rel=1"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/w43Rgf-i5NI&rel=1" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object><br /><br /><span style="font-weight: bold;">Do you want to try this? Ok, firt of all, you need:</span><br /><ul><li>a wiimote controller (without the console, just the controller)</li><li>a tool to read data from wiimote and send it in local (or network) usign OSC protocol (I've used GlovePIE for WindowsXP)</li></ul><br /><span style="font-weight: bold;">How to use it:</span><br /><ul><li>connect your wiimote to windows by your bluetooth manager application</li><li>open GlovePIE and use this script:</li></ul><span style="font-size:85%;"><span style="font-family:courier new;">if (wiimote1.Up = true) var.z = var.z + 1;</span> <span style="font-family:courier new;">if (wiimote1.Down = true) var.z = var.z - 1;</span> <span style="font-family:courier new;">var.x = var.x + wiimote1.RawAccX;</span> <span style="font-family:courier new;">var.y = var.y + wiimote1.RawAccZ;</span> <span style="font-family:courier new;">sendOsc("localhost",57110,"/slibase",wiimote1.RawAccX + " " + wiimote1.RawAccZ + " " + var.z + " " + var.x + " " + var.y)</span></span><br /><br /><ul><li>click on RUN in GlovePIE</li></ul><span style="font-style: italic;">now your wiimote is connected to your pc and it's sending data to your localhost using OSC protocol</span><ul><li>download <a href="http://www.paoloemilioselva.it/blogimgs/mydownloads/sliBase_v0.2.zip">sliBase_v0.2</a></li><li>extract it on your Desktop (or wherever you want)</li><li>open Maya 8.5</li><li>go to Plugin Manager and browse to find <span style="font-weight: bold;font-family:courier new;" >sliBase.mll</span> plugin into sliBase_v0.2 folder on your Desktop</li><li>open the example scene <span style="font-weight: bold;font-family:courier new;" >maya_navigation02.mb</span> in the sliBase_v0.2 folder<br /></li><li>drag&drop the <span style="font-weight: bold;font-family:courier new;" >sliBase_getOSC_window.mel</span> into maya<br /></li><li>click START into the "sliBase - get data from OSC" window and you can see the string data from wiimote</li><li>put a "space" character in the "separator" textfield and click outside this textfield to update and you can see the data splitted into all tokens<br /></li><li>now use the following setting:</li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/blogimgs/osc_values.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.paoloemilioselva.it/blogimgs/osc_values.jpg" alt="" border="0" /></a><ul><li>then click on all the CONNECT BUTTONs with the "attribute name" value not null</li><li>now, move your wiimote to move the "camera1" object into the maya scene in realtime</li></ul><br />this is only one example, you can try it usign an audio device or a webcam or something else which communicates with your pc throughthe OSC protocol.<br /><br />Contact me if you have problem: paoloemilioselva AT gmail.comThe_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com7tag:blogger.com,1999:blog-6162649272210039772.post-13551174801559679272008-01-17T00:24:00.000+01:002008-01-17T00:40:20.971+01:00And now.....30Happy birthday to meeeeeee....happy birthday to meeeeeee! :)<br /><br />ok, sono passati 30 anni da quando una donna di origini siciliane diede alla luce in quel di Roma un bimbo bellissimo!!!!<br />c'erano tutti intorno... parenti, amici, pastori, il bue e l'asinello... poi, dopo qualche giorno, arrivano tre strani tipi con dei doni....ehm....no...credo che questa sia un'altra storia....parliamo della mia nascita e del mio compleanno...che è meglio ;)<br /><br />magari domani...che adesso è tardi ;)The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com6tag:blogger.com,1999:blog-6162649272210039772.post-63566281997473999462007-12-30T12:37:00.000+01:002007-12-30T12:38:26.109+01:00Happy holidays<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/grafico/works/auguri/images/xmas2007_1280x800.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.paoloemilioselva.it/grafico/works/auguri/images/xmas2007_1280x800.jpg" alt="" border="0" /></a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com2tag:blogger.com,1999:blog-6162649272210039772.post-64473141973627230632007-12-15T12:06:00.000+01:002007-12-15T12:10:09.336+01:00Come back at home for holidays......and this is the <span style="font-style: italic;">scenario</span> today, Nettuno (Rome) 12th December 2007......WOW!<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.paoloemilioselva.it/shots/nettuno_2007-12-15.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://www.paoloemilioselva.it/shots/nettuno_2007-12-15.jpg" alt="" border="0" /></a>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com5tag:blogger.com,1999:blog-6162649272210039772.post-30730821380551675442007-12-10T13:36:00.001+01:002007-12-10T13:36:52.790+01:00Demoreel 2007 - Software engineer<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/HXAam9CyVQo&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/HXAam9CyVQo&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com3tag:blogger.com,1999:blog-6162649272210039772.post-31847096142569183112007-12-05T14:38:00.000+01:002007-12-05T14:40:56.628+01:00sliBase - v0.1.1<span style="font-style: italic;">Update:</span><br /><ul><li>LIVE input added</li><ul><li>leave clear the filename to use the live-input capture</li></ul></ul><br /><a href="http://www.paoloemilioselva.it/blogimgs/mydownloads/slibase_v0.1.1.zip">Download here</a> (requires WindowsXP, Maya8.5)The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com2tag:blogger.com,1999:blog-6162649272210039772.post-11759498727436486812007-12-03T15:58:00.000+01:002007-12-03T16:41:29.005+01:00sliBase - v0.1<span style="font-style: italic;">Commands list:<br /><br /></span><span style="font-weight: bold;">sliCmd_loadBASS</span><br />This command loads an audio file of various format (MP3,xm,mod,wav,ecc) listed in the BASS Library input file format specification and allows to modify any attributes of any objects in the Maya scenes, only in "preview" mode.<br />The preview uses the IDLE maya status to computing, so if you try to rotate the scene, the preview stops and then restart after you release the mouse or stop the rotation (or zoom, or any other actions in Maya scene).<br />The archive contains:<br /><ul><li>sliBase.mll v0.1</li><li>sliBase_loadBASS.mel</li><ul><li>this is the MEL script to manage sliCmd_loadBASS command<br /></li></ul><li>GstNGob.xm</li><ul><li>an audio sample created by me with FastTracker v2.0 for DOS. An old remix of a Commodore-64 game named Ghost'n'Goblins<br /></li></ul><li>BASS.dll</li><ul><li>This is the <a href="http://www.un4seen.com/">BASS Library</a> I used to create this plugin. Copyright (c) 1999-2007 Ian Luck. All rights reserved. Check the site for more information.<br /></li></ul></ul><a href="http://www.paoloemilioselva.it/blogimgs/mydownloads/slibase_v0.1.zip">Download here</a> (requires WindowsXP, Maya8.5)<br />How to use it:<br /><ul><li>Load the plugin from Plugin-manager</li><li>Drag and drop the MEL script into Maya to load it</li><li>Create a scene you want</li><li>Put data into sliBase_loadBASS interface using:</li><ul><li><span style="font-style: italic;">Load-button</span> to load the audio file</li><li><span style="font-style: italic;">Root's name</span> to insert the base name of the objects to animate (for example, pCube if you have objects in scene named pCube1, pCube2, pCube3, and so on)</li><li><span style="font-style: italic;">Max objects</span> to define the maximum number of animated object (for example, if you have 20 objects named pCube1 to pCube20, put 20 in this textfield)</li><li><span style="font-style: italic;">Attribute</span> to define the attributo to animate during the preview (for example the scaleY attribute of the selected objects)</li><li><span style="font-style: italic;">Scale</span> to define the scale factor<br /></li></ul><li>Click on PREVIEW button to see the plugin in action</li><li>In this version you can't save the animation.</li></ul><br />See the following video for a videotutorial<br /><object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/wDL-C8Me1EA&rel=1"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/wDL-C8Me1EA&rel=1" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com1tag:blogger.com,1999:blog-6162649272210039772.post-45030554561009269842007-11-17T02:13:00.000+01:002007-11-17T02:15:50.327+01:00sliBase - wiimote and maya, a flight simulatorthis video shows how to use a wiimote in maya to simulate a flight with my library.<br /><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/w43Rgf-i5NI&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/w43Rgf-i5NI&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>The_sLideRhttp://www.blogger.com/profile/10286931576725274361noreply@blogger.com2