Original Post
is it common or not to create a skybox for a outdoor scene in directx? i can create a basic terrain and move about and have horrible background of blue or black all around. so what can i do?
Quote:
Original post by MJP
The StateManager sample is using a skybox. The skybox mesh is skybox01.x, and the effect is in skybox01.fx. You can really just copy that mesh and effect and use them with whatever cube texture you'd like. You can either draw the skybox first and then draw your scene, or draw your scene with z-writes enabled and render the skybox with z-buffering enabled.
Quote:
Original post by Subotron
actually I think you were meaning to say the skybox should be rendered with z-buffering disabled right?
Quote:
Original post by jagguy2
ok i can draw a unit cube mesh and i would scale it up so i am in a big scene?
When placing textures on it how do place textures on the inside? Normally a texture appears on the outside of an object.
In the state manager you walk around and do hit the edge of the cube or scene. You never stay put in the middle of a cube becuase you need to walk around the terrain 'bottom side of the cube'.
So I am confused when you say the camera stays in the middle.
g_xtrans2=1; to move unit cube 'skybox' up 1 so my camera starts at bottom of the cube inside it. g_xscale=100.0f; g_yscale=50.0f; g_zscale=100.0f; D3DXMatrixTranslation( &matTrans, g_xtrans2, g_ytrans2, g_ztrans2); D3DXMatrixScaling(&Scale, g_xscale, g_xscale, g_zscale); D3DXMatrixMultiply(&combine,&matTrans,&Scale); g_pd3dDevice->SetTransform(D3DTS_WORLD, &combine);This topic has been locked by a moderator. New replies are not allowed.
GameDev.net uses cookies to ensure you have the best experience on our platform. Learn more