Showing posts with label Loading. Show all posts
Showing posts with label Loading. Show all posts

Friday, April 22, 2011

Loading Mesh | Asset

This tutorial will demonstrate how to load mesh in Direct3D 11. It uses Assimp library to do so. It's an open source project and can be used to load various asset formats export from DCC tools

This site is under construction. I will soon add samples and tutorials in the near future

Saturday, April 2, 2011

Texturing

This tutorial will demonstrate how to load texture in Direct3D 11

Interfaces used:
ID3D11ShaderResourceView

std::wstring oTexturePathString = L"c:\\textures\\hello.dds"; // Replace this file path with the texture that you want to load


ID3D11ShaderResourceView *pD3DShaderResourceView;

CHECK_COM(::D3DX11CreateShaderResourceViewFromFile(g_pD3DDevice, oTexturePathString.data(), nullptr, nullptr, &pD3DShaderResourceView, nullptr));

Now bind the created SRV to the shader to see the bound texture