havenphillip Posted November 19, 2020 Share Posted November 19, 2020 I'm working on this geometry shader I just want to instance a box but the instance disappears when the original goes off screen. Why does this happen? How can I fix it? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted November 19, 2020 Share Posted November 19, 2020 I think this is because the bounding box of the original entity does not include the instance you made in the geometry shader. I recall having the same issue a while back. I can't remember if the bounding boxes in LE4 can be manually adjusted or not... 1 Quote Link to comment Share on other sites More sharing options...
havenphillip Posted November 19, 2020 Author Share Posted November 19, 2020 So you were never able to fix this? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted November 19, 2020 Share Posted November 19, 2020 I think what I ended up doing was adding another surface to my model in which I added 2 vertices not linked to a triangle. I placed one vertex at the location that I wanted for the AABB's min position and the other vertex at the location that I wanted for the AABB's max position. Then I called Model::UpdateAABB(). I have a feeling this worked but can't be sure. Another option might be to disable culling; SetOcclusionCullingMode(false, true); I'm not even sure if that's the right command. It's been a while since I used LE4. 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted November 19, 2020 Share Posted November 19, 2020 10 hours ago, Lethal Raptor Games said: I think what I ended up doing was adding another surface to my model in which I added 2 vertices not linked to a triangle. I placed one vertex at the location that I wanted for the AABB's min position and the other vertex at the location that I wanted for the AABB's max position. Then I called Model::UpdateAABB(). I have a feeling this worked but can't be sure. 2 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
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.