Game Development for Xbox 360, PC + Windows Phone 7

skybox issues

rated by 0 users
Answered (Verified) This post has 1 verified answer | 8 Replies | 4 Followers

Top 10 Contributor
4 Posts
rdreyfus posted on 19 Jul 2009 1:15 PM

Hi I was trying to do they skybox tutorial. On page 164 of "XNA 3.0 Unleashed" you give instructions on how to change the content processor for the texture. I followed these steps and there is no skybox processor showing up in the processor list for skybox2.tga.  I have also tried the pipline .dll from the book CD and that did not work either. Any idea why it is not showing up?

 

 

 

 

Answered (Verified) Verified Answer

Top 10 Contributor
Male
136 Posts

If I follow your steps using XNA Game Studio 3.0 it works like a charm. When I get to step 9, I am able to select Skybox Processor.

 

However, if I follow your steps using XNA Game Studio 3.1 then step 9 is just as you described. So I then try to compile and I am greeted with the following error:

Assembly SkyboxPipeline was built with a reference to Microsoft.Xna.Framework with an incorrect version 3.0.0.0 when version 3.1.0.0 was expected.

 

I'm wanting you to try 3 things total:

1. Do your steps above (you don't have to copy the assemblies to the /bin/x86/debug folder as they will get moved them by the compiler). Make sure you start with an XNA Game Studio 3.0 Windows Game project and not a 3.1.

2. Copy the Chapter18 folder from the CD and open the /Chapter18/AIDemo/AIDemo.sln file and compile and run that. Confirm that Skybox Processor is in the list for the skybox2.tga file.

3. This one is more complex: To get it working in 3.1 do the following:

A. Open Chapter 8's SkyboxPipeline solution. Remove the references to the following 3.0 assemblies:

Microsoft.Xna.Framework

Microsoft.Xna.Framework.Content.Pipeline

Microsoft.Xna.Framework.Game

Now, re-add those same assemblies, but make sure you select the 3.1 versions.

Compile the solution.

Now do your steps above making sure you create an XNA Game Studio 3.1 Windows Game project.

For number 6, copy the newly created skyboxpipeline.dll and copy it the newly created project folder. Add a reference in the Content project to this newly compiled assembly.

 

Let me know if those three taks are successful. Let me know if I need to clarify anything.

 

All Replies

Top 10 Contributor
Male
136 Posts

Did you add a reference to the skybox processor in the Content project? Once that is added as a reference, you will have the option to select the correct processor.

Hope this helps!

Chad

Top 10 Contributor
4 Posts

I added a reference to the skybox pipeline. Is that the same thing? If not how do i one for the processor?

 

 

Top 10 Contributor
4 Posts

I am currently trying to do the AI Demo which requires the skybox. Still can't get the skybox processor to show up in the list. Here are the steps I am taking to do this.

1. create project

2. add reference to XELibrary.dll to main project from XELibrary\bin\x86\Debug (located on my hard drive)

3. add "using XELibrary" to top of Game1.cs

4. add Skyboxes folder in Content project

5. copied and pasted Skybox2.tga from CD to Content\Skyboxes folder in Content Project ( in VS2008....not through windows explorer)

6. copied SkyboxPipeline.dll from CD to AIDemo\Content\bin\x86\Debug on my hard drive.

7. added reference to Content pointing to SkyboxPipeline.dll located in AIDemo\Content\bin\x86\Debug on my hard drive.

8. In VS 2008, right clicked on Skybox2.tga from Content\Skyboxes and chose properties.

9. Click on down arrow next to "Content  Processor" under properties. NO option for Skybox Processor is appearing in list

 

Just in case you are wondering I am currently using XNA 3.1. I have tried this under 3.0 as well and it did the same thing. Please let me know if I can provide any more info for you. Thanks.

 

 

 

 

 

Top 10 Contributor
Male
136 Posts

If I follow your steps using XNA Game Studio 3.0 it works like a charm. When I get to step 9, I am able to select Skybox Processor.

 

However, if I follow your steps using XNA Game Studio 3.1 then step 9 is just as you described. So I then try to compile and I am greeted with the following error:

Assembly SkyboxPipeline was built with a reference to Microsoft.Xna.Framework with an incorrect version 3.0.0.0 when version 3.1.0.0 was expected.

 

I'm wanting you to try 3 things total:

1. Do your steps above (you don't have to copy the assemblies to the /bin/x86/debug folder as they will get moved them by the compiler). Make sure you start with an XNA Game Studio 3.0 Windows Game project and not a 3.1.

2. Copy the Chapter18 folder from the CD and open the /Chapter18/AIDemo/AIDemo.sln file and compile and run that. Confirm that Skybox Processor is in the list for the skybox2.tga file.

3. This one is more complex: To get it working in 3.1 do the following:

A. Open Chapter 8's SkyboxPipeline solution. Remove the references to the following 3.0 assemblies:

Microsoft.Xna.Framework

Microsoft.Xna.Framework.Content.Pipeline

Microsoft.Xna.Framework.Game

Now, re-add those same assemblies, but make sure you select the 3.1 versions.

Compile the solution.

Now do your steps above making sure you create an XNA Game Studio 3.1 Windows Game project.

For number 6, copy the newly created skyboxpipeline.dll and copy it the newly created project folder. Add a reference in the Content project to this newly compiled assembly.

 

Let me know if those three taks are successful. Let me know if I need to clarify anything.

 

Top 10 Contributor
4 Posts

Thanks for the help. I tried the first step and ** yay** it now works!!

I think you might be right about the 3.1 issue. I will try it that way too just to make sure. Thanks again. Great Book BTW. I am learning a lot from it!

 

 

Top 10 Contributor
Male
136 Posts

Awesome! Glad it is working for you!

Top 25 Contributor
3 Posts
Suggested by getluky

I got stuck on this same problem at 1 in the morning... and my mistake was so simple that i'm sure other people will make it too. Up until that point in the book, i'd been adding all references to the main project by right-clicking the project name and then doing "add reference". However, I didn't realize that when Chad writes "Content project", he means literally to right-click on the content folder INSIDE the project and then add a reference there. I had no idea there were two places to add references! Duh. Sounds really dumb, but because i'm new to this stuff, it totally baffled me for a while. Hope this helps anyone going through the same issue!

Goodhustle Studios

http://www.goodhustle.com

Top 50 Contributor
1 Posts

same to me.

thank you

:)

Page 1 of 1 (9 items) | RSS
© 2011 Chad Carter. All rights reserved.