Jump to content
  • Advertisement
Sign in to follow this  
raptorus

Sprite and 3d objects

This topic is 3735 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi i have a viewer that loads .x meshes, and a splashscreen made by a textured sprite that starts before this viewer. where do i have to put the source of the sprite so that it appears only when launching the EXE and not in the mesh viewer input camera processing 1000 thanks

Share this post


Link to post
Share on other sites
Advertisement
You could just show the splash screen as a separate window with the image in it, then wait 5 seconds or whatever then close this window and then show your view window.

Share this post


Link to post
Share on other sites
What do you mean by "the source of sprite"??

I assume your splash screen is just a window that you pop up before you show your main window. Just draw your sprite to that (don't even have to use D3D for that), and then remove the window when you're done.

If you do some searching, you can even find some pre-made classes that will do this for you with very little effort.

Share this post


Link to post
Share on other sites
I have recently written a simple 3D game framework with VC# and Managed DX (I'm targeting non shader enabled systems, so no XNA), I used something like

enum GameStates {gsTitle, gsPlaying, gsQuit};
GameStates state = GameState.gsTitle;

during the game loop, when rendering the game, it will check the game state, and if it is gsTitle, it will draw the Title screen (just a simple .png picture loaded into texture) using Sprite.Draw2d(...). When the user pressed the Enter key, the game state will switch to gsPlaying, which will render the 3D scene.

Hope this helps.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!