Author: Admin
-
Developing ASP.NET Applications
Considering IronPyth on Web Application Compatibility IronPython (and Python for that matter) have huge potential for making Web sites significantly easier to build and manage. In fact, there are a lot of options for using Python (and IronPython) to perform Web development tasks that you can see at http://wiki.python.org/ moin/WebProgramming and http://www.fredshack.com/docs/pythonweb.html. The problem with…
-
Advanced Linear and Angular Velocity
Calculating Angular Velocity We have done a lot of work already with sprite transforms, so now it’s time to put some of these new features to the test in a real-world situation that often comes up in game projects. We’ll have a sprite move on the screen based on user input, and move in the…
-
Canon PowerShot G12, The Golden Light
If you ask any professional landscape photographer what their favorite time of day to shoot is, chances are they will tell you it’s the hours surrounding daybreak and sunset (Figures 7.8 and 7.9). Light comes from a very low angle to the landscape, which creates shadows and gives depth and character. There is also a…
-
More Sprite Transforms: Rotation and Scaling
Rotating a Sprite XNA performs sprite rotation for us. That, in a nutshell, is the gist of this section on the subject. Digging into the trigonometry reveals that rotation calculations are in relation to the origin of the coordinate system at (0,0). It is possible to rotate a sprite the “hard way” by rotating each…
-
Canon PowerShot G12, Taming Bright Skies with Exposure Compensation
Balancing the exposure in scenes that have a wide contrast in tonal ranges can be extremely challenging. The one thing you should try not to do is overexpose your skies to the point of blowing out your highlights (unless, of course, that is the look you are going for). It’s one thing to have a…
-
Canon PowerShot G12, Selecting a White Balance
This probably seems like a no-brainer. If it’s sunny, select Day Light. If it’s overcast, choose the Cloudy setting. Those choices wouldn’t be wrong for those circumstances, but why limit yourself? Sometimes you can change the mood of the photo by selecting a white balance that doesn’t quite fit the light for the scene that…
-
Transforming Sprites
Translating (Moving) a Sprite Sprite translation, or movement, can be done directly or indirectly. The direct approach involves writing code to move a sprite specifically to one location or another. The indirect approach involves setting up properties and variables that cause the sprite to move on its own based on those properties—we only write code…
-
Canon PowerShot G12, Selecting the Proper ISO
When shooting most landscape scenes, the ISO is the one factor that should only be changed as a last resort. While it is easy to select a higher ISO to get a smaller aperture, the noise that it can introduce into your images can be quite harmful (Figure 7.2). The noise is not only visible…
-
Treating Bitmaps as Sprites
Bringing Bitmaps to Life A sprite is a bitmap with benefits. XNA provides the SpriteBatch class to draw bitmaps with the SpriteBatch.Draw() method, of which there are several overloaded variants. But despite the name, SpriteBatch does not give us “sprite” capabilities from the gameplay perspective. SpriteBatch is a rendering class, used solely for drawing, not…
-
Canon PowerShot G12, Sharp and In Focus: Using Tripods
Throughout the previous chapters we have concentrated on using the camera to create great images. We will continue that trend in this chapter, but there is one additional piece of equipment that is crucial in the world of landscape shooting: the tripod. A tripod is critical for a couple of reasons. The first relates to…