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


Hierarchy definition
20.02.2008
HAHA

"When those who are on the top look down, all they see is shit. When the people from the bottom look up, all they see is assholes."

Found it here.
posted by ricardo cabello at 03:35

graphics.beginBitmapFill, opacity? blending? pretty please...
19.02.2008
The classic question on interviews lately is "What would you ask Adobe to improve on the Flash player?". Well, I finally have a real thing to ask the guys and is to give some love to graphics.beginBitmapFill.

Since the beginning there were 2 ways of rendering your 3d scene in flash.

1. Render everything in a single Sprite / MovieClip.
2. Create a Sprite / MovieClip for each triangle or Mesh.

The second option was the most useful because you had easily properties such as opacity and even blending as Sprite/MovieClip have already those properties, but, performance-wise, option 1 was the winner hands down. So, as people wants speed, some engines have gone through the option 1 and then spent time trying to find ways to hack the properties that you get for free with option 2.

If you take a look on the drawTriangle loop inside Papervision3d in instance you'll find this:

graphics.beginBitmapFill( altBitmap ? altBitmap : bitmap, _localMatrix, tiled, smooth);

I even had to do a hack for a project where in order to be able to change the opacity of one material dynamicaly I had to generate an array of bitmapDatas with the original texture with different levels of transparency... nasty!

Wouldn't it be great if you could tell the amount of opacity and which blending to use to the beginBitmapFill?
posted by mr.doob at 08:57

My code.google
18.02.2008
I'm finding this code.google thingie quite handy for handling all my open source stuff. Recently I've updated the videoplayer quite a bit and I was now updating the pv3d previewer...

So, keep an eye on the link cos it will be heavily updated (specially the svn repository) from now on:

http://code.google.com/p/mrdoob/
posted by mr.doob at 12:31

TypeError: Error #1010: A term is undefined and has no properties.
13.02.2008
If there is something I hate from the daily work with AS3 is the annoying #1010. It makes the compiler sound arrogant, what?

To me it looks like:
"There is something wrong there, but I won't tell you what it is... cold cold cold warm warm super warm!"

It's like if it was in a constant puzzle game.

Well, to be fair, it kind of says WHERE, but it would be much helpful if it said WHAT was the term.
posted by mr.doob at 08:33

Jordi "Shine" Ros and his Hobbies
12.02.2008
First he spent his free time as a demo coder, then dj, then he did the world-wide famous (and awarded ;D) Neon v2 and now...



:O!
posted by ricardo cabello at 03:08

Back from Hong Kong
11.02.2008
As I, roughly, mentioned some months ago, we had the holidays already planned for this year's February.

Won't detail much on how it was, as I believe she is going to do a detailed report in a few days, but I'll post a couple of pics here.














And hopefuly Phodoob v3 will get released showing the album for this trip... er... soon! :D

As a side note, we saw a lot of movies on the plane / hotel, here are the results:

NICE!!
Michael Clayton
Tootsie
In the Valley of Elah

PSE...
Run, Fat Boy, Run
50 First Dates
Cheung Gong 7 hou
3:10 to Yuma

ER...
Dodgeball: A True Underdog Story
Miss Congeniality
L: Change the World
Kung Fu Dunk
posted by ricardo cabello at 01:05

and... can I share a printer in Ubuntu so I can print from Windows XP?
01.02.2008
YES.
posted by ricardo cabello at 05:53

I have an iBook G4, should I install Leopard on it?
01.02.2008
NO.
posted by ricardo cabello at 03:26

TAX Return
30.01.2008
I remember, on my early days, back in Spain, my father used to take a lot of weekends with a calculator in hand trying to do all that.

But, if you use your PHP+MySQL skills and do a quick system the first week you start your freelancing, then the TAX Return reduces to this:

SELECT SUM(amount) FROM income WHERE timestamp > '2006-11-01' AND timestamp < '2007-04-06'

That's a good example of good use of technology :)
posted by ricardo cabello at 02:52

pong1k, a game in 1,022bytes
29.01.2008
There was a guy on escena.org yesterday talking about this pong in 1kbytes done in openGL. So, once again, I felt challenged and tried to do the same with Actionscript 3.

And well, after a bit of tweaking here and there, seems like managed to make it in 1,022bytes :D

pong1k

You know where the sources are, don't you? But if you just want to see the snippet, here it's too.

EDIT: Kristof Neirynck has ported the code to AS2, and after a few tweaks turns out that AS2 creates tinier files than AS3. At least in this case. pong0.5k Maybe when going a couple of kbytes up AS3 would win AS2.

EDIT 2: And now, for something completely different, the same game in 393bytes. Nice one Matthew! :D
posted by mr.doob at 00:33
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