Worldscript objects appearing under ground

Version: 1.XX.XX.X

Frequency: Consistently

Severity: High

Bug description: It may be Terrain LOD related. But my worldscript simobjects sometime appear 20 above ground level or 2-6 feet below ground level. I’ve tried using "use low res terrain setting, but they still fluctuate. Is there a way to set the object as a height above mean sea level? So they don’t get messed up by the terrain?

In the worldscript itself, you can make sure the object is AMSL by setting IsOnGround and AltitudeIsAGL to false.

1 Like

I’ll have a look. Highly appreciated.

image
I get that error when i try to add “altitude is AGl” to the worlscripts.

I have this set but they still appear under ground sometimes <WorldBase.IsOnGround>false</WorldBase.IsOnGround>

@FlyingRaccoon Do you have any suggestions for this? I have some proximity worldscript animated people. And i need their elevation to be consistently where i place them in terms of height above sea level. But sometime they appear at different altitudes, whether i set <WorldBase.IsOnGround>false</WorldBase.IsOnGround> to true or false.

Hello @SLH

Our documentation on the topic is very fragmented and I don’t have more information than what’s available in the public documentation.
However I’d say IsOnGround is not a sub element of WorldBase.

You can see here one of its use is a a child of SimContain.Container:
Airport Services Examples

If you share a version of your script, I can have a look and run some tests.

Regards,
Sylvain

CasualFemale2Ducking.xml (4.5 KB)

1 Like

I could not replicate the issue so far.
Are you spawning this object in a specific location where this would happen consistently?
Have you tried spawning a different SimObject to see if this happens regardless of what you spawn?

Regards,
Sylvain

On a custom terraformed hill in saint barths before runway 10. So it’s on top rectangles and polygons. Next time it happens I’ll send a photo.

Just did a flight. I think it mostly happens if i start a flight somewhere else. Or if i start at saint barths but flight a good enough distance away and then back. Which make me feel it has something to do with the terrain LODs.

There’s suppose to be more in this image to the left. But i believe they’re underground.

Just loaded the project and they all snap into the correct positions.

Then I think this is likely not coming from the worldscript and has to do with how SimObject ground altitude is sampled when terraformers are used.
Not sure if this comes from the SimObject or the terraformers layout, I’m still unable to replicate this behavior.

Can you give us access to your project or a stripped version of it demonstrating the issue so we can debug in real conditions?

So this never happens in Scenery Editor context? Only when the package is mounted from Community?

Regards,
Sylvain

I sent it to private content and yes only when actually using the scenery. In the editor they’re always fine.

1 Like