Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Oct 2012
Offline Last Active Jul 01 2013 04:00 AM

Topics I've Started

D3DXIntersect mathod performance

28 December 2012 - 03:56 AM

Does anybody know how optimized D3DXIntersect method is? Is there any sense to create own intersection test algorithm?

Problems rendering texture on a mesh

21 December 2012 - 02:05 AM


my problem is that for some reason my texture gets twisted from two sides of a cube. I load a cube from .OBJ file and the data seems to be valid. I have tested .OBJ file with another application, wich renders the cube correctly. With both applications I get same result after loading the OBJ-file, but my application doesn't render it correctly. Mysterious part is that only two sides of the cube is rendered incorrectly but four other sides looks ok. I have attached pictures from cube as well.

Work order of loading and setuping the mesh:

1. Get position data and texture position data from OBJ-file

2. Get indices of vertices

3. Setup vertex and index buffers

4. Load and setup texture

Any ideas what might cause this error?