Original Post
I finally finished this chapter today. I had problems implementing the split screen. Apparently in earlier XNA versions, the Clear() function just cleared the current viewport, but in XNA 4.0, it clears the whole screen.
The example code needs to be changed a bit due to this - clearing once at the start, and then drawing the top, bottom, and separator viewports. I don't know how to draw a black rectangle to exactly fill the separator viewport yet - I presume we need to set up an orthographic projection matrix (I'm sure it will be covered in the 2D section of the book!) I just omitted the black separator bar for the moment.
This forum discussion explains the changes well.
Shawn Hargreaves' blog has been very helpful for me to explain all the changes in XNA, and this handy 3.1 to 4.0 cheat sheet
Thanks to Jeromy for setting up this workshop too, even though he's busy at the moment, just having a weekly schedule seems to be motivating me more than usual
The example code needs to be changed a bit due to this - clearing once at the start, and then drawing the top, bottom, and separator viewports. I don't know how to draw a black rectangle to exactly fill the separator viewport yet - I presume we need to set up an orthographic projection matrix (I'm sure it will be covered in the 2D section of the book!) I just omitted the black separator bar for the moment.
This forum discussion explains the changes well.
Shawn Hargreaves' blog has been very helpful for me to explain all the changes in XNA, and this handy 3.1 to 4.0 cheat sheet
Thanks to Jeromy for setting up this workshop too, even though he's busy at the moment, just having a weekly schedule seems to be motivating me more than usual