VectorBits.org Posted May 15, 2019 Share Posted May 15, 2019 hi, does anyone know how to implement detail level inside a PIO? Cannot find any function related to detail level in VW2019. thanks Quote Link to comment
Pat Stanford Posted May 15, 2019 Share Posted May 15, 2019 It appears to be ObjectVariableBoolean Visible at XXX level of detail 750=High 751=Medium 752=Low So SetObjectVariableBoolean(Handle, 750, True) would make an object visible at high level of detail. If you also set 751 and 752 then it would be visible at all three levels of detail. GetObjecVariableBoolean(Handle,750) should return the if the object referenced by Handle displays at High detail level. Quote Link to comment
Julian Carr Posted May 15, 2019 Share Posted May 15, 2019 A couple of things to note: 1. You need to set the 3 levels of detail for each object as there is no assumption that if an object is visible at one level, it will automatically be visible at another. 2. If the PIO contains groups, you need to set the detail level for each object within the group as setting it for the group itself will have no effect. Quote Link to comment
VectorBits.org Posted May 16, 2019 Author Share Posted May 16, 2019 thank you both for the quick answer. Maybe my question was not very clear (English is not my mother language). What I was trying to ask, in fact, is how to implement inside the code of a PIO, to redraw itself according to the layer or viewport detail level. I program my custom door and wardrobe objects and I would like to get them displayed according to the detail level of the viewport or scale of te parent layer. Quote Link to comment
Pat Stanford Posted May 16, 2019 Share Posted May 16, 2019 I think you have to set the three object variables for each item that you wish to be controlled by the detail level. So for an object that will show in Low, Medium, and High Detail, you would need to set all three (750,751,752) all to true. For an object to display only at Low, you would set 752 to True and 750, 751 to False. For an object to display only at High you would set 750 to True and 751, 572 to False. Try this on a simple object and see if it does what you expect. Quote Link to comment
VectorBits.org Posted May 16, 2019 Author Share Posted May 16, 2019 Great! now I get it. I didn't realise I had to set the preference for all the objects I create in the PIO. Thanks!!! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.