HINT and AreaPortal questions
Jan 5, 2010 13:55:49 GMT
Post by Zeph on Jan 5, 2010 13:55:49 GMT
Two questions or minor importance but have been bugging me.
Firstly, the HINT texture. I agree that diagonal HINTs on corners are great, but in your [3K's] example they are built like situation A below. This works great, moving in one direction, but moving the other way would it not work?
Therefore i ask, which situation is best below.
<-- TEST RESULT: Use C!
Situation A looks like it only works moving in one direction.
Situation B uses two HINT textures, which is basically a double up of Situation A to work in both directions.
Situation C is a single HINT covering both sides.
Are all situations build the leaves in the same way? Isn't situation C neater and the best? Or will situation C not work since if you can see the HINT texture it renders the touching Leafs, and you can see it from all angles unlike in situation A, and therefore separate HINTs are needed like B.
============================================
The second question is about size of area portals.
Consider a simple wall with a doorway, from the top view, the vis leafs will be crated as below.
In most tutorials, a thin area portal is added in the doorway, but doesn't this then create a further two Visleafs as below?
Therefore isn't the best situation to make the area portal the size of the doorway, as below?
<-- TEST RESULT: Use this!
However, when the walls of a doorway become thick, the doorway becomes more like a corridor. Obviously at this point it will be better have no area portal and the visleafs auto generated as in the first picture. So what is the limit for the thickness of an area portal? Is it one or two units as most tutorials suggest, which makes extra and unnecessary visleafs, or the wall thickness up to a certain value (eg 16 units)?
Firstly, the HINT texture. I agree that diagonal HINTs on corners are great, but in your [3K's] example they are built like situation A below. This works great, moving in one direction, but moving the other way would it not work?
Therefore i ask, which situation is best below.
<-- TEST RESULT: Use C!
Situation A looks like it only works moving in one direction.
Situation B uses two HINT textures, which is basically a double up of Situation A to work in both directions.
Situation C is a single HINT covering both sides.
Are all situations build the leaves in the same way? Isn't situation C neater and the best? Or will situation C not work since if you can see the HINT texture it renders the touching Leafs, and you can see it from all angles unlike in situation A, and therefore separate HINTs are needed like B.
============================================
The second question is about size of area portals.
Consider a simple wall with a doorway, from the top view, the vis leafs will be crated as below.
In most tutorials, a thin area portal is added in the doorway, but doesn't this then create a further two Visleafs as below?
Therefore isn't the best situation to make the area portal the size of the doorway, as below?
<-- TEST RESULT: Use this!
However, when the walls of a doorway become thick, the doorway becomes more like a corridor. Obviously at this point it will be better have no area portal and the visleafs auto generated as in the first picture. So what is the limit for the thickness of an area portal? Is it one or two units as most tutorials suggest, which makes extra and unnecessary visleafs, or the wall thickness up to a certain value (eg 16 units)?