PHP6, Unicode and TextIterator features
I’ve just install the last version of PHP6 dev and I’ve decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it’s just my discoveries test on this features.
So the first thing to do is to enable PHP6 Unicode in the php.ini file.
;;;;;;;;;;;;;;;;;;;; ; Unicode settings ; ;;;;;;;;;;;;;;;;;;;;unicode.semantics = on unicode.runtime_encoding = utf-8 unicode.script_encoding = utf-8 unicode.output_encoding = utf-8 unicode.from_error_mode = U_INVALID_SUBSTITUTE unicode.from_error_subst_char = 3f
3D Air Graffiti
Tagged in Motion from Psyxonaut on Vimeo.
Very impressive installation called Tagged in motion. The artist draws a 3d graf using a virtual spray can and googles. The motion is recorded by 3 cameras and an open source software, ArtToolKit
Cool result.
Contributor on this blog
Hi,
After a long reflexion, we decide to open this blog to new contributors. So if you want to post something on developement (PHP, Javascript, AS, Android, Flex, Air, Processing, …….) sometimes but you don’t want to have your own blog, you can become a contributor here to submit your articles !
If you are interested, send us a mail to antoine.ughetto _AT_ gmail.com
ComputeSpectrum - Violations and crashes
Working with ComputeSpectrum method is AS3 gives a lot of funny sound things but it also brings to top one of the worst ennemies of developers, that f**king sandbox security violation… Some facts: try to catch Computespectrum sound in your animation and run a Youtube video or anything containing flash sound in the same browser. Two options: you’ve got Flash debugger installed, an error alert appears and that’s it, no more sound animation. You don’t have Flash debugger, the error occurs anyway but you don’t see anything (but the hidden flashlog knows).
I’ve spent a few hours looking for a way to proceed. Unfortunately, seems like there’s no distinction between the several movies played in the browser. Everything goes to the same global “channel” and there’s no need to set domain things or policy and allowed files. You just get an error, even if the played files are in the same folder…
What can I do ?
Obviously, you can try to catch the error.
try{
SoundMixer.computeSpectrum( spect );
} catch ( e:* ) {
// here is the error, but you cannot avoid it.
}
What else ? I don’t know. Is that an expected behaviour or just a future Flash 10 technote ? I hope so.
(This post can be a good way to collect info about that point. Any ideas appreciated)
Tips: Change PV3D material at runtime
If you want to replace a material-list or just a material from a rendered object at runtime, you might have tried to remove the old material by the new instance like this:
myObj.materials = myNewMaterialsList;
Unfortunately, that doesn’t work (in PV3d 1, fixed by v2 if I’m not wrong) An other way to proceed is to use bitmapMaterial and bitmapData.
You just have to create a BitmapMaterial with a bitmapData inside:
var bd1:BitmapData=new BitmapData(100, 100, false, 0xFFFFFF); var material2:BitmapMaterial = new BitmapMaterial(bd1); material2.name="faceToSwitch"
Then, swap the targeted material (alreday rendered) at runtime, on rollover action for example, simply by calling:
var bd2:BitmapData=new BitmapData(100, 100, false, 0x000000);
myObj.materials.getMaterialByName("faceToSwitch").bitmap = bd2;
About
This is the R&D corner of Nicolas Rajabaly, Antoine Ughetto and Jonathan Da Costa. Enjoy it.
Lab : Check it
You want to be a contributor?!
Send a mail to :
antoine _AT_ makemepulse _DOT_ com

