Jump to content
Sign in to follow this  
arno

Range when object appears

Recommended Posts

Guest gorchi

Hi!I have one phylosophical question. Let say we have one model which is more detailed when aircraft is near (so fences appears, antennas, etc...) and less detailed when far. Which conditional instruction is better to use,* IfVarRange( :Ret 33b 0 $max_dist ) or* IfVSize( :Ret $Max_dist $min_pixel ) IfHSize( :Ret $Max_dist $min_pixel )I tried to find it out by myself and it seems there is no big difference. I am sking You because FSDS only knows IfVarRange/IfVarAnd conditions and I have some complicated object which are hard to simplyfy.Best regards to all and merry christmas!Goran BrumenFS Slovenija 2002 teamhttp://slovenia.avsim.net

Share this post


Link to post
Share on other sites

Hi Goran,I never tried comparing them, but if I remember correct the IfHSize and IfVSize look at the number of pixels a certain object is. So I expect this also to depend on the screenresolution and not only on the distance.Using IfVarRange with the distance depends, of course, only on the distance.So I think it depends on what you want which one is better to use. Some small details may only be relevant at a certain resolution, while for other objects a certain distance mught be more appropriate.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

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...