My first graphics stuff

dallasstar

New member
....Well....not exactly graphics....unless if 16 color 640x480 cheap circles and squares are graphics to you... but anyway, let the questions begin:

Ok guys, I'm an ammateur programmer that started programming a few months ago, so please don't get mad at a stupid question. I have made a few Programs using BGI in Turbo C++. They work on my computer, but not on other computers. I tried bundling the BGI drivers with my files when I transfer them to the other computers, but they still don't work on the other computers. Could it be because I run WinXP and the other computer has Win98? It seems unlikely to me, but I guess its possible. Any help on why my BGI programs don't port over to other computers properly would be appreciated.
 
I have no idea, but if you're using BGI I think you better start looking around for a replacement. OpenGL is really easy to learn.
 
I've used BGI with Turbo Pascal, and what I've always done is exactly what you said - include the BGI driver file with the program. This seems to work, and I haven't come across any problems. Are you sure you're copying the correct file? I've always used 'Bgi256v2.bgi' to allow higher color modes too (16 and 24 bit via VESA). What kind of messages are you getting when you try to run it on other computers?

However, the only reason that I did graphics in Turbo Pascal was I didn't know C++. If you know C++, it won't take long for you to figure out how to work with windows (just look at the MSDN section on windowing or follow a tutorial). Then, you can start with DirectX or OpenGL, as Humus prescribed.

You're eventually going to have to go in that direction anyway if you want to do any real graphics. I did my first 3D stuff with a software engine I made for QBasic, then went to Turbo Pascal. Now I'm going for hardware acceleration with C++, but I wish I started with this route early on. It's your choice though.
 
Thanks for the replies guys. I didn't know OpenGL was so easy that a guy who has BGI knowledge, at best, could do it (well, I would have learned it in Computer Science 3 in my highschool anyway... currently in Compsci 1). I'm gonna get started as soon as I can (and thank God I already have some animation/3dmodeling experience... it'll make it a lot more fun).

Mintmaster: have you tried porting it across different OS's?
example: WXP to W9X
 
OpenGL + Visual C++

OpenGL + Visual C++

OpenGL ROCKS. I'm another convert from the evil TP7 or gr12 compsci. Within hours of getting my C++ golden disc and a bunch of tuts, I was making the camera spin around a cube...

I haven't done anything really serious yet because I want to learn some more C++, particularly how to read data files and so on. But the potential is totally there.

A question though, can OpenGL do 2D as well, or is it just a 3D engine? And I need DirectX to play sound, correct?
 
Back
Top