Solved

3D rendering in BGI

Posted on 2000-05-17
8
344 Views
Last Modified: 2008-03-10
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
0
Comment
Question by:SuperMario
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 5

Expert Comment

by:laeuchli
ID: 2819546
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
0
 
LVL 5

Expert Comment

by:laeuchli
ID: 2819548
sorry thats www.gamedev.net
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2819749
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
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 2819924
0
 
LVL 1

Expert Comment

by:Ik_Khan_Pk
ID: 2820799
If your choice will be directx then i can support you more.
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2820852
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
0
 
LVL 5

Accepted Solution

by:
laeuchli earned 50 total points
ID: 2821286
Trying to create a 3d engine with just lines, for someone who has never done any 3d programming before, is impossible. However, if you really want to try, I'll tell you the frist things you need to do. First, you need to make a create triange function. All 3d programs work with triangles. Then you need a multiply view by matrix function, which will allow your triangles to be rotated. Here is a example link:http://www.geocities.com/SiliconValley/2151/matrices.html
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2823236
Yes, this is actually exactly what I'm looking for.

Thank you very much!

-Dan
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question