http://bugs.winehq.org/show_bug.cgi?id=10435
Summary: Portal 1.0: Portals don't always appear correctly (clipping plane / frustum not being respected?) Product: Wine Version: 0.9.49. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: wine-directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: chrislord.net@gmail.com
Often in Portal, instead of seeing through a pair of portals, you end up seeing what's behind the destination portal - but this depends on the viewing angle and distance.
It would appear that the clipping plane/frustum (whatever) when the portal is rendered is modified with respect to the player's position in Portal; or perhaps it *isn't* modified and is instead rendered with the same clipping frustum as the main viewpoint.
http://bugs.winehq.org/show_bug.cgi?id=10435
Luke Bratch l_bratch@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |l_bratch@yahoo.co.uk
--- Comment #1 from Luke Bratch l_bratch@yahoo.co.uk 2007-11-12 18:27:17 --- Confirming that I see this too, although I was never sure if this was a Wine thing or a Portal thing (having never played that game in Windows).
http://bugs.winehq.org/show_bug.cgi?id=10435
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2007-11-12 20:13:57 --- Same here too. Might be game's bug. Need to test this on windows.
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #3 from Chris Lord chrislord.net@gmail.com 2007-11-13 03:25:31 --- This is not the game's bug, the portals work correctly in Windows (tested on a friend's machine with very similar hardware)
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2007-12-08 16:23:05 --- Might have something to do with these messages: warn:d3d:IWineD3DDeviceImpl_SetRenderTarget (0x15f088) : Unsupported target 1 set, returning WINED3DERR_INVALIDCALL(only 1 supported) warn:d3d:IWineD3DDeviceImpl_SetRenderTarget (0x15f088) : Unsupported target 2 set, returning WINED3DERR_INVALIDCALL(only 1 supported) warn:d3d:IWineD3DDeviceImpl_SetRenderTarget (0x15f088) : Unsupported target 3 set, returning WINED3DERR_INVALIDCALL(only 1 supported) warn:d3d_shader:IWineD3DVertexShaderImpl_CompileShader Swizzled attribute validation required an expensive comparison err:d3d_surface:fb_copy_to_texture_direct Texture filtering not supported in direct blit
If it draws the portal onto a texture then blits it.
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #5 from Chris Lord chrislord.net@gmail.com 2007-12-08 17:00:09 --- I don't think it has to do with those messages, that's probably a different bug/missing feature - the problem here seems to be that the clipping frustrum is incorrect when rendering the portal contents - the z clipping happens behind the point it should... I'd look myself if I had any knowledge of Direct3D or the Wine code-base at all... And more time... :)
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #6 from Chris Lord chrislord.net@gmail.com 2007-12-08 18:06:17 --- Created an attachment (id=9563) --> (http://bugs.winehq.org/attachment.cgi?id=9563) Screenshot of a portal rendering incorrectly
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #7 from Chris Lord chrislord.net@gmail.com 2007-12-08 18:07:12 --- Created an attachment (id=9564) --> (http://bugs.winehq.org/attachment.cgi?id=9564) Same portal, stepped slightly to the right
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #8 from Chris Lord chrislord.net@gmail.com 2007-12-08 18:07:41 --- Created an attachment (id=9565) --> (http://bugs.winehq.org/attachment.cgi?id=9565) Same portal, close up
http://bugs.winehq.org/show_bug.cgi?id=10435
luke16 luke16@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |luke16@gmail.com
--- Comment #9 from luke16 luke16@gmail.com 2007-12-13 22:51:21 --- I see this as well, especially when you put the portals on the something that can move, such as the parts of the wall that move during the momentum trials near the beginning of the game.
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #10 from Austin English austinenglish@gmail.com 2008-06-16 16:23:54 --- Is this still an issue in current (1.0-rc5 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #11 from Luke Bratch l_bratch@yahoo.co.uk 2008-06-16 18:36:06 --- Created an attachment (id=14120) --> (http://bugs.winehq.org/attachment.cgi?id=14120) Troublesome portal in wine-1.0-rc5
Yes the problem remains in the latest Wine, see attached screenshot showing a broken portal in wine-1.0-rc5.
http://bugs.winehq.org/show_bug.cgi?id=10435
Max Mustermann maxmusterm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maxmusterm@gmail.com
--- Comment #12 from Max Mustermann maxmusterm@gmail.com 2008-09-28 22:13:20 --- Here too. Not only that but from time to time the background or terrain where portals can't be added are showed purple. Maybe the purple bug is a copy of http://bugs.winehq.org/show_bug.cgi?id=11948 but just wanted to confirm the portal-angle-view bug.
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #13 from Austin English austinenglish@gmail.com 2009-03-30 12:39:29 --- Is this still an issue in current (1.1.18 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #14 from Justin C charetjc@gmail.com 2009-04-05 23:28:45 --- (In reply to comment #13)
Is this still an issue in current (1.1.18 or newer) wine?
This issue is confirmed with wine-1.1.18.
Screenshots (using personal server since links duplicate previously attached screenshots):
http://boxofrox.net/imgdump/portal-bug-10435/portal_bug_ss1.jpg http://boxofrox.net/imgdump/portal-bug-10435/portal_bug_ss2.jpg http://boxofrox.net/imgdump/portal-bug-10435/portal_bug_ss3.jpg
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #15 from Austin English austinenglish@gmail.com 2009-10-12 14:55:32 --- Is this still an issue in current (1.1.31 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=10435
--- Comment #16 from Luke Bratch l_bratch@yahoo.co.uk 2009-10-12 15:14:44 --- Just did a quick test on a couple of levels with portals in various directions and this seems to be fixed. This was with default Wine and game settings (if I recall correctly, different settings caused noticable breaking/fixing of various glitches in the past).
http://bugs.winehq.org/show_bug.cgi?id=10435
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #17 from Austin English austinenglish@gmail.com 2009-10-12 16:08:33 --- (In reply to comment #16)
Just did a quick test on a couple of levels with portals in various directions and this seems to be fixed. This was with default Wine and game settings (if I recall correctly, different settings caused noticable breaking/fixing of various glitches in the past).
Fixed then.
http://bugs.winehq.org/show_bug.cgi?id=10435
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #18 from Alexandre Julliard julliard@winehq.org 2009-10-23 13:18:17 --- Closing bugs fixed in 1.1.32.