Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

Tuesday, October 28, 2008

Ubuntu 8.10 is Coming Very Soon!

Ubuntu is a community developed operating system that is perfect for laptops, desktops and servers. Whether you use it at home, at school or at work Ubuntu contains all the applications you'll ever need, from word processing and email applications, to web server software and programming tools.

Ubuntu is and always will be free of charge. You do not pay any licensing fees. You can download, use and share Ubuntu with your friends, family, school or business for absolutely nothing.

And for the main event, 2 days from now will be the releasing of their latest version of OS, the Ubuntu 8.10! Check their site for more details.

Ubuntu Homepage

Sunday, October 26, 2008

Papervision Tutorial - Mouse Interaction.

This Papervision Tutorial for Flash show you how to do some movement in the scene by using the mouse.

Here is the source code:

package {
import PaperBase;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.objects.parsers.Collada;
public class Main extends PaperBase {
public var cow:DisplayObject3D;
public var distance:Number = 1000; //Distance the camera should be from the model
public function Main() {
init();
}
override protected function init3d():void {
cow = new Collada("http://papervision2.com/wp-content/downloads/dae/cow.dae");
cow.moveDown(100);
cow.scale = 3;
default_scene.addChild(cow);
}
override protected function processFrame():void {
// The next line is a bit of a mouthful, but it's quite simple really.
// It just gets the Y position of your mouse, and sets the camera.y to a
// value between -800 and 800, depending on the Y position of your mouse
// (If mouseY = 0 then camera.y = 800. If mouseY = stage.height, camera.y = -800)
default_camera.y = -(((mouseY - (stage.height / 2)) / stage.height) * 1600);
// We don't want the camera to move further away from the model, so we do this:
default_camera.moveForward(default_camera.distanceTo(cow) - distance);
// We now want to rotate the object depending on
// the Xmouse position. This is really simple.
cow.rotationY = -((mouseX / stage.width) * 360) //Rotation
// NOTE: This will only work if you only have one object in your scene.
// I'll write a more advanced movement tutorial soon
}
}
}