I need to learn DirectX. The examples for Introduction to 3D Programming with DirectX 11 by Frank D Luna does not work. Can anyone help me

Started by
33 comments, last by GameDevCoder 6 years, 5 months ago
7 hours ago, GameDevCoder said:

Ok. I have removed a couple errors and am just left with one issue for the BOX example in chapter 6.

Does anyone know how I can fix this please?  https://ibb.co/gstKvw

I've no idea what to do about this problem.

Put the code back to its original state.  It was not trying to use a pointer to a color.  You can't use pointer as vertex data.

-potential energy is easily made kinetic-

Advertisement

 

11 hours ago, Infinisearch said:

Put the code back to its original state.  It was not trying to use a pointer to a color.  You can't use pointer as vertex data.

Thanks for the post. I haven't altered the original code in anyway. I have only tinkered with the project settings/properties. Any chance you can elaborate on for me please? If you might know how I can solve this issue?

My mistake, I thought you had been messing around with the code and assumed.  Follow what ericrrichards22 mentions.  Basically this is to just manually stick some xmfloat4's in there with what ever values you find for RGBA whereever "Colors::" is defined.

edit - you can also use Colors:: in the same way.... sorry I edited my post and made it confusing.

-potential energy is easily made kinetic-

2 hours ago, Infinisearch said:

My mistake, I thought you had been messing around with the code and assumed.  Follow what ericrrichards22 mentions.  Basically this is to just manually stick some xmfloat4's in there with what ever values you find for RGBA whereever "Colors::" is defined.

edit - you can also use Colors:: in the same way.... sorry I edited my post and made it confusing.

;) it's ok. Thanks for the post Infinsearch. I will be trying out some stuff with getting these examples to work over the weekend I plan too. Will see if I can get this BOX example working.

BTW what version of Visual Studio are you using?

-potential energy is easily made kinetic-

2015 i'm using

I've been working on the example from scratch again. Have made developments but have this left to solve. Any ideas?

https://ibb.co/hG0gSb

7 hours ago, GameDevCoder said:

2015 i'm using

Then I take back what I said about not having to change anything.

See here: https://blogs.msdn.microsoft.com/chuckw/2012/04/24/wheres-dxerr-lib/

IIRC If you want to make things real easy just use VS2013 and the 2010 SDK.  It will get you up and running with the demo's from the book... and once you feel comfortable with the basics you can either move past using the legacy libraries or use their replacements.

On 11/9/2017 at 10:46 PM, ericrrichards22 said:

Not overly familiar with DirectXMath, and it has been quite a while since I was digging through the Luna DX11 book, but it looks like you probably need to use the constructor for XMFLOAT4, rather than rely on an implicit conversion

https://msdn.microsoft.com/en-us/library/windows/desktop/ee419645(v=vs.85).aspx

This really should work for you in your older version.  You should try it.

-potential energy is easily made kinetic-

Before I carry on. I just want to say how I over came this issue https://ibb.co/gstKvw .

Like people suggested it was regarding the constructor. So like this https://ibb.co/f0vXHb that part of the code is now working. It's just https://ibb.co/hG0gSb being my last hurdle now. 

 

I will download VS13 and give that a shot. Thanks for this suggestion. I totally agree with what you say to that if this goes well I can then become familiar with it all then later I can move onto using VS15 for DirectX when I have built up my confidence more from learning it.

 

PS - it's a bit annoying to really as I was able to remove this error in one version of me trying to get the example to work. It has appeared again though this error and now I'm not sure how to remove it. I will start downloading VS13 also now.

Edit - Finding it hard to download VS13. Where I should be able to get it, this page won't let me download it. Where I scroll down to the download I need something to load and it just isn't loading. It's like they aren't fussed with older content being viewed by anyone now.

Edit 2- I can download the express version I think, I was trying to download the community version. I'll try the express version and see how it goes.... I think getting VS13 is going to be a struggle too. I've tried doing this and I'm just getting webpages thrown at me saying error and to get in touch with Microsoft. I had this pop up on my screen when I tried downloading VS13 express "We are sorry, but our system is detecting a problem with your account and we are unable to validate access to your subscription". Such a pain in the backside to get anything done :l . I just tried going on live chat with support but they only open Mon-Fri :(.

I'll see if I can download VS13 still otherwise I'll have to try and get it working using VS15 that I am currently using.

I've emailed the support team also now to see why I can't download VS13. Hopefully they show me a fix for this.

I know you want to stick with Luna but just so you know there are some tutorials here:

http://www.rastertek.com/tutdx11s2.html

Oh and why did you delete the older version you were working on?

edit - BTW on the front page of d3dcoder.net is frank luna's email address.

-potential energy is easily made kinetic-

This topic is closed to new replies.

Advertisement