Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-16 Thread Erik Hofman
[EMAIL PROTECTED] wrote:

Now i defined FG_USE_CLOUDS_3D at the beginning of 
the main.cxx file.
But when starting make i get this error:

main.o: In function `fgRenderFrame(void)':
/home/oliver/x/src/cvs/flightgear-cvs/source/src/Main/main.cxx:520: undefined 
reference to `SkySceneLoader::Set_Cloud_Orig(Point3D *)'
Ah, you are almost there.
Now you only have to add -lsgclouds3d to the line containing -lsgmisc in 
you Makefile or Makefile.am

Erik

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-16 Thread [EMAIL PROTECTED]

 Ah, you are almost there.
 Now you only have to add -lsgclouds3d to the line containing -lsgmisc in
 you Makefile or Makefile.am

 Erik

Ok, i did that now.
Everything compiles fine but when i start Flightgear with 
--enable-clouds3d i get again the following error:

Unknown option '--enable-clouds3d'


Any ideas?

Best Regards,
 Oliver C.

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread [EMAIL PROTECTED]
Am Montag, 14. Juli 2003 10:16 schrieb Erik Hofman:
 [EMAIL PROTECTED] wrote:
  After that ./configure worked without errors.
  But when starting make i get this error:
 
  g++ -DHAVE_CONFIG_H -I. -I. -I../../../../simgear -I../../../..
  -I/usr/X11R6/include  -g -O2 -D_REENTRANT -c -o SkyArchive.o `test -f
  SkyArchive.cpp || echo './'`SkyArchive.cpp
  SkyArchive.cpp: In method `SKYRESULT SkyArchive::FindFloat64(const char
  *, double *, unsigned int = 0) const':
  SkyArchive.cpp:633: implicit declaration of function `int
  ulEndianLittleDouble(...)

 I recently added preliminary support for big-endian machines and the
 patch for this is pending for Plib. You could add this patch to plib
 yourself to get past the error:

 http://www.a1.nl/~ehofman/fgfs/download/plib_64bit_swap.diff

 Erik




Ok, now i applied the patch to the plib cvs version but when starting make
i get the following error:

g++ -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ -DPACKAGE_VERSION=\\ 
-DPACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ -DPACKAGE=\plib\ 
-DVERSION=\1.7.0\ -DHAVE_LIBPTHREAD=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 
-DHAVE_LIBGLUT=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DGLUT_IS_PRESENT=1  -I. -I. -g -O2 -Wall -c -o ul.o `test -f ul.cxx || 
echo './'`ul.cxx
In file included from ul.cxx:25:
ul.h: In function `void _ulEndianSwap(long long unsigned int *)':
ul.h:321: integer constant out of range
ul.h:322: integer constant out of range
ul.h:322: integer constant out of range
ul.h:323: integer constant out of range
ul.h:324: integer constant out of range
ul.h:324: integer constant out of range
ul.h:325: integer constant out of range
ul.h:326: integer constant out of range
ul.h:326: integer constant out of range
ul.h:327: integer constant out of range
ul.h:328: integer constant out of range
ul.h:328: integer constant out of range
make[2]: *** [ul.o] Error 1
make[2]: Leaving directory `/home/oliver/x/src/plib/plib/src/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oliver/x/src/plib/plib/src'
make: *** [all-recursive] Error 1


Best Regards, 
 Oliver C.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread Erik Hofman
[EMAIL PROTECTED] wrote:

Ok, now i applied the patch to the plib cvs version but when starting make
i get the following error:
g++ -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ -DPACKAGE_VERSION=\\ 
-DPACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ -DPACKAGE=\plib\ 
-DVERSION=\1.7.0\ -DHAVE_LIBPTHREAD=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 
-DHAVE_LIBGLUT=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DGLUT_IS_PRESENT=1  -I. -I. -g -O2 -Wall -c -o ul.o `test -f ul.cxx || 
echo './'`ul.cxx
In file included from ul.cxx:25:
ul.h: In function `void _ulEndianSwap(long long unsigned int *)':
ul.h:321: integer constant out of range
I was just notified that long long isn't supported on all systems. I 
have to come up with something different.

Erik

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread Erik Hofman
Erik Hofman wrote:
[EMAIL PROTECTED] wrote:

Ok, now i applied the patch to the plib cvs version but when starting 
make
i get the following error:

g++ -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ -DPACKAGE_VERSION=\\ 
-DPACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ -DPACKAGE=\plib\ 
-DVERSION=\1.7.0\ -DHAVE_LIBPTHREAD=1 -DHAVE_LIBGL=1 -DHAVE_LIBGLU=1 
-DHAVE_LIBGLUT=1 -DHAVE_LIBDL=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DGLUT_IS_PRESENT=1  -I. -I. 
-g -O2 -Wall -c -o ul.o `test -f ul.cxx || echo './'`ul.cxx
In file included from ul.cxx:25:
ul.h: In function `void _ulEndianSwap(long long unsigned int *)':
ul.h:321: integer constant out of range


I was just notified that long long isn't supported on all systems. I 
have to come up with something different.
BTW. If you don't have a big-endian machine(Mac,SGI,Sun?) you should be 
fine be removing the contents of _ulEndianSwap:

static inline void _ulEndianSwap(unsigned long long *x) {
}
Erik



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread [EMAIL PROTECTED]
  When the clouds worked, what was wrong with them, what kind of more work?

 I haven't been following this all that closely so perhaps others can help
 describe a TODO list for the 3D clouds code.  IIRC the performance hit was
 too large, and there wasn't anything being done as far as displaying the
 clouds other than above the default startup scenery tile at KSFO.

 The consensus, from what I remember, was moving the rendering of the clouds
 to plib would be a major step toward addressing these issues.


You mean as a part of the PLIB SSG Auxiliary Libraries?

Best Regards,
 Oliver C.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread [EMAIL PROTECTED]
  I was just notified that long long isn't supported on all systems. I
  have to come up with something different.

 BTW. If you don't have a big-endian machine(Mac,SGI,Sun?) you should be
 fine be removing the contents of _ulEndianSwap:

 static inline void _ulEndianSwap(unsigned long long *x) {
 }


Thanks, i commeted everthing between the brackets of the _ulEndianSwap 
function out.
Now plib compiles with the patch code without errors, thanks.

Best Regards,
 Oliver C.



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread Jim Wilson
[EMAIL PROTECTED] [EMAIL PROTECTED] said:

   BTW. If you don't have a big-endian machine(Mac,SGI,Sun?) you should be
   fine be removing the contents of _ulEndianSwap:
  
   static inline void _ulEndianSwap(unsigned long long *x) {
   }
 
  Thanks, i commeted everthing between the brackets of the _ulEndianSwap
  function out.
  Now plib compiles with the patch code without errors, thanks.
 
 
 
 Ok, now i tried flightgear again with the option --enable-clouds3d
 but i get still an error message that such an option does not exist.
 

Looks like FlightGear code is ifdef'd with FG_USE_CLOUDS_3D.

Best,

Jim

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-15 Thread [EMAIL PROTECTED]

 Looks like FlightGear code is ifdef'd with FG_USE_CLOUDS_3D.


Ok, i think i need some help.

I searched for a commented #Define FG_USE_CLOUDS_3D
option but i can't find it.
In what file and what place should i define FG_USE_CLOUDS_3D so that 
#ifdef FG_USE_CLOUDS_3D can find it?


Best Regards,
 Oliver C.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-14 Thread Erik Hofman
[EMAIL PROTECTED] wrote:

After that ./configure worked without errors.
But when starting make i get this error:
g++ -DHAVE_CONFIG_H -I. -I. -I../../../../simgear -I../../../..  
-I/usr/X11R6/include  -g -O2 -D_REENTRANT -c -o SkyArchive.o `test -f 
SkyArchive.cpp || echo './'`SkyArchive.cpp
SkyArchive.cpp: In method `SKYRESULT SkyArchive::FindFloat64(const char *, 
double *, unsigned int = 0) const':
SkyArchive.cpp:633: implicit declaration of function `int 
ulEndianLittleDouble(...)


I recently added preliminary support for big-endian machines and the 
patch for this is pending for Plib. You could add this patch to plib 
yourself to get past the error:

http://www.a1.nl/~ehofman/fgfs/download/plib_64bit_swap.diff

Erik



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-14 Thread [EMAIL PROTECTED]


 I recently added preliminary support for big-endian machines and the
 patch for this is pending for Plib. You could add this patch to plib
 yourself to get past the error:

 http://www.a1.nl/~ehofman/fgfs/download/plib_64bit_swap.diff

Thanks i will try that.
But one question is this patch for the stable plib version or for the 
cvs/unstable version?

Best Regards,
 Oliver C.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-14 Thread Erik Hofman
[EMAIL PROTECTED] wrote:
I recently added preliminary support for big-endian machines and the
patch for this is pending for Plib. You could add this patch to plib
yourself to get past the error:
http://www.a1.nl/~ehofman/fgfs/download/plib_64bit_swap.diff

Thanks i will try that.
But one question is this patch for the stable plib version or for the 
cvs/unstable version?
It *is* for the CVS version, but I think it can be applied to the latest 
stable version also.

Erik

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-14 Thread Jim Wilson
[EMAIL PROTECTED] [EMAIL PROTECTED] said:

 
  They need more work, the most significant step would be moving the
  rendering over to a plib scene graph.
 When the clouds worked, what was wrong with them, what kind of more work?

I haven't been following this all that closely so perhaps others can help
describe a TODO list for the 3D clouds code.  IIRC the performance hit was too
large, and there wasn't anything being done as far as displaying the clouds
other than above the default startup scenery tile at KSFO.

The consensus, from what I remember, was moving the rendering of the clouds to
plib would be a major step toward addressing these issues.

Best,

Jim

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread [EMAIL PROTECTED]

 There has been work started on very impressive 3D clouds.  That said
 there's a lot that FlightGear has them MSFS probably never will have.

That sounds great. :)
I tried to compile the cvs version last night but got an error, do you have
a screenshot of those 3d clouds?

BTW maybe you can help me with that error of the cvs version:

g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src  
-I/usr/X11R6/include 
-DPKGLIBDIR=\/usr/local/games/flightgear-cvs/lib/FlightGear\ -g -O2 -c -o 
main.o `test -f main.cxx || echo './'`main.cxx
main.cxx:42: simgear/screen/extensions.hxx: No such file or directory
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/oliver/x/src/flightgear-cvs/source/src/Main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oliver/x/src/flightgear-cvs/source/src'
make: *** [all-recursive] Error 1

Sounds like an error with SimGear.
Do i need to install the cvs version of simgear
or is SimGear 0.3.3 new enough?




 Not
 the least of which is the fact that if you know how to program you can get
 those cool clouds before MSFS 2004 gets released by finishing the work that
 was started by someone  else.  And you won't have to shell out $50 every
 year or two to the selfish little pseudogeek's empire anymore.

Yes, i allready started learning OpenGL. :)
I bought a book about OpenGL and i am on page 255 of 433 at the moment
but i still need some weeks/months for the rest (including learning how plib
and flighgear works).

Best Regards,
 Oliver C.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread pandora
On Sun, Jul 13, 2003 at 05:02:44PM +0200, [EMAIL PROTECTED] wrote:
 
  There has been work started on very impressive 3D clouds.  That said
  there's a lot that FlightGear has them MSFS probably never will have.
 
 That sounds great. :)
 I tried to compile the cvs version last night but got an error, do you have
 a screenshot of those 3d clouds?

I get a core dump in 0.9.2 when trying to run it with 3d clouds.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread John Wojnaroski



  There has been work started on very impressive 3D clouds.  That said
  there's a lot that FlightGear has them MSFS probably never will have.

 That sounds great. :)
 I tried to compile the cvs version last night but got an error, do you
have
 a screenshot of those 3d clouds?

go to http://www.first-day.org and rummage around in the jpgs directory


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread Lee Elliott
On Sunday 13 July 2003 17:26, John Wojnaroski wrote:
 
 
   There has been work started on very impressive 3D clouds.  That said
   there's a lot that FlightGear has them MSFS probably never will have.
 
  That sounds great. :)
  I tried to compile the cvs version last night but got an error, do you
 have
  a screenshot of those 3d clouds?
 
 go to http://www.first-day.org and rummage around in the jpgs directory

Those clouds look terrific.

LeeE


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread [EMAIL PROTECTED]

 go to http://www.first-day.org and rummage around in the jpgs directory


Thanks, those clouds look good on the screenshot but it would be interesing
to see how they look and behave in game when fyling into them.

I managed to compile the cvs version, now it works
but when i try to start it with the option --enable-clouds3d
it gives me the following error message:

Unknown option '--enable-clouds3d'


From ./fgfs --help -v 
i can see that --enable-clouds3d should be the right option
to activate them but that doesn't work.

So how can i enable those 3d clouds?

Best Regards,
 Oliver C.


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread John Wojnaroski

 So how can i enable those 3d clouds?

You will have to do some coding. We got it working but it was never fully
integrated with the plib scene graph and it was decided to turn-off the
code. Can't tell you what is needed since I've not kept pace with the 0.9.2
release or CVS versions.You might go back and follow the thread on cloud
discussions over the past year for some insight and history on the subject.

JW


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Question about clouds in Flightgear vs. FS2004

2003-07-13 Thread Jim Wilson
[EMAIL PROTECTED] [EMAIL PROTECTED] said:

 
  go to http://www.first-day.org and rummage around in the jpgs directory
 
 
 Thanks, those clouds look good on the screenshot but it would be interesing
 to see how they look and behave in game when fyling into them.
 
 I managed to compile the cvs version, now it works
 but when i try to start it with the option --enable-clouds3d
 it gives me the following error message:
 
 Unknown option '--enable-clouds3d'
 

It looks like all you need to do is go into the SimGear/simgear/scene/sky
directory and uncomment the SUBDIR line in the Makefile.am file.  This is
the way building the 3d clouds was disabled in the last release.  Other than
that, I'm not exactly sure how well they are working.

They need more work, the most significant step would be moving the rendering
over to a plib scene graph.

BTW if you are reading about Open GL, you might find plib interesting.  It can
save a lot of programming time, not to mention it provides a 3D application
framework (which FlightGear is using).  You may find it useful to work at
learning the plib API and then eventually digging deeper to understand the
underling Open GL work.

Best,

Jim

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel