GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Apr-2008, 20:47
genesaika genesaika is offline
New Member
 
Join Date: Apr 2008
Posts: 11
genesaika is on a distinguished road

Good easy tutorial for direct3D?


I am rather new to C++ and using dev-C++. I use Windows XP and Windows Vista OS.

I am wondering if someone can give me a link to a good easy tutorial for direct3D. I have made video games using just C++ but they are so plain and all. I want to put in some graphics, even if it's only 2D. At the moment I know nothing at all about direct3D so any info would be very useful. Thank you very much.
  #2  
Old 03-May-2008, 04:31
Peter_APIIT Peter_APIIT is online now
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 405
Peter_APIIT is on a distinguished road

Re: can someone point me in the right direction?


I also want to know.
__________________
Linux is the best OS in the world.
  #3  
Old 04-May-2008, 10:25
genesaika genesaika is offline
New Member
 
Join Date: Apr 2008
Posts: 11
genesaika is on a distinguished road

Re: can someone point me in the right direction?


I have recently been told that openGL is easier to start with, can anyone confirm this? If so can you help me with that too?
  #4  
Old 05-May-2008, 11:02
J-M J-M is offline
New Member
 
Join Date: Apr 2008
Posts: 14
J-M is on a distinguished road

Re: Good easy tutorial for direct3D?


If it's only 2D you can use SDL: http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index
I've heard that Allegro and some other are also easy to start with.
When moving to 3D graphics I suggest using Ogre 3D engine http://www.ogre3d.org/ or Crystal Space 3D which is a game-engine http://www.crystalspace3d.org/main/Main_Page

BR,
J-M
  #5  
Old 05-May-2008, 13:28
genesaika genesaika is offline
New Member
 
Join Date: Apr 2008
Posts: 11
genesaika is on a distinguished road

Re: Good easy tutorial for direct3D?


Thank you J-M but would i be able to use OGRE with dev-C++? At the moment I can't download visual C++.
  #6  
Old 06-May-2008, 11:59
J-M J-M is offline
New Member
 
Join Date: Apr 2008
Posts: 14
J-M is on a distinguished road

Re: Good easy tutorial for direct3D?


I once coded with dev-C++, but then found Code::Blocks. Intellisense and other goodies included. My experiences with Visual C++ are from VC 6, so I can't say is it any good now.
SDK installation instructions doesn't include Dev-C++ in supported list, so you might have to compile it from source to use it with Dev-C++.
There is a possibility that it works with http://www.ogre3d.org/wiki/index.php/Codeblocks_and_MinGW#Ogre_1.4.0_SDK_for_Code::Blocks_.2B_MingW which uses a modified version of libstdc++, more info behind the link.

BR,
J-M
  #7  
Old 28-May-2008, 14:03
genesaika genesaika is offline
New Member
 
Join Date: Apr 2008
Posts: 11
genesaika is on a distinguished road

Re: Good easy tutorial for direct3D?


ok then does visual C++ use a different language then Dev-C++ ?

when i type in the code:

system ("pause");

visual C++ says that there were build errors.

i get the same message if i type in:

cout << " hello" ;
  #8  
Old 28-May-2008, 22:54
J-M J-M is offline
New Member
 
Join Date: Apr 2008
Posts: 14
J-M is on a distinguished road

Re: Good easy tutorial for direct3D?


Quote:
Originally Posted by genesaika
ok then does visual C++ use a different language then Dev-C++ ?

when i type in the code:

system ("pause");

visual C++ says that there were build errors.

i get the same message if i type in:

cout << " hello" ;
No, have you included all necessary headers?
I don't know in which header system-call is, might be in windows.h.
And if you don't use
CPP / C++ / C Code:
std::cout << "Hello";
have you used
CPP / C++ / C Code:
using namespace std;
  #9  
Old 09-Jun-2008, 12:06
genesaika genesaika is offline
New Member
 
Join Date: Apr 2008
Posts: 11
genesaika is on a distinguished road

Re: Good easy tutorial for direct3D?


ok here is my file exactly and i have checked to see if the windows.h file is in my includes folder and it is.

CPP / C++ / C Code:
// test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "windows.h"

int _tmain(int argc, _TCHAR* argv[])

{
	using namespace std;
	std::cout << "hello";
system ("pause");
	return 0;
}
i have tried moving things around and it does not work regardless of wut i do
  #10  
Old 09-Jun-2008, 17:13
Peter_APIIT Peter_APIIT is online now
Regular Member
 
Join Date: May 2007
Location: Malaysia
Posts: 405
Peter_APIIT is on a distinguished road

Re: Good easy tutorial for direct3D?


What error message you get ?

The main should be like this :

int main(int argc, char *argv[]);

You written is Windows main and not portable.
__________________
Linux is the best OS in the world.
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Dots in specific Locations in the Console ? Max_Payne CPP / C++ Forum 0 12-Jan-2008 21:33
Drawing Program Max_Payne CPP / C++ Forum 13 23-Dec-2007 18:06
Classes & Collections Max_Payne CPP / C++ Forum 4 11-Dec-2007 09:05
Linked list: Dereferencing to incomplete type shalombi C Programming Language 3 08-Jun-2007 14:47
Point to Point3D Inheritance worms707 CPP / C++ Forum 10 24-Apr-2006 17:59

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:42.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.