Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


IndignentAngel

Member Since 23 Sep 2013
Offline Last Active Private

Posts I've Made

In Topic: What`s wrong with my textrue?

24 September 2013 - 06:28 AM

Get the texture from texture filtering here: http://www.codesampler.com/dx9src/dx9src_3.htm#dx9_texture this texture contains how both OpenGL and DX handle texture coordinates and I always use this one as my test texture because of that.

Ah! That helps a lot. Thank you.

In fact. I created three buffers. One for vertex positions , one for the normals and the other for  texture coordinates. And I made a mistake when filling the D3D11_INPUT_ELEMENT_DESC structure. I shold have assinged 0 to the AlignedByteoffset and an incremental value to the InputSlot for the three buffers.


In Topic: What`s wrong with my textrue?

24 September 2013 - 06:16 AM

It looks like some of the texture coordinates are not right on some of the triangles, and the rest are repeated across the cubes faces

To get the texture to repeat just once, set the coords to range from 0 to 1

You might have just set them to range from 0 to texture width

 

For the texture coordinate issue, look at a "texture coordinate system" tutorial for directx, and it will definitely show you a working cube

Thank you! I finally fix that. It is all about the texture coordinates.


PARTNERS