FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Scenery Design - 3D Objects > ObPlacer and ObPlacer XML

ObPlacer and ObPlacer XML Support for ObPlacer and ObPlacer XML

Reply
 
Thread Tools Display Modes
  #1  
Old 06 May 2005, 10:07
Golf-HotelDelta Golf-HotelDelta is online now
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,951
Parameters for ObPlacer

This is my first attempt at using ObPlacer and an API macro. It seemed to work ok, but I am not sure what is the meaning of Range(v1) and Radius(v2) are these in metres? Secondly, the parameters of the API I am using are:

; %1 = Latitude
; %2 = Longitude
; %3 = Range
; %4 = Scale
; %5 = Rotation
; %6 = Not used
; %7 = Not used
; %8 = Not used
; %9 = Not used
; %10 = Visibility range
; %11 = Altitude
; %12 = Scenery complexity

which are also specified in the ObPlacer dialog. Do I need to specify the User parameters as well as the dialog parameters?

George
Reply With Quote
  #2  
Old 06 May 2005, 12:48
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,800
Send a message via Skype™ to arno
Hi Georg,

v1 is %10, so that is the visibility range (in meters). The v2 value is %14, but it could be that it is hard coded in your API already, in that case you don't have to enter it in ObPlacer as well.

The user variables are %6 till %9, and as your header shows they are not used in your API. So there is no need to enter them.
__________________
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 Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #3  
Old 06 May 2005, 13:33
Golf-HotelDelta Golf-HotelDelta is online now
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,951
Thanks Arno, but what is the meaning of V2? What radius is this?

As I said, the object placed correctly but may not have the required visible range.

George
Reply With Quote
  #4  
Old 07 May 2005, 02:31
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,800
Send a message via Skype™ to arno
Hi Georg,

v2 is the radius of the object. Have a look at this article:

http://www.scenerydesign.org/forum/showthread.php?t=108
__________________
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 Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #5  
Old 07 May 2005, 03:32
Golf-HotelDelta Golf-HotelDelta is online now
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,951
Thanks again Arno.

When you say that V2 determines how far the object is behind when it is not drawn, does this mean that if it has a small value, it will disappear in spot view when looking at the aircraft from the front? In this case, the object is behind the aircraft geometrically, but in front of the eye position.

George
Reply With Quote
  #6  
Old 07 May 2005, 03:37
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,800
Send a message via Skype™ to arno
Hi Georg,

No, all these calculations are from the eye point. But when you eye point is in the aircraft you need to know the radius, as the object will still be in your v1 as you have passed it and it is behind you. So the v2 is a second range that determines how far beyond the reference point the aircraft must be before the object should no longer be displayed. Setting this too small will result in object dissapear while you can still see them.

But many programs hard code the v2 value in the macro (so that the optimal value is always set). So maybe you don't have to worry too much about it .
__________________
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 Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #7  
Old 07 May 2005, 05:30
Golf-HotelDelta Golf-HotelDelta is online now
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,951
Hi Arno,

Thank you very much for your detailed explanation, I now feel as comfortable with Scasm as I am with XML

George
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Effects Parameters - In laymans terms :-) nickw Special Effects General 25 17 Jul 2009 11:55
Effect Parameters does not working dianna78sg GMax and 3DS Max 10 18 Jun 2006 11:51
Airport parameters transfered to new airport Fern BGLComp XML, AFCAD, SceneGenX 1 07 Mar 2006 09:43
Parameters on effects? Georg Aubele BGLComp XML, AFCAD, SceneGenX 7 05 May 2005 14:17
Effects Parameters nickw Special Effects General 2 14 Jun 2004 06:16


All times are GMT -4. The time now is 14:29.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.