Red5 Server on localhost

August 31st, 2010 | Data

In this post I will talk about steps I went through to install Red5 Server on my machine using Windows 7 64 bit.

This first and most obvious step is to get a version of Red5. So on Red5 website under Downloads I clicked Releases and downloaded the latest version. After downloading run the executable. At one point installation asked what’s the sever IP where Red5 will be running or something like that I typed – 127.0.0.1, which is the IP for localhost. Then it asked for port. As I understood this it can be any available port. I’ve chose 8088, but I believe the default Red5 port is 5080.

After installation is complete go to Start > {Right Click} Computer > Manage. Under “Services and Applications” choose Services and find Red5 service in the list. Right click on it and select Start. After Red5 service has been started you can try running it by going to “http://localhost:{your installation port [see above]}/” in your browser. After you do that you should see Red5 start up page where you can choose to view and install demos.

And that’s pretty much it. I’ve also installed Red5 using Red5 repository inside Eclipse Java EE IDE. I don’t know any advantages of that besides that using Red5 Eclipse plugin you can easily created your own Red5 projects. It also generates basic MXML project for you with NetConnection class and all listeners attached to it. Which gives you a nice start up point. You can test and debug your Red5 application easily using Eclipse debugger. My knowledge of Java is very basic so I don’t know when and if I’m going to write my own Java code.

I’ll post my experience with Red5 Java as I start doing more advance application using Red5 Server. The default generated project should do the trick for most Red5 Flash applications.

No Comments

Silence

July 20th, 2010 | Random

Just after I’ve promised myself to update my blog more often I get more work and hence less time to blog. Long story short I’ve got too much stuff going on at work right now to update my website or post new blog entries. Which is a good thing for me, but not so good for my website.

I do need to update my blog’s back-end a little and maybe upgrade to WordPress 3.0, but I just don’t have time to do it. I was also planning to do my main portfolio website in Flash and this is also on hold. Basically I need to create a new Flash website from scratch which will take some time (2-4 weeks maybe) and I haven’t even started yet. By the way I’ve almost completed a new WP theme for my future redesigned website about a month or so ago. I just never had time to finish it. I’ll probably finish that first.

I hope new updates are coming soon and I will keep posting new blog entries as I go along learning and discovering new stuff in the web world as well as personal stuff.

No Comments

Nickel – 3D Flash Gallery

June 9th, 2010 | Random

On June 2nd, 2010 I have submitted 3D Flash image gallery to ActiveDen. It took about a week to make, another week to approve (mostly because of my mistakes) and few days to troubleshoot bugs (no thanks Flex 4 SDK).

Initially this gallery was animated with Eaze tween library which I find very fast and lightweight. But I found BetweenAS3 tween library to be much more powerful and versatile than Eaze. So the latest version of Nickel is using Papervision3D as its 3D engine and BetweenAS3 for animation.

Up to date version of Nickel gallery can be viewed here and on ActiveDen page.

No Comments

Camera3D Tricks

May 7th, 2010 | Random

Every time doing something with Away3D or Papervision3D I stumble upon same problem – what values to use on Camera3D’s properties, such as zoom, field of view, focus and z. In this blog post I will quickly go over some tricks I use for manipulating camera’s properties.

Let me start with an example. Lets say you have a plane with the width of 150 and height of 100 positioned vertically at (0,0,0). You want it to be exactly 150 by 100 pixels on screen. In Papervision3D fov, zoom and focus are interdependent as described in this blog post at blog.tartiflop.com. So adjusting either zoom or focus will change fov. You can use default fov, but I like to use fov = 45. So if you set fov = 45 that will give you zoom = 40 and focus = about 8.67. I use more rounded numbers: zoom = 2 and focus = 210 and it also gives me fov = about 45. To position the camera on z axis so dimensions of 3D object look exactly the same size on screen, in my example 150×100 pixels, just multiply camera zoom by camera focus and you are good to go. Usually negative z value is used to position the camera so just put minus before z to get negative z:

camera.z = -camera.zoom * camera.focus

If you want 3D object to fill up the screen you can divide viewport width/height or stage width/height by object’s width/height and than divide this value by the number you get from multiplying zoom by focus and use the result on camera’s z position:

camera.z = -camera.zoom * camera.focus / (stage.stageWidth / object.width)

OR

camera.zoom *= stage.stageWidth / object.width

So that’s all I have so far. I will update if I find any more interesting tricks with 3D cameras or you can share your experience with Camera3D by leaving a comment.

No Comments

Away3D and Papervision3D Performance Test

April 30th, 2010 | Test

Updated 2010-05-01: I’ve updated this post with Away3DLite and Away3DLite for HaXe performance test demos. I’ve also increased number of objects in new Papervision3D demo to compare performance to Away3DLite demos.

Updated 2010-05-02: In this update all 3 previous demos to use BitmapMaterial class as material with low resolution image for bitmap data.

I’ve decided to create a quick performance test between Away3D and Papervision3D. I’m using latest revision r2490 for Away3D and r942 for Papervision3D. Both versions are for Flash Player 10. I’m using release version of Flash Player running as stand-alone player on Windows XP SP3 with all the latest updates.

Read more…

8 Comments