Jump to content
  • Advertisement
Sign in to follow this  
sysop1911

Need C++ DX small environment program/code

This topic is 2537 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone have or know of a program of a basic 3D environment (in C++ w/DirectX) of a 'room' with a few objects in it as well as a user-controlled object that can move through the room? The room could be very small relative to the size of the user-controlled object (UCO). The other objects in the room would be basic things like a ball and a box that the UCO could move. This should not be hard to program, like a very basic 'game'. The graphics quality is not important. Is there a program w/ source code out there for this? And 'no', this is not for a homework assignement. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I am not quite sure of your knowledge of directx with c++, but in my opinion it is not an easy stuff. Do you want to fully learn directx with c++ or just to test something?

Share this post


Link to post
Share on other sites

I am not quite sure of your knowledge of directx with c++, but in my opinion it is not an easy stuff. Do you want to fully learn directx with c++ or just to test something?


Primarily to test something, although, as a secondary goal, I would learn from it. I know some C++ and have tried a couple directx programs, but could not get even a 3D object on the screen. I think it was the book I was using (Beginning DirectX 10 Game Programming). Even when I copied the program right from the CD that came with the book, the program did not work, even though the 2D object-creation exercise in the book just before the 3D object exercise worked fine.

For anyone who has a solid knowledge of C++ w/DirectX, the program I want should not be difficult at all, in fact, someone who has this knowledge probably already has this kind of program sitting around somewhere. Do you have the ability to do it? Really, it's just a simple, small 'room' that a user can navigate through (in 2 dimensions only, x and y) with a couple objects that can be moved by the user. But, of course, I could still be wrong about the simplicity of this, but it seems like this would be a basic learning step for someone programming C++/DX.

Share this post


Link to post
Share on other sites

Look at some of the samples in the SDK; many of them are exactly what you want.


I'll look through the SDK. You (or anyone else reading this) wouldn't happen to know the sample number in the SDK with this program by chance, would you? Thanks.

Share this post


Link to post
Share on other sites

well using directx with c++ is not an easy thing and i can point you out at http://d3dcoder.net/.
there you can find some free source code, starting with the basic things.(in the books menu select book and then source code part stuff)
Of course it will be nice to buy one of frank books, they are really amazing and i learned soo much from them, especially from the shader approach book.
Frank covered almost every aspect that one new learner would need in his game, so i think that with some dedication you will reach your goal.
But, if you need do to some game fast, just take one free engine or XNA and dont bother with directx with c++.

Share this post


Link to post
Share on other sites
You could give Hieroglyph 3 a shot - it is the framework that we used for our D3D11 book, and provides an "Entity" level manipulation. If you shoot me a PM, I could probably throw together a program to get you started...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!