Sign in to follow this  
Garra

Textures

Recommended Posts

Garra    103
I'm working on learning textures, and i believe i can do it by using triangles to create objects, that way i have all the vertices i need to apply the texture. However, is there a function to get the vertices of a Direct3D primitive like a box or sphere in order to apply a texture to it? or if not how would it be done? I have looked through the directx help file and haven't really found a function, but maybe i missed it somewhere.

Share this post


Link to post
Share on other sites
Evil Steve    2017
The usual way is to create the vertices yourself and to give each one a texture coordinate.

I wrote a tutorial which includes filling a vertex buffer with the vertices for a cube, and rendering it with a texture.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this