|
delphi-3d-digest Friday, July 25 1997 Volume 01 : Number 010
---------------------------------------------------------------------- Date: Thu, 24 Jul 1997 12:39:48 +0200 From: Mike Lischke <Lischke@imib.med.tu-dresden.de> Subject: RE: [delphi-3d] List "From" address wrong? I'm working with MS Outlook and found that I ever had the address of the = particular poster in the from field (not the mailing list address), BUT, = you're right. Earlier I could reply to the list without selecting any = 'to' address, but now I must (as you write). Though I cannot follow back = since when I have to do that. On the other hand, it could be a reason, why there're so few message = here, but I don't really believe that ;-) Maybe the people are doing = holiday? Ciao, Mike - -----Original Message----- From: Dean Thompson [SMTP:ClassicSoftware@CompuServe.COM] Sent: Thursday, July 24, 1997 9:43 AM To: Delphi 3D Mailing List Subject: [delphi-3d] List "From" address wrong? I just checked back through some previous messages from the list and it seems that none of them have a "From" address of the list (as opposed = to a From address of a particular person) since around the 3rd of July. = This is about the same date that there was a problem with mass mailings to = which Daniel Spiess said that the ISP had changed the setup. (This currently means that you also can't just reply to a message received, you have to actually create a new message and re-address it -- is this just = happening to me or is everyone having this occur?) Is this perhaps the reason why there has been so few messages on this = list of late? Dean - -------- ------------------------------ Date: Thu, 24 Jul 1997 16:36:19 +0200 From: Mike Lischke <Lischke@imib.med.tu-dresden.de> Subject: [delphi-3d] Delphi 3 and OpenGL Hi all, heya, got my D3 copy today!!! Of course, I tried to install my GLScene = library immediately and got a 'few' errors. After I removed them I have = only one question for you, since 'OpenGL.pas' is buggy :-(=20 Up to now I found 2 errors: - - GL_TRUE and GL_FALSE cannot be used since they are declared as = integer, not boolean (use 'true' and 'false' meanwhile) - - gluBuild2DMipmaps misses the parameter 'height' (do I have to rebuild = the entire VCL?) >8-0=20 Has anyone of you dealt with that (perhaps found other errors) and has a = solution for me? Any help would be appreciated Ciao, Mike - -------- ------------------------------ ------------------------------ Date: Thu, 24 Jul 1997 18:29:43 +0200 From: McBain <zastrow@cs.tu-berlin.de> Subject: [delphi-3d] DirectX 5 Hi ! I just started programing Direct3D IM, and today i read the DirectX5 IM would be very different to the 3.0a Version. Is this right, and where can i get the DirectX5 release from ? Thschuess ! - -------- ------------------------------ Date: Thu, 24 Jul 1997 18:42:44 +0200 From: McBain <zastrow@cs.tu-berlin.de> Subject: [delphi-3d] Delphi 32Bit Hi folks ! I have 2 questions to Delphi 2.0 1.) I tried to load a 3,5 MB text-file into a Listbox ... But every time i got an error ! After that i inserted the lines from that file manualy. And than i saw the problem. Is it right, that only 32768 lines can be inserted into a Listbox, or better into a TStringList ?!? 2.) While loading the file i want to show the actual position of the file-pointer. I set min = 0, max = FileSize(F), and i thought i could set the position value to the current file-position. This should work, i thought ! And after a few hours (not really) i realized something which formed the folloing question in my mind ! Which intellegent person has implemented the ProgressBar with the position-field of of Word, which means that only values from 0 to 65535 can be set ?
Ok, is was'nt difficult to implement it so, that it works, but i thought we are in times of 32Bit !!! I hope someone comments my questions Ok, buy buy ! email <zastrow@cs.tu-berlin.de>
------------------------------ Date: Thu, 24 Jul 1997 18:42:44 +0200 From: McBain <zastrow@cs.tu-berlin.de> Subject: [delphi-3d] Delphi 32Bit Hi folks ! I have 2 questions to Delphi 2.0 1.) I tried to load a 3,5 MB text-file into a Listbox ... But every time i got an error ! After that i inserted the lines from that file manualy. And than i saw the problem. Is it right, that only 32768 lines can be inserted into a Listbox, or better into a TStringList ?!? 2.) While loading the file i want to show the actual position of the file-pointer. I set min = 0, max = FileSize(F), and i thought i could set the position value to the current file-position. This should work, i thought ! And after a few hours (not really) i realized something which formed the folloing question in my mind ! Which intellegent person has implemented the ProgressBar with the position-field of of Word, which means that only values from 0 to 65535 can be set ?
Ok, is was'nt difficult to implement it so, that it works, but i thought we are in times of 32Bit !!! I hope someone comments my questions Ok, buy buy ! email <zastrow@cs.tu-berlin.de>
------------------------------ Date: Thu, 24 Jul 1997 13:20:10 -0400 From: Dean Thompson <ClassicSoftware@compuserve.com> Subject: Re: [delphi-3d] 2nd Test >>It works!! You can now reply by just hitting reply. =
Thanks. Thinking about it, everyone would have still received messages addressed to the list but any replies would have only gone to the origina= l sender and not back to everyone else. We'll have to wait and see now whether it really makes any difference to the message count... <s> Dean - -------- ------------------------------ Date: Thu, 24 Jul 1997 13:20:13 -0400 From: Dean Thompson <ClassicSoftware@compuserve.com> Subject: [delphi-3d] Delphi 3 and OpenGL >> Has anyone of you dealt with that (perhaps found other errors) and has a solution for me? << I created my own GL.PAS, GLU.PAS and WGL.PAS (wiggle functions), mainly s= o I wouldn't have any problems (from a copyright point of view) when I have= to distribute them with components that need them. I wasn't sure about t= he legitimacy of including copies of the Blake Stone header files so I creat= ed my own. The advantage now is that =
1. they can be used for D2 or D3 2. I can redeclare funcs/procs with more meaningful parameters, e.g. the standard headers have: procedure glLoadMatrixd(const m: PGLdouble ); stdcall; external OPENGL32DLL; and I have: procedure glLoadMatrixd(const m: Array4_4d); stdcall; external OPENGL32DL= L; 3. I can use them for either MS OpenGL or Cosmo/SGI OpenGL (by using compiler directives). 4. Any corrections can be done easily by me, e.g. GL_TRUE =3D True; The disadvantage was that I had to convert the C header files (most of on= e weekend) and that now I have to maintain them, e.g. add the appropriate declarations for any extensions and additions in future OpenGL versions (e.g. 1.2). Dean - -------- ------------------------------ Date: Thu, 24 Jul 1997 12:43:02 -0500 From: Jason Arnold <ArnoldJ@tdg-tx.net> Subject: RE: [delphi-3d] Delphi 32Bit > Which intellegent person has implemented the ProgressBar with the >position-field of > of Word, which means that only values from 0 to 65535 can be set ? > > >Ok, is was'nt difficult to implement it so, that it works, >but i thought we are in times of 32Bit !!! > >I hope someone comments my questions > >Ok, buy buy ! > >email <zastrow@cs.tu-berlin.de> > if you read through all the declerations, try to find 1% that are 32bit, you'd be dissapointed.. heh... however you can go much farther by using pointers.. (thinking borland used words and stuff to overcome possible memory errors) DUH, maybe delphi 4 will use pointers for things like listboxes and stuff... they finally used it for strings... i had a sructure that contained a bunch of strings... when i did a SIZEOF on this structure in D1, it was like 900k !!! whoa... and when i did it in D3 it was about 211k (empty of course), all the strings were using pointers instead of the 255 limit... -Jason - -------- ------------------------------ Date: Thu, 24 Jul 1997 13:44:59 -0400 From: Dean Thompson <ClassicSoftware@compuserve.com> Subject: [delphi-3d] Delphi 32Bit >> Hi folks ! I have 2 questions to Delphi 2.0 [snip of off-topic stuff] I hope someone comments my questions >> This mailing list is for questions related to development of 3D apps/components using Delphi, NOT for general development questions. Dean - -------- ------------------------------ Date: Thu, 24 Jul 1997 13:10:20 -0500 From: Tim Keating <tim_keating@mailstorm.ols.us.dell.com> Subject: Re: [delphi-3d] Delphi 32Bit At 06:42 PM 7/24/97 +0200, you wrote: >Hi folks ! > >I have 2 questions to Delphi 2.0 > >1.) I tried to load a 3,5 MB text-file into a Listbox ... > But every time i got an error ! After that i inserted the lines from > >that > file manualy. And than i saw the problem. Is it right, that only >32768 lines > can be inserted into a Listbox, or better into a TStringList ?!? Yes. >2.) While loading the file i want to show the actual position of the >file-pointer. > I set min = 0, max = FileSize(F), and i thought i could set the >position value > to the current file-position. This should work, i thought ! > And after a few hours (not really) i realized something which formed > >the folloing > question in my mind ! > Which intellegent person has implemented the ProgressBar with the >position-field of > of Word, which means that only values from 0 to 65535 can be set ? You should be able to scale your position into that range fairly easily: PositionRatio := MaxParts/65535; Position := TruePosition * PositionRatio; > >Ok, is was'nt difficult to implement it so, that it works, >but i thought we are in times of 32Bit !!! That doesn't mean it's smart or efficient to always use 32-bit variables; there are times when this is a waste of cycles. >I hope someone comments my questions I don't mind . . . this time; however, going forward, can you please post questions like this to one of the regular delphi newsgroups? This list is specifically for 3D graphics programming. >Ok, buy buy ! "Bye bye" is the right spelling in this context. "Buy buy" sounds like you're encouraging someone to shop :) TK - -------- ------------------------------ Date: Thu, 24 Jul 1997 13:15:50 -0500 From: Tim Keating <tim_keating@mailstorm.ols.us.dell.com> Subject: Re: [delphi-3d] Delphi 3 and OpenGL At 01:20 PM 7/24/97 -0400, you wrote: >The disadvantage was that I had to convert the C header files (most of one >weekend) and that now I have to maintain them, e.g. add the appropriate >declarations for any extensions and additions in future OpenGL versions >(e.g. 1.2). A) Don't worry about future OpenGL versions; this is no more than a once-a-year event (1.2 is currently targeted for tentative approval on Dec. 9). B) We should probably get organized and collectively build *one* copy of the header file for each implementation of GL (since they tend to have different extension sets . . . maybe we should do a core GL1_1.PAS with only the 1.1 standard, and implement extension sets in their own files? The C++-heads over on c.g.a.o. have talked about doing something like this. Our advantage would be that since we've got to do the translation ANYWAY, we might as well do it right . . . C) I don't think copyright is an issue; I'm reasonably certain Blake Stone can't copyright a translation of an opengl header file because he doesn't own the source; SGI does. And I hardly think they're going to sue you for promoting their product! TK - -------- ------------------------------ Date: Thu, 24 Jul 1997 23:21:20 -0700 From: "Amit Bakshi" <melkor@intergate.bc.ca> Subject: Re: [delphi-3d] Delphi 32Bit > Hi folks ! > > I have 2 questions to Delphi 2.0 > > 1.) I tried to load a 3,5 MB text-file into a Listbox ... > But every time i got an error ! After that i inserted the lines from > > that > file manualy. And than i saw the problem. Is it right, that only > 32768 lines
yes, win95 can only have 32k of entries in a listbox. if you use NT then you're only limited by the ammount of memory you have. > can be inserted into a Listbox, or better into a TStringList ?!? what you can do is load up the number of fields that are visible. then as the user scrolls up & down, load the new lines and discard the old ones. should be simple.
> 2.) While loading the file i want to show the actual position of the > file-pointer. > I set min = 0, max = FileSize(F), and i thought i could set the > position value > to the current file-position. This should work, i thought ! > And after a few hours (not really) i realized something which formed > > the folloing > question in my mind ! > Which intellegent person has implemented the ProgressBar with the > position-field of > of Word, which means that only values from 0 to 65535 can be set ? > > > Ok, is was'nt difficult to implement it so, that it works, > but i thought we are in times of 32Bit !!!
win95 is unfortunately mostly still 16bit for backwards compatibility.
- -------- ------------------------------ Date: Fri, 25 Jul 1997 09:10:05 +0200 From: Mike Lischke <Lischke@imib.med.tu-dresden.de> Subject: RE: [delphi-3d] Delphi 3 and OpenGL - ------ =_NextPart_000_01BC98DA.8B753CA0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Creating a core 'header' file for our OpenGL progs would be probably the = best way, since we cannot expect to have the newest version of Borland's = OpenGL.pas, when a new version of OGL comes out. Dean, as well as I, has = made a translation of the header files and so it should be a thing of a = week or two to create a commonly acceptable conglomerat. Dean, would you = mind to send me your files, so I can compare them with my ones (they are = downloadable from Beau FTP, if the servers is finally up again)? In order to avoid a whole bunch of different files, I'd suggest to hold = the gl/glu/wgl parts of each version in one file (as Borland did), but = properly named (perhaps OpenGL_10, OpenGL_11 a.s.o.). In addition, we = could create a quite often needed mathematics unit (vector and matrix = maths), which defines the appropriate data types (homogen/affine vectors = of all floating point types...). Ciao, Mike - -----Original Message----- From: Tim Keating [SMTP:tim_keating@mailstorm.ols.us.dell.com] Sent: Thursday, July 24, 1997 8:16 PM To: delphi-3d@frii.com Subject: Re: [delphi-3d] Delphi 3 and OpenGL At 01:20 PM 7/24/97 -0400, you wrote: >The disadvantage was that I had to convert the C header files (most of = one >weekend) and that now I have to maintain them, e.g. add the appropriate >declarations for any extensions and additions in future OpenGL versions >(e.g. 1.2). A) Don't worry about future OpenGL versions; this is no more than a once-a-year event (1.2 is currently targeted for tentative approval on = Dec. 9). B) We should probably get organized and collectively build *one* copy of the header file for each implementation of GL (since they tend to have different extension sets . . . maybe we should do a core GL1_1.PAS with only the 1.1 standard, and implement extension sets in their own files? = The C++-heads over on c.g.a.o. have talked about doing something like this. = Our advantage would be that since we've got to do the translation ANYWAY, we might as well do it right . . . C) I don't think copyright is an issue; I'm reasonably certain Blake = Stone can't copyright a translation of an opengl header file because he = doesn't own the source; SGI does. And I hardly think they're going to sue you = for promoting their product! TK - -------- ------------------------------ Date: Fri, 25 Jul 1997 03:20:11 -0400 From: Dean Thompson <ClassicSoftware@compuserve.com> Subject: Re: [delphi-3d] Delphi 3 and OpenGL >> A) Don't worry about future OpenGL versions; this is no more than a once-a-year event (1.2 is currently targeted for tentative approval on De= c. 9). << Isn't that nice compared to the 'other' 3D API... >> B) We should probably get organized and collectively build *one* copy of the header file for each implementation of GL (since they tend to have << Who would be responsible for incorporating additions/fixes and 'releasing= ' the update? >> C) I don't think copyright is an issue; I'm reasonably certain Blake Ston= e can't copyright a translation of an opengl header file because he doesn't= own the source; SGI does. And I hardly think they're going to sue you for= promoting their product! << As a matter of fact, the OpenGL header files were done by Richard Hansen (my mistake), I was thinking of the DirectX header files which were done = by Blake Stone. While copyright wouldn't seem to be an issue (and it wouldn't seem to be considering there can be up to 3 different copyright holder notices in so= me Delphi OpenGL header files -- SGI, MS and whoever did the final conversion!) then my only concern with a collectively maintained set of header files (from a commercial component usage point of view) is the timeliness of any necessary fixes being incorporated should an error in t= he declarations be found. I suppose any delays could always be worked aroun= d by having the user update their local copies until the 'official' version= s were published. BTW: My initial copyright concern was due to the following section in the= SGI comments in the header files, which would indicate that anyway including these files (e.g. with a component they were distributing) woul= d require written permission from SGI: ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;= ** the contents of this file may not be disclosed to third parties, copie= d or ** duplicated in any form, in whole or in part, without the prior written= ** permission of Silicon Graphics, Inc. Dean Thompson ClassicSoftware@compuserve.com http://ourworld.compuserve.com/homepages/ClassicSoftware - -------- ------------------------------ Date: Fri, 25 Jul 1997 09:39:06 +0200 From: Mike Lischke <Lischke@imib.med.tu-dresden.de> Subject: RE: [delphi-3d] Delphi 3 and OpenGL - ------ =_NextPart_000_01BC98DE.9988EAE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit - -----Original Message----- From: Dean Thompson [SMTP:ClassicSoftware@compuserve.com] Sent: Friday, July 25, 1997 9:20 AM To: INTERNET:delphi-3d@frii.com Subject: Re: [delphi-3d] Delphi 3 and OpenGL
>> B) We should probably get organized and collectively build *one* copy of the header file for each implementation of GL (since they tend to have << Who would be responsible for incorporating additions/fixes and 'releasing' the update? [Mike Lischke] I would do it... - ------------------------------ Date: Fri, 25 Jul 1997 10:08:40 +0200 From: Hein du Plessis <heindp@ilink.nis.za> Subject: Re: [delphi-3d] Delphi 32Bit > > file manualy. And than i saw the problem. Is it right, that only > > > 32768 lines > > yes, win95 can only have 32k of entries in a listbox. if you use NT > then you're only limited by the ammount of memory you have. > > > can be inserted into a Listbox, or better into a TStringList ?!? > > what you can do is load up the number of fields that are visible. > then as the user scrolls up & down, load the new lines and discard > the old ones. should be simple. I haven't tried this on a ListBox, but I'm loading 10MB of records, equal to 100 000 strings in a StringList with no problem (If you have the mem!) in NT & 95. I would like to do some 3D vector graphics with Delphi 3.0 - the last time I did this was on TP3 in DOS on a mono 286 - things have changed, so where do I go for a quick start? Do I *have* to read through the DirectX manual?? Cheers, Hein - -------- ------------------------------ Date: Fri, 25 Jul 1997 06:12:10 -0400 From: Dean Thompson <ClassicSoftware@compuserve.com> Subject: RE: [delphi-3d] Delphi 3 and OpenGL I'll send you the files via email. >> In order to avoid a whole bunch of different files, I'd suggest to hold t= he gl/glu/wgl parts of each version in one file (as Borland did), but proper= ly named (perhaps OpenGL_10, OpenGL_11 a.s.o.). = << I agree that one single file is a good idea. I don't agree that it shoul= d be called something different for each version. This would mean that whe= n I come to start using the unit for 1.2 I would have to go and change all existing references to the 1.1 unit. I don't see how you could support that without either $IFDEFs to control which unit you are using (e.g. use= s {$IFDEF OPENGL10} OpenGL_10, {$ENDIF} {$IFDEF OPENGL11} OpenGL11 {$ENDIF}= , or having to go and change your code to start using a new version of the OpenGL unit. The other aspect to consider is support for SGI OpenGL -- just decide on = an acceptable directive to use I suppose. Dean Thompson ClassicSoftware@compuserve.com http://ourworld.compuserve.com/homepages/ClassicSoftware - -------- ------------------------------ Date: Fri, 25 Jul 1997 16:44:39 +0200 From: Tore Nestenius <synchron@algonet.se> Subject: [delphi-3d] Link-swap Hi I have added a link to your page on my http://www.programmersheaven.com A BIG on-line resource for beginners as well as advanced programmers. Within this site you will find a collection of over 750 useful, free files to download, and more than 1200 programming-related links to explore!
Your link can be found on my Graphics or Delphi programmling linkpage. And i wonder if you could add a link to my page on your pages? Please let me know if my description of your site is wrong or if you want to have it changed.
/Tore - -------- ------------------------------ End of delphi-3d-digest V1 #10 ****************************** |