SuperMario
asked on
3D rendering in BGI
Is there a routine, or a tutorial on how to write a routine, that will draw a 3D object *and manipulate its vertices visibly* ?
For instance, in BGI graphics mode, I want to be able to draw a cube and rotate it left, right, up, and down with the arrow keys.
Please let me know of a link or a library which will allow me to do this.
Thanks in advance,
-Dan
For instance, in BGI graphics mode, I want to be able to draw a cube and rotate it left, right, up, and down with the arrow keys.
Please let me know of a link or a library which will allow me to do this.
Thanks in advance,
-Dan
You are looking for opengl(if you are in dos you can use the mesa drivers), or if you have a voodoo graphics card, you might want glide. Take a look at www.gamesdev.net
sorry thats www.gamedev.net
ASKER
Sorry laeuchli,
This is not really what I am looking for. I'm doing the old-ass programming that nobody ever uses anymore with BGI drivers and functions like moveto(), lineto(), and floodfill(). I'm trying to create a moveable 3D object in a strictly 2D environment. I guess I'm trying to write an engine for a cube.
Thanks in advance for any more advice or links you can give.
-Dan
This is not really what I am looking for. I'm doing the old-ass programming that nobody ever uses anymore with BGI drivers and functions like moveto(), lineto(), and floodfill(). I'm trying to create a moveable 3D object in a strictly 2D environment. I guess I'm trying to write an engine for a cube.
Thanks in advance for any more advice or links you can give.
-Dan
If your choice will be directx then i can support you more.
ASKER
Well, I already know you can do this in DirectX using the lpMesh->AddRotation() method.
However, I am trying to write a function that does what AddRotation does, but for a vertex. I am looking really for a math formula.
-Dan
However, I am trying to write a function that does what AddRotation does, but for a vertex. I am looking really for a math formula.
-Dan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, this is actually exactly what I'm looking for.
Thank you very much!
-Dan
Thank you very much!
-Dan