[Flightgear-devel] YASIM questions
Is there someone who can tell me about local coordinates and global coordinates. What is the difference? Moreover, where is exactly the point in which the collision with the ground is treated? I have reported down a piece of code of Yasim\Model.cpp with some questions attached (****) // Returns a unit down vector for the ground in out, and the // distance from the local origin to the ground as the return value. // So for a given position V, dist - (V dot out) will be the height // AGL. **what is height AGL?** float Model::localGround(State* s, float* out) { // Get the ground's down vector, this can be in floats, because // we don't need positioning accuracy. The direction has plenty // of accuracy after truncation. out[0] = -(float)_ground[0]; **why is it inverted?** out[1] = -(float)_ground[1]; out[2] = -(float)_ground[2]; Math::vmul33(s-orient, out, out); // The distance from the ground to the Aircraft's origin: ** what is the meaning of this operation, what is _ground[3]?** double dist = (s-pos[0]*_ground[0] + s-pos[1]*_ground[1] + s-pos[2]*_ground[2] - _ground[3]); return (float)dist; } // Get a ground plane in local coordinates. The first three // elements are the normal vector (**where is the origin of this vector?**), the final one is the distance // from the local origin along that vector to the ground plane // (negative for objects above the ground) **Why negative?** float ground[4]; ground[3] = localGround(s, ground); float alt = Math::abs(ground[3]); ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] YASIM
Is there someone who can tell me about local coordinates and global coordinates. What is the difference? I have reported down a piece of code of Yasim\Model.cpp with some questions attached (****) // Returns a unit down vector for the ground in out, and the // distance from the local origin to the ground as the return value. // So for a given position V, dist - (V dot out) will be the height // AGL. **what is height AGL?** float Model::localGround(State* s, float* out) { // Get the ground's down vector, this can be in floats, because // we don't need positioning accuracy. The direction has plenty // of accuracy after truncation. out[0] = -(float)_ground[0]; **why is it inverted?** out[1] = -(float)_ground[1]; out[2] = -(float)_ground[2]; Math::vmul33(s-orient, out, out); // The distance from the ground to the Aircraft's origin: ** what is the meaning of this operation, what is _ground[3]?** double dist = (s-pos[0]*_ground[0] + s-pos[1]*_ground[1] + s-pos[2]*_ground[2] - _ground[3]); return (float)dist; } // Get a ground plane in local coordinates. The first three // elements are the normal vector (**where is the origin of this vector?**), the final one is the distance // from the local origin along that vector to the ground plane // (negative for objects above the ground) **Why negative?** float ground[4]; ground[3] = localGround(s, ground); float alt = Math::abs(ground[3]); ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] COLLISION DETECTION
Hi, sorry for my so late answer, but I can't connect to Internet every day! My post has developed a very big discussion. Thanks to all!! I'm going to see the hitlist.cxx file in the hitlist directory to learn more about the actual situation. Anyway, to realize my truck driving simulator I need a collision detection able to detect collision with the aircraft on runways, with the buildings, with the terrain. I know that is not so easy!! I have no experience in 3d programming now, the driving simulator is an idea for my thesis at the university, but I have only few months (=6) to spend about. With the previous post I have tried to understand if the collision det implementation was a reasonable effort for me, in other words if it was possible in this period of time! But, as I can see, it seems to be very hard!! Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] COLLISION DETECTION: possible or not?
Hi, as I told to Andy Ross I would like to implement a truck driving simulation in FlightGear but my doubt regards the collision detection, which is not implemented! It's only a week that I study FlightGear code and I have now no idea if the collision detection is reasonably implementable or not and, if yes, how. I would appreciate your opinions. Thanks, Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] YASIM question (for Andy Ross)
Hi Andy, First of all, thanks for your help with the config file. Now I have another question: I would like to ask you if it is possible to start from Yasim in order to obtain a ground vehicle dynamic model. My idea is to develop a truck simulation inside FlightGear and I have thought to start from Yasim because it uses the rigidbody dynamics; moreover in this way I inherit the interface to FlightGear. But there is a little problem: the collision detection, which is not implemented. Moreover the airplanes on the gorund don't follow the slope of the terrain in a realistic manner: they go down parallel to ground if there is a heavy slope: is this behavior due to the fact that the only point of reference is the cg of the aircraft and not the position of the wheels? I would appreciate your opinion about!! Thank you in advance!! Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] YASIM question (for Andy Ross)
Hi Andy, First of all, thanks for your help with the config file. Now I have another question: I would like to ask you if it is possible to start from Yasim in order to obtain a ground vehicle dynamic model. My idea is to develop a truck simulation inside FlightGear and I have thought to start from Yasim because it uses the rigidbody dynamics; moreover in this way I inherit the interface to FlightGear. But there is a little problem: the collision detection, which is not implemented. Moreover the airplanes on the gorund don't follow the slope of the terrain in a realistic manner: they go down parallel to ground if there is a heavy slope: is this behavior due to the fact that the only point of reference is the cg of the aircraft and not the position of the wheels? I would appreciate your opinion about!! Thank you in advance!! Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] YASIM config file
Hi guys, I would like to have an explanation regarding the yasim xml config file. In particular I want to know more about the coordinate system used on this file. My start point for the coordinate are those of ac3d. Can I use the same origin of ac3d or am I forced to use the nose of the plane (how can I set it) as origin? Moreover: does the location of a gear refer to the centre of it? Is the tip of the gear the closest point to the ground or not? Or is it the centre of the gear? Thanks, Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] 3d panel visible externally. Why?
-- Messaggio originale -- Date: Wed, 14 Apr 2004 17:41:01 - To: FlightGear developers discussions [EMAIL PROTECTED] Subject: Re: [Flightgear-devel] 3d panel visible externally. Why? From: Jim Wilson [EMAIL PROTECTED] Reply-To: FlightGear developers discussions [EMAIL PROTECTED] marco.gugel said: I have a problem with the 3d panel. It is visible in the external views through the objects of the 3d model. Is there anyone who can help me? Thanks a lot Marco Some models need to have a range selector added for that. You probalby won't see that if you run a 16bit depth buffer with your graphics card. Best, Jim Hi Jim, I run a 16 bit depth buffer with the graphics card but, with the c310u3a, for example, i don't have the problem of external visibility. The xml config files I use for my model are similar to the files of other models, but the problem arise only with my model. What can I do to fix it? Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] 3d panel visible externally. Why?
I have a problem with the 3d panel. It is visible in the external views through the objects of the 3d model. Is there anyone who can help me? Thanks a lot Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Compiling under MS visual studio .NET 2003 -
Fred wrote Marco, Olivier just confirmed me that with the patches just included in CVS by Erik, SimGear compiles fine with MSVC .Net 2003. It seems that SimGear 0.3.4 has a problem in clouds3d that was corrected since then. So, my only advice is that it is time to switch to the CVS version. -Fred Hi Fred, thank you very much for your help and support. I'll try to use the CVS version. I'm sorry for my not quick answer, but I was temporarily without Internet connection. Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Compiling under MS visual studio .NET 2003
Is there someone who can help me? I've just installed MS visual studio .NET 2003 (in place of .NET 2002) and I found that, during building, I have lot of errors that .NET 2002 didn't reveal. The parts under errors are in SimGear (Lib_sgcloud3d and Lib_sgprops). ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Compiling under MS visual studio .NET 2003 - Exact errors
-- Messaggio originale -- From: Frederic Bouvier [EMAIL PROTECTED] To: FlightGear developers discussions [EMAIL PROTECTED] Subject: Re: [Flightgear-devel] Compiling under MS visual studio .NET 2003 Date: Sun, 29 Feb 2004 16:50:05 +0100 Reply-To: FlightGear developers discussions [EMAIL PROTECTED] marco.gugel wrote: Is there someone who can help me? I've just installed MS visual studio .NET 2003 (in place of .NET 2002) and I found that, during building, I have lot of errors that .NET 2002 didn't reveal. The parts under errors are in SimGear (Lib_sgcloud3d and Lib_sgprops). Without more details, we won't be able to help you. Please include the exact errors of the compiler. -Fred Hi Fred, I include in attachments a file (buildlog.zip) containing two log files (BuildLog_FlightGear.htm and BuildLog_simgear.htm) with the build errors. Thanks a lot!! Marco attachment: buildlog.zip ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Problems compiling SimGear under MS Visual C++ 7
When I build SimGear I have some problems like those.. d:\Flightgear\SimGear-0.3.4\simgear\screen\jpgfactory.hxx(30) : fatal error C1083: Cannot open include file: 'jpeglib.h': No such file or directory Where I Can find this file? It isn't in plib, glut, simgear, flightgear!! Moreover.. d:\Flightgear\SimGear-0.3.4\compiler.h(245) : fatal error C1189: #error : What version of MSVC++ is this? The file compiler.h is not suitable for MS visual C++ 7, it is setted for VC++ 5. What can I do? Marco -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Erik Hofman Inviato: mercoledì 3 dicembre 2003 10.15 A: FlightGear developers discussions Oggetto: Re: [Flightgear-devel] Compiling FlightGear 0.9.3 under MS VisualC++ 7 (.NET)? [EMAIL PROTECTED] wrote: Is there someone who can tell me how to compile FlightGear 0.9.3 and the other libraries (plib, simgear..) under MS Visual C++ 7? Thas was posted a while ago: Hi, I am receiving an increasing number of request for working project files for MSVC. While I can't reply specifically to everybody, I packed my current, unedited, project files here : ftp://ftp.ihg.uni-duisburg.de/FlightGear/Win32/MSVC/ They are for MSVC 7. I am not trying to compile with MSVC 6 anymore because it is an old compiler ( released 5 years ago ) that has serious bugs and limitations that would make the source ugly. For those that want to try, there are already .dsp files in plib, SimGear and FlightGear source trees. Support request must be directed to the mailing list. -Fred Erik ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
[Flightgear-devel] Compiling FlightGear 0.9.3 under MS Visual C++ 7 (.NET)?
Is there someone who can tell me how to compile FlightGear 0.9.3 and the other libraries (plib, simgear..) under MS Visual C++ 7? Thanks, Marco ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel