Sign in to follow this  
Guest A_Delta_Sierra

*** YES!!!! VECTORS IN VC!!!!!! ***

Recommended Posts

Guys, we have it!Thanks to Chris Koegler, it is now possible for anyone using the GDI or GDI+ to display vectors in the VC that are updated like any other gauge (previously some people were able to make them show, but it would never update).The procedure is described below in Chris' post here http://forums.avsim.com/dcboard.php?az=sho...10989&mode=full, which to my amazement had only two replies, where it should have hundreds, for even though FS2004 is around the corner, and we all know vectors are no problem there, I am sure several people will be able to benefit from this knowledge in FS2002. I know I am!!!Notice in the attached screenshot how I was able to display 6 instances of my Engine Display gauge, which is all vectors. Now get this: No drop whatsoever on frame rates! My CPU is fast, a P4 3.06GHz, but only 384MB memory and a GeForce4 MX 420, so I don't believe this performance is unique to my machine. Keep in mind the VC is updated a lot less than the 2D panel, something like 4 times a second or so, but it is absolutely flyable, like any other VC.Anyways, the "secret" is now unlocked. Thank you again, Chris, and keep us updated on any more developments, for this is the only way the community advances as a whole, by sharing ;-).http://forums.avsim.com/user_files/17453.jpgP.S. Notice I posted below Chris's message saying it did not work for me, but it does. I had a small syntax error that was easily fixed. The method is as described, nothing else.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hey Matt, I can't wait to see your great F-16 gauges in my favorite virtual cockpit !!! :-lol

Share this post


Link to post
Share on other sites

Bump, cause alot of people just don't know what a great discovery this is

Share this post


Link to post
Share on other sites

But as you can see, the word THANKS is very hard to say or write, but thats the way it is........

Share this post


Link to post
Share on other sites

Gotta agree with Chris on this one, ACA308. There are people out there that now about this and never helped a bit. Chris found it, and shared it with us in the forum.I believe most people here do not understand how big this is. Yes, yes, FS2004 is here, and vectors work there without any "tricks", but the point is Chris did what many chose not to, for the good of the community, and that is commendable. More than 300 people read the thread, many might use this, and yet Chris gets a couple of thank yous and that's it...Chris, THANK YOU.

Share this post


Link to post
Share on other sites

Hi Fabio,yes certainly if that much people knew out there I wonder why they never posted their approach here?!? kinda like asking Anticyclone to post how they do clickable VC in FS2002 or Pete Dawson how he fetches AI Traffic from FS2002 internals...(I may consider posting our approach to it by the way when FS2004 is out).Anyhow, there are some shortcomings to Chris approach as hilighted in a post today, but it certainly is not only clever, but kindful to share.We use another approach for ours though...with no added overhead for blitting, and which works for transparent HUD, or any other gauge such as a GPS display (in fact anything you want to display).Besides, as you pointed out, it is a shame not to share with the community. I hope you did enjoy my recent information about how to fetch data directly from the globals.DLL, and I'm sure we are a lot looking forward you post your source code with your gauge skeleton to use GDI+! ;-) Thank you again Chris for your code, and Fabio for these wonderful Cirrus screenshots!

Share this post


Link to post
Share on other sites

>Gotta agree with Chris on this one, ACA308. There are people>out there that now about this and never helped a bit. Chris>found it, and shared it with us in the forum.I fully understand and sympathize... I not only shared my method of gauge backlighting using emissive texturing via GMax, but "worked with and encourged" Louis Sinclair to make the same thing work in FSDS2...Would you care to guess how much response that garnered? I checked the server log on my website and see that over 1,200 unique IP addresses have at least come there to read the tutorial... I won't let that stop me from sharing my "tricks" and "discoveries" though, 'cause I know that there are folks who're using them...So from one 'sharer' to another, Chris... thanks a lot for your kindness!!!BillAVSIM OmbudsmanFounder and Director,Creative Recycling of Aircraft Partshttp://catholic-hymns.com/frbill/FS2002/images/fartslogo.jpg

Share this post


Link to post
Share on other sites

Hey JeanLuc (Bonjour!! ;-))Yes, I could not agree more. I believe if everyone shared findings like these, the community could be a lot richer in quality and variety!Your recent information, although not enjoyed by me (yet, I'll soon get there ;-)), is extremely valuable, and I thank you very much for it and all the other contributions here, JeanLuc.My skeleton code has already been posted at Avsim (well, not mine, Fred Clausen's, from 2FD Design, but it is identical) under the filename fs2k2sdkwithgdi+.zipIf people would like, I could also post it here in the forum...?Finally, thank you for your words. We are hard at work at FFS to produce the most realistic version of a Cirrus possible today.

Share this post


Link to post
Share on other sites

Hello Bill.Yes, unfortunately those who contribute to the freeware community must settle for a couple thank yous and just go on knowing exactly what you mentioned, there are people using it.Thank you too for your pioneering work with gauge, 2D and VC lighting.

Share this post


Link to post
Share on other sites

Hi there,I also tried to catch the AI traffic information and I was able to get:1.) A list with all AI traffic aircrafts and their "offset"2.) The ID like N3234233.) LAT/LON Position, altitiude, speedI do not continue working on this at the moment because I am waiting for the new Flightsimulator 2004 to catch the information from there.I would also appreciate a "developers community" where we share the information we find out, but the problem is that everyone should have the same workamount, all the developers must have deep FS and reverse engineering knowlegde and imagine the following situation: after months of work I find something out, share it and other Addon producer uses it but doesn't share his information and leaves the community. What should I do then? I have no contract so we all have to thrust each other what is not really possible because you are all not neighbours and we only know each other from a pseudonym in the internet or in forums like this.King Regards,Marcel Burrchief programmerbluesky software development

Share this post


Link to post
Share on other sites

Hello Marcel,I perfectly understand your feeling, and as a developer, I would really be glad to share my knowledge with others on this forum. Unfortunately, I am not as good as others, I mean I am not as good as you, I don't know anything about reverse engineering and can not search into the FS code as you do. So what should I do? If anyone needs an information about the gauges I have developed, I will give him, but what if I have nothing to give?The only thing I can do, which I already do, is implementing the tricks you describe here and provide the result to the community. This is exactly what I did with the version 2.0 of my Mirage 4000 panel, xhich includes a new radar visible in VC mode. You can donwload it on my web site:http://emarciano.free.frThis is just my point of view...Eric

Share this post


Link to post
Share on other sites

> I hope you did enjoy my recent information> about how to fetch data directly from the> globals.DLLYeah I tried but could not yet make make it working for my needs. By the way, Jean-Luc, I got your PM (sorry for not responding...) but my weekend was pretty full. I'll try that again. I just thought theTAS = ((FLOAT64) (*(UINT32*)TASMEM)) / 128;should go intot the PRE_DRAW, not the CONNECT_TO_WINDOW, because of the update. Last time I got constant CTDs, but I'll have one more look at it and may contact you once more if there arise problems, ok? ;-)@ Marcel:Yeah, I totally agree, but as you basically said, the risk for being "squeezed out" for nuffin is maybe much too high. :-rollSo finally also from me a thanks to Chris for that hint, although I most likely won't make use of it since of FS9's arrival in a very short time, thus no more need for it.Regards,http://www.flightfactory-simulations.com/i...enne_Banner.jpg

Share this post


Link to post
Share on other sites

Hi Eric,thank you for your answer. I also began programming gauges during a time I only knew the "reverse engineering" and "debugging" from studies and not in a practial way. But over the years, you get slowly experienced and find out a personal way to go step per step through such adventures - small successes keep you alive.King Regards,Marcel Burrbluesky software

Share this post


Link to post
Share on other sites

ALL of the following is IMHO!The "trouble" is, a lot of people think as the artist/craftsman who think they have discovered the ultimate and only solution. Doesn't anyone get any enjoyment our of seeing the results of their original work bettered and used in different applications? It seems as if many are fearful of loosing the "public - I did this" "glory". I can recognize the real work I did in real life and see where my original work/idea was bettered and improved upon. That feels a lot better, to me, then having to have my 'signature', like an artist, visible/branded where every one can see it. If you are trying to make a buck, you should, in these forums as several have done, so state it so we can all understand where you are coming from and your motives. Be polite enough to show us your business card.Different strokes for different people. Once again, 'artists' make very poor teammates. But that is how the world is and will remain.END of IMHORegards,BobS

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this