The basic approach is as follows:
- CURL a search request to a news site (currently, latimes.com)
- parse the markup of the page using PHP's XML functions
- generate a newspaper texture using the parsed info using the GD library
- render the image onto a 3d model in an x3d scene
The creation of the newspaper image is rudimentary at present, but I'll be improving it to include full stories (currently just one-line summaries) and images, as well as creating a better base texture to make the result look properly faded/weathered. It also seems that I'll have to modify the search process to get results from a full year ago (currently grabbing results from yesterday).
Click
here to see what the generated texture looks like.
If you have a x3d plugin installed, you can also go
here to see it in action for yourself.