Jump to content
Sign in to follow this  
phjvh

Two xml questions

Recommended Posts

Guest iagman

1.If && is written as "ampersand amp; ampersand amp;"how is "or" written? 2.What are the parameters needed to draw a vector arc. I need a circular arc that spans 300-degrees.3.Okay, I lied about two question. Where can you find more details regarding vectors. A bit of info is found here but mostly it is a discussion between folk that already know vectors and it's hard to follow their conversation.Thanks,Glenn

Share this post


Link to post
Share on other sites

Glenn,1. type "||"2. Arc vectors can't be drawn with a single command so far I've tested. However, as you may have found searching this forum, some tricks can be used to obtain something pretty much like of.3. Almost everything I learned about vectors was after reading dozens of messages from here. I don't know of simple tutorials for vector drawings in XML, though others maybe. It's a matter of time, patience and enthusiasm..Tom

Share this post


Link to post
Share on other sites

Hi, you could draw a circle, then follow this code with a drawn 'filled-in' triangle with a 60 degree angle. This would act as a mask and block out that part of the circle you do not require.Or, you could use a mask bitmap. You just add the vector code to that part of the gauge where you would normally put a bitmap for the circle.cheers,nick

Share this post


Link to post
Share on other sites
Guest iagman

Thanks, guys,Nick, vectors would sure make for a popular tutorial, the first of its kind.Glenn

Share this post


Link to post
Share on other sites

>Thanks, guys,>Nick, vectors would sure make for a popular tutorial, the>first of its kind.>GlennHi Glenn,Now that you know how to do it: what's holding you back in creating such a tutorial ??? :-lol I would be interested too ..Cheers, Rob

Share this post


Link to post
Share on other sites
Guest iagman

Such a tutorial would shorter than my article on health and hygiene, ie, if our butts and mouths were switched, we would eat less and bath more.Glenn

Share this post


Link to post
Share on other sites
Guest airhead

In ref. to the and/or question in the original post, you can just use "and" and "or" instead of the double ampersand or double pipe symbols. You might find it easier to read that way when working on the code. I've also found a few instances where using the symbols can cause issues in the parts xml file for interactive geometry in the VC.

Share this post


Link to post
Share on other sites

Hi,Even more simple, use the "clip" command in the circle element.No need of bitmaps or masks etc.Jan"Beatus Ille Procul Negotiis"

Share this post


Link to post
Share on other sites

Depends on the requirement I guess. Clip commands always remove a rectangle, whereas using a poly mask or better still a bitmap mask has more flexability,nick

Share this post


Link to post
Share on other sites

Nick,Completely right.But if one only needs an arc mode in the HSI the "clip" is just easy.Jan"Beatus Ille Procul Negotiis"

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...