- Messages
- 315
- Country
Hi,
I'm trying to figure out how to get a PIP to watch a falling object. On the SDK web page it says:
"A PictureInPictureViewController object adds a small view window and is typically used for a "bomb-cam" -- giving a view of or from a falling object."
Well that's what I want - a "bomb-cam" that follows a dropped object - specifically, trying to drop a "seismic sensor" into a volcano…yes, I know the molten lava will melt the thing, just bear with me for now.
Right now I'm using the Flour Bomb simobject to work this out (eventually I'll build a seismic probe looking kind of thing in gMax, make a model, etc. I've done that before with sling loads)
This seems to be a "chicken or the egg" issue. The SDK states:
AttachedWorldObjects This enables the view controller to be attached to a moving object.
and
UseTargetPosition Set to True or False. True indicates that the camera will try to keep the AttachedWorldObject, if one is set, in view.
OK so far, but how does one attach attach a world object if the world object doesn't come into being until you hit Shift D? Is just the simobject name enough? (In this case Flour_Bomb?)
EDIT 2:
OK - I just decided to actually FLY the flour bomb mission and I saw that the PIP is focused on the Flour Bomb, not the platform. How is that? I have no idea.
It clearly call for an AttachedWorldPosition??!!
I feel like I'm missing something basic…thoughts?
I'm trying to figure out how to get a PIP to watch a falling object. On the SDK web page it says:
"A PictureInPictureViewController object adds a small view window and is typically used for a "bomb-cam" -- giving a view of or from a falling object."
Well that's what I want - a "bomb-cam" that follows a dropped object - specifically, trying to drop a "seismic sensor" into a volcano…yes, I know the molten lava will melt the thing, just bear with me for now.
Right now I'm using the Flour Bomb simobject to work this out (eventually I'll build a seismic probe looking kind of thing in gMax, make a model, etc. I've done that before with sling loads)
This seems to be a "chicken or the egg" issue. The SDK states:
AttachedWorldObjects This enables the view controller to be attached to a moving object.
and
UseTargetPosition Set to True or False. True indicates that the camera will try to keep the AttachedWorldObject, if one is set, in view.
OK so far, but how does one attach attach a world object if the world object doesn't come into being until you hit Shift D? Is just the simobject name enough? (In this case Flour_Bomb?)
EDIT 2:
OK - I just decided to actually FLY the flour bomb mission and I saw that the PIP is focused on the Flour Bomb, not the platform. How is that? I have no idea.
Code:
<SimMission.PictureInPictureViewController InstanceId="{1F84965E-4FCE-432F-AE80-1B5C9544B95B}">
<Descr>PictureInPictureCamera</Descr>
<CameraOffsetY>6.000</CameraOffsetY>
<AttachedWorldPosition>
<WorldPosition>N18∞ 1' 29.91",W63∞ 6' 16.84",+000000.00</WorldPosition>
<AltitudeIsAGL>True</AltitudeIsAGL>
</AttachedWorldPosition>
<Condition>
<And>
<Equal>
<LHS>
<Property>
<Name>Simvar.Title</Name>
<PropertySource>Trigger</PropertySource>
</Property>
</LHS>
<RHS>
<Constant>
<Text>Flour_bomb</Text>
</Constant>
</RHS>
</Equal>
</And>
</Condition>
</SimMission.PictureInPictureViewController>
It clearly call for an AttachedWorldPosition??!!
I feel like I'm missing something basic…thoughts?
Last edited: