B3 Bug - Issue with rending while in a portal
by Joshua Halls (Xerves) · in Torque 3D Professional · 07/13/2009 (10:03 pm) · 7 replies
A bit of background and then a video as this is kind of hard to explain.
I was testing a dungeon with 2 zones and a portal on the edges of each. If you move the camera inside of the portal it has some strange rendering in the other zone. You will notice it is rendering a few shapes inside of the zone, but not the whole zone. Moving the camera into the zone or out of the zone and it renders just fine, but while inside of that portal there is an issue.
www.youtube.com/watch?v=i5fFSzbt2Lc
I was testing a dungeon with 2 zones and a portal on the edges of each. If you move the camera inside of the portal it has some strange rendering in the other zone. You will notice it is rendering a few shapes inside of the zone, but not the whole zone. Moving the camera into the zone or out of the zone and it renders just fine, but while inside of that portal there is an issue.
www.youtube.com/watch?v=i5fFSzbt2Lc
About the author
Part of the team that works on The Repopulation, a SciFi based MMO using a heavily modified version of the Torque MMO Kit - T3D. I also take care of the T3D version of the Torque MMO Kit.
#2
@Joshua - There was a bug fix for portals that was posted to another thread... do you apply it?
07/14/2009 (12:05 am)
Actually we intended to allow portals to bridge between two zones... so what Joshua has there should work.@Joshua - There was a bug fix for portals that was posted to another thread... do you apply it?
#3
07/14/2009 (9:47 am)
@Joshua, please try the fix that Tom linked to and let us know if it worked for you, as to me it appears to be a very similar case. Thanks :)
#4
This seems to be an issue with portals from one zone or portals linking two zones.
07/14/2009 (12:35 pm)
We patched that in a few days ago so that fix was already in when I did the testing. The was another thread that I cannot find for the life of me with the 3rd person camera and the player disappearing and I applied that one as well. I am having the same issue there too where in 3rd person the player will disappear as soon as the camera intersects with the center of the portal's location (where the blue or green line would be).This seems to be an issue with portals from one zone or portals linking two zones.
#5
07/14/2009 (2:40 pm)
Alright, thanks Joshua, I'll take a look at this issue when I get time (helps to know that the other fix doesn't apply). I'm still looking at the 3rd person issue (in my own tests, my change fixed it, but I haven't had a chance to look at the mission Steve Acaster sent me yet).
#6
This helps with the 3rd person camera (fixes the issue he seemed to be having that I was seeing also), but there are a few other issues.
1. If the camera is dead center in the portal and pearing out toward another portal, the 2nd portal will not work properly and will not render what is inside of it. This is only when the camera is dead center in the portal, as soon as it moves or rotates out of it things work as they should. The player's camera is dead center in Portal 1, the player is outside of both portals and zones. This will work with the free floating camera in the world editor, just slow it down, put it in the center of 1 portal and look toward the 2nd.
2. If you are using a portal to connect two zones you still have the same issue with the player disappearing become the camera and the player are in different zones. I believe it is intended for this to work in this manner, if not then not a big deal.
07/16/2009 (10:54 am)
Ross, I applied this fix from this thread http://www.garagegames.com/community/forums/viewthread/96403 that you just posted a few minutes ago.This helps with the 3rd person camera (fixes the issue he seemed to be having that I was seeing also), but there are a few other issues.
1. If the camera is dead center in the portal and pearing out toward another portal, the 2nd portal will not work properly and will not render what is inside of it. This is only when the camera is dead center in the portal, as soon as it moves or rotates out of it things work as they should. The player's camera is dead center in Portal 1, the player is outside of both portals and zones. This will work with the free floating camera in the world editor, just slow it down, put it in the center of 1 portal and look toward the 2nd.
2. If you are using a portal to connect two zones you still have the same issue with the player disappearing become the camera and the player are in different zones. I believe it is intended for this to work in this manner, if not then not a big deal.
#7
Let me know if that fixes your issue. If not, go ahead and send me your mission file if you can at ross AT sickheadgames DOT com. Thanks!
07/16/2009 (10:55 am)
Hey Joshua, I just posted a fix for Steve's issue in this thread: www.garagegames.com/community/forums/viewthread/96403Let me know if that fixes your issue. If not, go ahead and send me your mission file if you can at ross AT sickheadgames DOT com. Thanks!
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
Wasn't possible to get that from the video although it looks like you had holes in that you attempted to bridge with portals which wouldn't be a good idea (or generally just the zones that are connected to your current zone through a portal). At least thats my understand of how the system is meant to work as that is how zone - portal systems commonly work.
seeing multiple portals is only possible / usefull if not only zones and portals are present but if vis cells are calculated and the pvs data then is stored.
also, keep in mind that if you have a long passage thats more or less straight, then that needs to be 1 zone. if you split it up into multiple zones you will basically only see the first zone I think, no zones that are further past the first zone.
As for the why it works when you leave the zone: thats to be expected. the moment the cam leaves the zones, the whole portalling is disabled / void