Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 5th, 2006, 10:08 AM   #31
Malekos
Newbie
 
Malekos's Avatar
 
Join Date: Apr 2006
Posts: 18
Rep Power: 0 Malekos is on a distinguished road
Hmmm...
C++,
GDI
Algebra...
That's all?
Malekos is offline   Reply With Quote
Old May 5th, 2006, 10:22 AM   #32
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Malekos
Hmmm...
C++,
GDI
Algebra...
That's all?
Sure, to start, but for high-performance graphics, you will need to move beyond GDI, and since Windows does not allow arbitrary direct hardware access, that leaves DirectX as the lowest-level method available to you.

I would recommend starting with a 2D engine first (like a tile-based game). Don't forget you can mix polygons with plain 2D stuff. In fact, a polygon is a 2D shape, so all 3D accelerators can be used in 2D engines (for example, to rapidly blit texture-mapped tiles to the screen). Then, when you're comfortable with that, move on to some pseudo-3D stuff, like a slivering engine. If you don't know what that is, it's an engine that builds up a 3D view from multiple verticle 'slivers' which are scaled in height according to how far they are from the camera location. Old games like Heretic, Hexen, and the original DOOM used this technique. This approach should yield satisfactory performance on modern machines, even if you're using GDI. After you've gotten that down, you can move on to DirectX and a pure-polygon 3D engine.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 10th, 2006, 4:47 PM   #33
Malekos
Newbie
 
Malekos's Avatar
 
Join Date: Apr 2006
Posts: 18
Rep Power: 0 Malekos is on a distinguished road
Sure I 'll start from 2d.
The problem is how to descibe points (vertices) in a 3d world (basicaly, describe a 3d world) (in all this I mean the idea of how to discribe a 3d world)....
Malekos is offline   Reply With Quote
Old May 10th, 2006, 7:36 PM   #34
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 573
Rep Power: 5 Benoit is on a distinguished road
A vertex is just an xyz coordinate...

In OpenGl, if you wanted to draw an object, you could make every vertex yourself if you wanted to using glVertex(x,y,z)...

glBegin(GL_TRIANGLES);
glVertex3f(0.0,1.0,0.0);
glVertex3f(-1.0,0.0,0.0);
glVertex3f(1.0,0.0,0.0);
glEnd();
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old May 11th, 2006, 4:53 PM   #35
Malekos
Newbie
 
Malekos's Avatar
 
Join Date: Apr 2006
Posts: 18
Rep Power: 0 Malekos is on a distinguished road
I know this...
The vertices are just points in the 3d world.
Malekos is offline   Reply With Quote
Old May 11th, 2006, 4:55 PM   #36
Malekos
Newbie
 
Malekos's Avatar
 
Join Date: Apr 2006
Posts: 18
Rep Power: 0 Malekos is on a distinguished road
Also, I heard that with c++ and some ready libraries can let me "talk" through an (windows) interface to the graphics card / or just "play" with pixels....
Malekos is offline   Reply With Quote
Old May 11th, 2006, 5:22 PM   #37
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Ok. Congratulations.
Polyphemus_ is offline   Reply With Quote
Old May 11th, 2006, 6:30 PM   #38
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 573
Rep Power: 5 Benoit is on a distinguished road
Quote:
Originally Posted by Malekos
Also, I heard that with c++ and some ready libraries can let me "talk" through an (windows) interface to the graphics card / or just "play" with pixels....
That interface would be Direct3D, OpenGL, or other graphics libraries
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old May 11th, 2006, 10:58 PM   #39
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Benoit
That interface would be Direct3D, OpenGL, or other graphics libraries
Yeah, but remember, the OP said he wanted to do it without using such libraries/APIs. I guess he'll be absent from the forums for a bit while he reads about what a framebuffer is, and brushes up on his trigonometry and matrix math. :)
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 13th, 2006, 10:13 PM   #40
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 573
Rep Power: 5 Benoit is on a distinguished road
How is code for a GPU written anyway, do they have their own assembly languages?
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC