background preloader

Coding

Facebook Twitter

GoingNative 2012. The Nature of Code. “This is an exercise in fictional science, or science fiction, if you like that better.” — Valentino Braitenberg Believe it or not, there is a purpose.

The Nature of Code

Well, at least there’s a purpose to the first five chapters of this book. We could stop right here; after all, we’ve looked at several different ways of modeling motion and simulating physics. Angry Birds, here we come! Still, let’s think for a moment. 6.1 Forces from Within The term autonomous agent generally refers to an entity that makes its own choices about how to act in its environment without any influence from a leader or global plan. Here are three key components of autonomous agents that we’ll want to keep in mind as we build our examples.

An autonomous agent has a limited ability to perceive environment. In the late 1980s, computer scientist Craig Reynolds developed algorithmic steering behaviors for animated characters. Linux screen keyboard shortcuts. Screen is a much under utilised program, which provides the following functionality: Remote terminal session management (detaching or sharing terminal sessions)unlimited windows (unlike the hardcoded number of Linux virtual consoles)scrollback buffer (not limited to video memory like Linux virtual consoles)copy/paste between windowsnotification of either activity or inactivity in a windowsplit terminal (horizontally and vertically) into multiple regionslocking other users out of terminalSee also my screen settings See also the tmux alternative See also the byobu screen config manager.

linux screen keyboard shortcuts

See also the reptyr as another way to reattach programs to a terminal. Note for nested screen sessions, use "Ctrl+a a" to send commands to the inner screen, and the standard "Ctrl+a" to send commands to the outer screen. Fast and beautiful maps. Index of /html5/three.js/examples. Getting Started with Three.js. ## Introduction I have used Three.js for some of my experiments, and it does a really great job of abstracting away the headaches of getting going with 3D in the browser.

Getting Started with Three.js

With it you can create cameras, objects, lights, materials and more, and you have a choice of renderer, which means you can decide if you want your scene to be drawn using HTML 5’s canvas, WebGL or SVG. And since it’s open source you could even get involved with the project. But right now I’ll focus on what I’ve learned by playing with it as an engine, and talk you through some of the basics. For all the awesomeness of Three.js, there can be times where you might struggle.

The basics I will assume that you have at least a passing knowledge of 3D, and reasonable proficiency with JavaScript. Js - JavaScript 3D library. Chrome Experiments - Home. The Lessons. Generating an iOS XCode Project. Details Category: iOS Published on 28 April 2012 Written by Thomas Hogarth.

Generating an iOS XCode Project

MacOSXCompilationGuide – FFmpeg. Compiling on Mac OS X is as easy as any other *nix machine, there are just a few caveats.

MacOSXCompilationGuide – FFmpeg

The general procedure is . /configure <flags>; make && sudo make install, but some use a different configuration scheme, or none at all. You can also install the latest stable version of FFmpeg without the need to compile it yourself, which saves you a bit of time. Just follow this guide. XCode ¶ Starting with Lion 10.7, Xcode is available for free from the Mac App Store and is required to compile anything on your Mac. Homebrew ¶ To get FFmpeg for OS X, you first have to install ​Homebrew: OpenSteer. POCO C++ Libraries. Practical Fluid Mechanics. (This article originally appeared in two parts in Game Developer Magazine, March and April, 2007) Fluid effects such as rising smoke and turbulent water flow are everywhere in nature, but are seldom implemented convincingly in computer games.

The simulation of fluids (which covers both liquids and gasses) is computationally very expensive. It is also mentally very expensive, with even introductory papers on the subject relying on the reader having math skills at least at the undergraduate calculus level. In this article I will attempt to address both these problems from the perspective of a game programmer not necessarily conversant with vector calculus. I’ll explain how certain fluid effects work without using advanced equations and without too much new terminology. [C++, Raknet, DX9] FPS Movement? - Multiplayer and Network Programming. Quote: It takes a finite amount of time to send packets. Think of somewhere around 150ms which means you're getting latency of nearly ten frames (at 60 fps). Added to this time there is seemingly random jitter so some UDP packets can arrive before others, or not at a constant rate, or some will be dropped.

If you're using guaranteed delivery with or without in order delivery then there is extra time taken to receive packets and make sure they are presented to you in order. This can mean double or more latency for your packets if packets are dropped and then resent. Imagine that you are randomly pressing the movement key to simulate the latency due to the network, this is what your code is seeing.

This was probably an improvement over sending key presses, but it still won't be smooth because you need to smooth out the random jitter of packets from the network layer.