Just as a study of PaperVision 3D, I've mocked up an automatic cityscape builder insired by Procedural City on Twenty Sided. Being a quick sketch, this is not as detailed as the original work written with Open GL, but I think it is good enough for a product of a few hours job.
To get the effect of depth of field, I set the useOwnContainer property to true for all the buildings and applied blurFilter according to the distance from a building that the focus of the camera is on.
random cityscape
To get the effect of depth of field, I set the useOwnContainer property to true for all the buildings and applied blurFilter according to the distance from a building that the focus of the camera is on.
building.useOwnContainer = true;
blur = building.distanceTo(focusedObject) / n;
building.filters = [new BlurFilter(blur, blur)];
random cityscape

Leave a comment