Hi all, not sure if this is the right forum to post in on this subject, but thought it was the safest since its misc.
Anyway, the problem I am having relates to the camera and visibility through units.
I am spawning a Large destructible rock in one corner of my map which the computer will be destroying on a timer.
But whenever the camera pans over the area or comes close to the rock the rock phases visibility and you can see through the rock to the surface behind that I want to be hidden until the rock is destroyed.
The rock is a custom one with destructible - 4x4 copied stats with the actor for rock (tower) for it. All the other rocks just weren't large enough for this purpose.
I have tried modifying the occlusion to hide and show since it was on auto for the actor in the data editor. But that hasn't helped any.
Any help anyone has would be greatly appreciated.
There is an option specifically for doodads (select the doodads in the Terrain editor and hit Enter) that allows you to check wheter or not in become transparent when there are units behind it. This only works with doodads that have unit behind it.
@progammer: GoThank you so much, I'll give that a try and post back when I get it working.
One question though, will this still be modifiable like this if I have this rock being spawned through a trigger, at the moment it is being placed in at the beginning of the game through unit - create unit and after a timer once it has died.
The idea is that this rock is stopping lava flowing into the map so once it dies the lava flows in, then after some time the rock is reformed there and the lava receeds.
I don't actually see the option progammer is referring to so I'll just throw my fix in here.
Under the Models tab in the data editor there is a field called "Occlusion" with 3 options: Show, Hide and None. When a model with the "Show" option appears behind a model that has the "Hide" option, the "Hide" model will....well, hide itself. I'm assuming that the lava-fall in your map has a "Show" option and your rock is set to "Hide".
And yes, this will work for anything that uses that model, including objects created via trigger.
Thank you very much for that it worked, I feel like a idiot now, got to love those problems that you spend a hour or so looking at and then when you see the fix you just facepalm.
I played with the occlusion before and tried the different settings, but didn't modify the unit that was attacking the rock, so it showed that unit and hid the rock. =(
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi all, not sure if this is the right forum to post in on this subject, but thought it was the safest since its misc.
Anyway, the problem I am having relates to the camera and visibility through units. I am spawning a Large destructible rock in one corner of my map which the computer will be destroying on a timer. But whenever the camera pans over the area or comes close to the rock the rock phases visibility and you can see through the rock to the surface behind that I want to be hidden until the rock is destroyed. The rock is a custom one with destructible - 4x4 copied stats with the actor for rock (tower) for it. All the other rocks just weren't large enough for this purpose. I have tried modifying the occlusion to hide and show since it was on auto for the actor in the data editor. But that hasn't helped any. Any help anyone has would be greatly appreciated.
@fosere: Go
There is an option specifically for doodads (select the doodads in the Terrain editor and hit Enter) that allows you to check wheter or not in become transparent when there are units behind it. This only works with doodads that have unit behind it.
@progammer: GoThank you so much, I'll give that a try and post back when I get it working.
One question though, will this still be modifiable like this if I have this rock being spawned through a trigger, at the moment it is being placed in at the beginning of the game through unit - create unit and after a timer once it has died.
The idea is that this rock is stopping lava flowing into the map so once it dies the lava flows in, then after some time the rock is reformed there and the lava receeds.
I don't actually see the option progammer is referring to so I'll just throw my fix in here.
Under the Models tab in the data editor there is a field called "Occlusion" with 3 options: Show, Hide and None. When a model with the "Show" option appears behind a model that has the "Hide" option, the "Hide" model will....well, hide itself. I'm assuming that the lava-fall in your map has a "Show" option and your rock is set to "Hide".
And yes, this will work for anything that uses that model, including objects created via trigger.
@war2150: Go
Thank you very much for that it worked, I feel like a idiot now, got to love those problems that you spend a hour or so looking at and then when you see the fix you just facepalm.
I played with the occlusion before and tried the different settings, but didn't modify the unit that was attacking the rock, so it showed that unit and hid the rock. =(