ricardocabellov5.0balter-egos
trace mr.doob r08028
blogdemoscenefeaturedextrascontact
 *blog... kind of... *rss


FWA's Site of The Day!
17.12.2007
Since the beginning I had a joke on my site (now blog) on the top right corner which was the FWA, best site ever ribbon. What I really didn't ever though is that I would be offered to add a real one at some point.

Well, what can I say? Really excited about it, and very encouraging to keep doing what I like to do.

Thanks FWA guys!
posted by mr.doob at 16:31

"This is not a PC, this is a MAC"
14.12.2007
Right, so neither I'm Spanish, I'm Barcelonian.
Hopefully somebody will get it.
posted by ricardo cabello at 13:13

PV3D 2.0: How to render in anaglyphic (stereo) mode
06.12.2007
No, neither PV3D 2.0 does this render automatically, but again, this is just another example of what can you do being able to render the same scene to different targets.

The technical/physical part of this render is simple. Based on the main camera, you need to have to other cameras, A and B, one on each side of the main camera, if you displace the camera A -50 of the main camera, then you displace the camera B +50. The cameras need to be parallel, so you also have to displace the target of the cameras. Then, render the camera A and copy the red channel



render the camera B and copy the green and blue channels



so, again 2 renders per frame (which means, rendering 2x the amount of polys), then into a final Bitmap you mix all the channels.

Before doing it directly with bitmapData.copyChannel I tried using colorTransform and then using the additive blendMode. It worked, but wasn't as accurate as the proper way is, and it was much more slower.

The final test looks quite good I think, and the effect works with the proper glasses.



There is also another test done with the render mode, which was a quick modification of a test from Ralph.

I must say that it is not 100% correct, in theory the channel displacement should be only horizontal, in some camera angles the effect may not look right. I guess this could be somehow sorter, but I was too lazy again :P

And here you have the sources again! In case you wonder about how the ball.as was generated, I used a modified version of Jerome's AS3 Geom Class exporter.
posted by mr.doob at 15:50

PV3D 2.0: How to do simple realtime shadows
06.12.2007
Some people have mailed asking about how the shadows were done and where was the function in the API to create them.

Well, first of all PV3D 2.0 doesn't do the shadows automatically, but the new features let you do it (an many more other things). As soon as I knew that with the new version you were able to render the same scene in different sprites I though "shadows!". So, went quickly to give it a try and it worked perfectly. The idea is basically to do 2 renders per frame (this may be slow if you apply it at the end of a project). First render from the top of the scene, apply that render to the white plane at the bottom, and then second render from the user's camera.

This is the view from the "light camera" that gets rendered into a 512x256 bitmapViewport:



Next thing I wanted was to make the shadow a less dark, so, having already the bitmap, I just need to apply a colorTransform to it and make it a bit more pale.



And finally, apply a BlurFilter to the bitmap so the shadows is a bit diffuse



And that's all, this is the result:



Just as a last note... for the ball example I had to change before rendering the shadow the texture of the ball to black, and then change it back to the backed AO material.

Next thing on this matter will be to try to implement stencil shadows (because at the moment the shadow only works if the light is on the top, or one side...)

Oh! I almost forgot, here is the source file (requires flex2SDK, PV3D 2.0 and Tweener).
posted by mr.doob at 15:17

Loop a FLV in AS3 (and AS2)
06.12.2007
Lots of people always ask stuff like that (me the first), and after a while without having to deal with video on flash, I had to do it today and a very easy solution popped out.

function onFLVMetaData( metadata:Object ) :void
{
Tweener.addTween( this, { time: metadata.duration, onComplete: restartVideo } );
}


Simple and beautiful. Thanks once again Tweener! :D

Updated
However, the proper way to do that on AS3 is this one:

function netStatusHandler( event:NetStatusEvent ) :void
{
if(event.info.code == "NetStream.Play.Stop")
stream.seek(0);
}
posted by mr.doob at 07:51

mrdoob.com v3
03.12.2007
mrdoob v3

December 3rd... what a nice day for doing this ;) Yep, new version of the site!! (or homepage actually). The previous version is still here at /blog.php tho. There are some new experiments on there done with Papervision3D 2.0 which I will talk about in another post.

There are a couple of things to fix here and there, specially for pages that shouldn't appear on the frame but open on a new tab instead. Also the source links aren't there yet.

Er... yes, you have read it well.. FRAMES! Unfortunately nowadays web technology wasn't doing the job properly for this kind of structure, and I tried having the swf on the top, then an iframe and update the size of the iframe with jQuery, but something there was buggy and wasn't working as well as the old good framesets. Sorry.

However, don't complain just yet, take a look at the site, it features SWFAddress which turned to be quite nice.
posted by mr.doob at 21:26

Google wrecked the internet
03.12.2007
http://www.geekculture.com/joyoftech/joyarchives/1039.html

I can't agree more.
posted by ricardo cabello at 06:03

87eleven
01.12.2007
Did you ever wondered why all the American fight choreographies are that stupid? Take a look to what the company that directed the ones for Matrix do:

http://www.87eleven.com/

If you check out the showreels, you'll see that they seem like chinese fights choreographies from the 60s plus some rips of Jackie Chan and Tony Jaa... Which by the way, just found this one from Tony Jaa, stupid sometimes but very good for such a long take/stunt. Jackie Chan still stands out for making the fights with multiple rivals much more credible (so there is no people waiting for their turn).

Anyway... going back to 87eleven... probably this was their first job :D
posted by ricardo cabello at 19:34

Using your Wii as Mediaplayer
01.12.2007
I've been looking for a program like this for a while, and finally there is a freeware option which is good enough. At home, the only thing connected to the sound stereo is a Wii, so being able to use it for playing mp3 stored in some other computer in the network was ideal.

The program I'm talking about is Wiisic, a little Java app which lets you select the local folder where you store your mp3, and then creates a http server with mainly a flash there with all the links to those mp3s. Very easy, clean and straight forward (tho the Flash app it's a bit ugly :P).

The good thing is that it's done in Java, which means that you can run it on Windows / MacOS / Ubuntu and even change the port you want to connect to (in case you have an apache server runing on the same computer).

Enjoy!
posted by ricardo cabello at 09:22

Turkish Rambo
27.11.2007


I usually don't post stuff like that, but this is so funny. :P :P

Via
posted by ricardo cabello at 09:07
Pages:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
 *profile 



traditional id: Ricardo Cabello Miguel
based in: London, UK
serving to: Hi-ReS!
contact me: click here


 *affiliations 

xplsv.com admin, development, design
xplsv.tv admin, development, design
escena.org admin, design
molomucho.com development, design


 *advertising