Mycal
Staff member
OK, it was actually extremely simple to port the DX8 code to SlimDX 9. I plan after fully finishing the SlimDX 9 code to also port to SlimDX 10 for those cards that can support it. However, I will not personally be porting to SlimDX11 simply because I do not have a DX11 capable card.
So right now, instead of going through with the first step of drawing a complex map. I decided to work my way up. Right now my goal is to get lighting to work. I am still a little lost on lighting since there are so few tutorials for any version of DX detailing it.
So right now, I've drawn a basic multicolored tilemap for a floor and have set the camera above this. I finally tweaked the camera to be positioned properly. Now when I turn on the lights I run into an issue. I do not know if it's my laptop or if I have set something up wrong, but no matter what I do, the drawn floor appears black. So I've set this code aside and used a simple triangle and tried the same thing. No go, still black.
To ensure that it's not my laptop, I'll have to just stop here and wait until I get to my desktop which I know supports lighting and test.
Anyway, this post is to say that, no matter what, I will get lighting to work before I move on. We don't need anything too complex since we are just 2D. All we really need is point lights, so once this just works, I'll move on. I'll work on tweaking later on when I have a full map drawn.
Also, while there is a camera, it is a fixed camera. I may make use of it for scrolling purposes (I'd like to see how this works in comparison to my old scrolling code), but otherwise it is totally stationary.
So right now, instead of going through with the first step of drawing a complex map. I decided to work my way up. Right now my goal is to get lighting to work. I am still a little lost on lighting since there are so few tutorials for any version of DX detailing it.
So right now, I've drawn a basic multicolored tilemap for a floor and have set the camera above this. I finally tweaked the camera to be positioned properly. Now when I turn on the lights I run into an issue. I do not know if it's my laptop or if I have set something up wrong, but no matter what I do, the drawn floor appears black. So I've set this code aside and used a simple triangle and tried the same thing. No go, still black.
To ensure that it's not my laptop, I'll have to just stop here and wait until I get to my desktop which I know supports lighting and test.
Anyway, this post is to say that, no matter what, I will get lighting to work before I move on. We don't need anything too complex since we are just 2D. All we really need is point lights, so once this just works, I'll move on. I'll work on tweaking later on when I have a full map drawn.
Also, while there is a camera, it is a fixed camera. I may make use of it for scrolling purposes (I'd like to see how this works in comparison to my old scrolling code), but otherwise it is totally stationary.