XNA Creators Club Online
Page 1 of 1 (10 items)
Sort Posts: Previous Next

Loading Skybox

Last post 6/17/2008 12:38 PM by Ronzan. 9 replies.
  • 6/11/2008 8:32 AM

    Loading Skybox

    Hi,

    While loading up the skybox, I need to add the skybox content pipeline .dll file into the project. And then, double click on properties in the Solution explorer in the Visual studio and then select the content pipeline tab. But the problem is I am not able to view the content pipeline tab in the properties window. Do I need to do anything for that to appear?

     

    Please let me know asap.

    Thanks in Advance.

    Abhi


  • 6/11/2008 9:53 AM In reply to

    Re: Loading Skybox

    To me it sounds like you are following a pre-XNA 2.0 tutorial or something.

    In XNA 2.0 you no longer add content pipeline dll's via the project properties window.

    Maybe you can tell what tutorial or code sample you are using?

     

    /Ronzan

  • 6/11/2008 2:20 PM In reply to

    Re: Loading Skybox

    I am following XNA 1.0.....
  • 6/12/2008 12:25 AM In reply to

    Re: Loading Skybox

    It's a little hard to help without knowing what tutorial you are following etc.

    Anyways, there's a good skybox tutorial here: http://randomchaosuk.blogspot.com/2007/07/generic-xna-skybox.html

  • 6/12/2008 5:54 AM In reply to

    Re: Loading Skybox

    I am not sure how much code i can put in... I will try my best...but if you need more you can ask me....Thanks for the reply...

     private Skybox skybox;

    The following line is in LoadGraphicsContent:

    skybox = content.Load<Skybox>(@"Content\Skyboxes\skybox2");

     

     

     

     


  • 6/12/2008 11:14 AM In reply to

    Re: Loading Skybox

    Abhijith:

    skybox = content.Load<Skybox>(@"Content\Skyboxes\skybox2");

    For the content.Load<Skybox>(..) you need the custom content processor so that XNA can recognize the type "Skybox".
    Without seeing the content pipeline code or the article/tutorial you are using, I can't really tell you how to convert that to XNA 2.0, not on top of my mind ;)

    So, please tell me:
    1. What XNA version are you using? (I assume 2.0)
    2. What article/tutorial are you following? (give a link to it)

    With some more information I can try to help you.

    Again, I can recommend that tutorial I linked to before - it is more simple than creating a custom model processor etc.

  • 6/16/2008 3:17 PM In reply to

    Re: Loading Skybox

    Hi,

    For your question 1: I am using XNA 1.0 refresh

    I am not sure about the tutorial. I am actually reading a book: " Microsoft XNA Unleashed" by Chad Carter. I got a CD along with that book and i refer to the programs available in that CD.

     

  • 6/16/2008 3:23 PM In reply to

    Re: Loading Skybox

    With version 1.0 you should have the content pipeline tab under project properties.

    I'm not sure if you also need to add a normal project reference to the dll, you can try that as well.

  • 6/17/2008 5:43 AM In reply to

    Re: Loading Skybox

    But the tab is not visible in the properties...How do I make it appear?
  • 6/17/2008 12:38 PM In reply to

    Re: Loading Skybox

    Are you absolutely sure you are not running XNA Game Studio 2.0?

    In visual studio, goto "Help" -> "About" - there you can see what version you have installed.
    It is possible to have both versions installed. If you have both versions, I'm not quite sure how to tell it to use 1.0, other than you have to change normal project references to v1.0

    The content pipeline tab should be there with 1.0
    Sorry, I can't say more than that.

Page 1 of 1 (10 items) Previous Next