Jump to content

removeWorldModel bug (?)


Recommended Posts

I want to delete the "pier3_sfe", "pier1_sfe" model which are located in SF (Esplanade East).  You can see here

 

addEventHandler ("onResourceStart",resourceRoot, function() 
   removeWorldModel(9951, 10000,  -1535.4219, 1168.6641, 18.20313) -- pier3_sfe model
   removeWorldModel(9965, 10000,  -1535.4219, 1168.6641, 18.20313) -- pier3_sfe lod
   removeWorldModel(9949, 10000,  -1535.4219, 1054.5234, 18.20313) --  pier1_sfe model
   removeWorldModel(9964, 10000,  -1535.4219, 1054.5234, 18.20313) --  pier1_sfe lod
end) 

This is delete both of them, but then if I go "behind" the two buildings everything will be invisible/bug which is in front of the removed buildings, you can see the picture below.

How can I fix this?

spacer.png

Link to comment
  • Administrators

Hi, you will need to disable occlusions in this area to resolve this issue.

setOcclusionsEnabled( false )

An occlusion is an optimization approach used to remove objects that aren't seen behind big buildings and such. Removing occlusions globally may result in frame drops, so what you could do is create a colshape to define the area where you want to remove occlusions.

  • Thanks 1
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...