Solved

3D rendering in BGI

Posted on 2000-05-17
8
310 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
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
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 2819924
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now