Site Sections

Monday, April 5, 2010

Downloads - PC : OctTree Implementation in Direct X

Well, here is something I dusted off today. This was something I was working on about 2 years ago. It is an implementation of an OctTree in Direct X. I started this with the hopes that it would turn into a full fledged 3D scene editor at some point, however with a lack of a development team and the challenges of working with Direct X, it was decided by myself that this may be a bit more than I was willing to take on at the time with my limited graphics experience.

Screenshot:

If you take a look at some of my old posts about Direct X you will see around the time I decided it was a good idea to switch back to OpenGL and other projects. I would love to see this go somewhere in the future, but in my current state of affairs (job hunting, my impending homelessness, my impending marriage - hopefully after I or my fiancee find a new job/home) I really don't have time to pursue this project anymore. Since I am not using it and it really isn't super functional, however the OctTree is and there is some interesting stuff I was doing in MFC to try and build a properties window, I figure it might be useful for someone trying to learn Direct X. It is written for DX9 however, so don't expect any fancy DX10 or DX11 code in here (remember... 2 years ago). You will also need Visual Studio 2008, so bust that baby out if you got it, else you are kinda dead in the water.

I figure it is better to get it out there to at least show that I have been proactive in learning about graphics and if I help someone learn then I will be happy for that. You can download the source here from drop.io (or from the Downloads side bar). Let me know if you have any questions... I might be able to help, maybe... I did comment the code fairly well so I hope that helps those of you trying to read it.

Controls for moving about are currently just using the arrow keys to move about the plane, there is code in there to support moving in the Y direction, either both rotation or translation in that direction. Once again, old project so what you see is what you get. The application supports .X format for models.

Enjoy!