Qbasicnews.com
February 26, 2020, 12:50:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Article: 3d Series - Chapter 1 - Projection  (Read 10148 times)
ArticleBot
New Member

Posts: 2


« on: July 12, 2004, 05:31:39 PM »

This is for discussion and questions on the article: 3d Series, Chapter 1 - Projection - http://www.qbasicnews.com/articles.php?id=39.
Logged
keeling
Forum Regular
**
Posts: 149



WWW
« Reply #1 on: February 23, 2005, 02:09:48 PM »

A very nice article... keep it up!
Logged
shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #2 on: February 23, 2005, 02:18:23 PM »

keeling, did you see the date that post was made? Smiley

-shiftLynx
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #3 on: February 23, 2005, 05:20:12 PM »

yes that was like almost a year ago!

Talk about reviving dead topics... :roll:

Oh yeah Rel's 3D tuts were good. But they got confusing when it came to shading...
Logged

i]"But...it was so beautifully done"[/i]
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #4 on: February 24, 2005, 05:23:10 AM »

Quote from: "Mitth'raw'nuruodo"
yes that was like almost a year ago!

Talk about reviving dead topics... :roll:

Oh yeah Rel's 3D tuts were good. But they got confusing when it came to shading...


Shading in software is very confusing.  Wait till  finish my FB OGL tute. :*)
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #5 on: February 24, 2005, 01:04:52 PM »

Shocked Hey, its the peson himself Rel!

Ya it is! But I didn't need it in my program anyways...
Logged

i]"But...it was so beautifully done"[/i]
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #6 on: February 25, 2005, 12:28:55 PM »

Quote from: "relsoft"

Shading in software is very confusing.  Wait till  finish my FB OGL tute. :*)


 Shocked FB OGL tut!!! Alsome!!!,... I really can't wait!!! Shocked  Cheesy
Logged

Kevin (x.t.r.GRAPHICS)

Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #7 on: February 25, 2005, 04:43:14 PM »

What is this OGL? :Huh:

Some kind of 3D graphic library in FB perhaps? :bounce:
Logged

i]"But...it was so beautifully done"[/i]
shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #8 on: February 25, 2005, 06:33:44 PM »

OpenGL - it's a cross-platform 3D library with hardware acceleration capabilities. It's used in a lot of games (e.g. every ID Software game uses it, Half-Life 1 and Half-Life 2 can use it, etc.).

By the way, rel - looking forward to the tutorial! Smiley

-shiftLynx
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #9 on: February 25, 2005, 07:32:43 PM »

So I was right?

Will it work for QB too? Cheesy
Logged

i]"But...it was so beautifully done"[/i]
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #10 on: February 25, 2005, 07:54:03 PM »

Smiley No, I'm sure OGL want work for QB, its a "DLL" lib, QB uses "QLB", "LIB", and "BI" altho OGL is loaded with "BI",.. In C++ you load it with a ".h" ?? oh well.. Its to advance 4 QB...

BTW, I'm really looking forward to this tut, I mean I've downloaded Dev C++ just to practice it, then I'll learn how to port to FB,.. but a FB tut would really b sweet!! Cheesy  Cheesy  Cheesy
Logged

Kevin (x.t.r.GRAPHICS)

shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #11 on: February 25, 2005, 10:03:06 PM »

The main reason you can't use OpenGL in QB is because OpenGL requires drivers which are written for Windows. It's also 32-bit (where as QB runs as 16-bit).

.DLL's are dynamic link libraries - the code inside them is not directly compiled into your program, but references to the functions inside the DLL are. The operating system then has to load the DLL file (and hence code) into memory for you so your program can use it.

.BI files are headers, which -declare- functions (note: this is not the same as writing the code for them, which would be -defining- a function).

.QLB are static libraries - these contain code which get compiled into your final .EXE.

.a are also static libraries - gcc/g++/gas/etc. use them.

.lib are usually used by anything Microsoft.

.h files are similar to .BI files - they are intended to -declare- functions and define constants and macros.


Sorry to go on... you just seemed a little confused about the file types, so I thought I should patch them up a bit. Smiley Hope it helped and wasn't patronising!

-shiftLynx
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #12 on: February 26, 2005, 12:47:58 AM »

A few notes....

.h stands for a Header file. This is a library in C++, or a collection  of functions, not just the declares are included.

.cpp is your basic C++ file....Guess what it stands for? C Plus Plus lol :lol:

Hey I use Dev too!
Logged

i]"But...it was so beautifully done"[/i]
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #13 on: February 26, 2005, 10:21:43 AM »

:lol: I knew ".h" ment header, as I did ".BI",... just a odd difference between the two,.

Yeah, heh heh, You got the latest? it just came out a few days ago.. :wink: PM me so we don't fall of topic.. Smiley
Logged

Kevin (x.t.r.GRAPHICS)

shiftLynx
Wandering Guru
***
Posts: 340



WWW
« Reply #14 on: February 26, 2005, 10:31:34 AM »

Quote from: "Mitth'raw'nuruodo"

.h stands for a Header file. This is a library in C++, or a collection  of functions, not just the declares are included.


A .h is not a library. It is an 'include file' and should contain no function definitions. They declare functions, which are defined in static libraries, or dynamic libraries (if the functions use __cdecl(dllexport)).

Header files are used to supply your program with a list of what functions are included in the library and what arguments those functions take. They can also contain typedefs, structs, class prototypes etc.

Including function definitions inside header files is very bad practice.

Consider this: you are writing a library that provides a set of cryptographic functions. You are saying that you write all of the cryptographic code into a .h file and supply that. This means your code is effectively open source, whether you like it or not.

The correct way would be to declare all of the functions in something like crypto.h, then write the code for all of the functions into crypto.c or crypto.cpp. Compiling this into a static library produces something similar to: crypto.a. When people now want to use your library, they must include the header file (crypto.h) and link your static library (crypto.a).


-shiftLynx
Logged

img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!