whats wrong with my directx 11 project?

Started by
1 comment, last by Mengo 9 years, 3 months ago

so ive been doing the rastertek tutorials and up to "tutorial 7: 3D model rendering" and as i finish the tutorial and debug my window is just plain black with my mouse cursor loading?i get not error aswell,so i tried to "follow the data" but i cant seem to find anything wrong? the shader are ok. ive used the D3D11_CREATE_DEVICE_DEBUG but still gives me nothing in the debugger?
iam really confused as this is the first time ive come across something like this.


i have the project in a download in this link. https://drive.google.com/file/d/0By7ww7H1L1aeVWkyQU5EMkx1Zlk/view?usp=sharing

Advertisement

Debugger does give a certain answer.

Your program seems to get stuck inside this loop (ModelClass.cpp):


	while (input != ':')
	{
		fin.get(input);
	}

However I am unable to compile your code so there's no way for me to provide further help.

Debugger does give a certain answer.

Your program seems to get stuck inside this loop (ModelClass.cpp):


	while (input != ':')
	{
		fin.get(input);
	}

However I am unable to compile your code so there's no way for me to provide further help.

thanks man! i looked at that part and below that there is this:


m_model = new ModelType[m_vertexCount];
	if (m_model)
	{
		return false;
	}
when i should have put a exclamation mark! at if(!m_model)*derp*

and then i changed the encoding to ANSI and it worked.
but its weird how many times i change the encoding but it never worked before, i think its because i kept on trying again and again by copy-paste.thanks again ;)

This topic is closed to new replies.

Advertisement