Texture in box

Started by
4 comments, last by NighTiger 18 years, 4 months ago
Hi guys, I would like to make a world. So I made a box and my cam is in it. Now I would like to attach a texture that represent the sky in the box. How can I do that?
Advertisement
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/programmingguide/tutorialsandsamplesandtoolsandtips/tutorials/tutorials.asp


Tutorial 5 explains how to use textures. Start from tutorial 1 if you don't understand everything in the later tutorials.
Hi,

have a look at this one or this one!

If it's not enough, google for skybox!

Hope this is what you wanted :)

kp

[Edited by - kovacsp on November 29, 2005 3:39:49 PM]
------------------------------------------------------------Neo, the Matrix should be 16-byte aligned for better performance!
I have a little problem... I would like to apply the texture to a MeshBox...
is it the same thing to apply a texture to a vertex buffer?
Quote:Original post by NighTiger
I have a little problem... I would like to apply the texture to a MeshBox...
is it the same thing to apply a texture to a vertex buffer?

what is a "MeshBox"?
------------------------------------------------------------Neo, the Matrix should be 16-byte aligned for better performance!
private static Mesh _skyMap = null;

_skyMap = Mesh.Box(_device, 80.0f, 80.0f, 80.0f);

This topic is closed to new replies.

Advertisement