Portal 2D (tech demo)
- The Doctor
- Prole
- Posts: 3
- Joined: Thu Sep 08, 2011 6:00 pm
Re: Portal 2D (tech demo)
You're seriously thinking with portals! This has got potential!
Re: Portal 2D (tech demo)
I'm surprised at how simple it was to implement, but I must thank vrld for implementing stencils, I wouldn't have a clue when it comes to talking directly to openGL so I can't imagine how valve did all this in 3d. It should also be possible now to do the portal-within-a-portal effect, brb going to find my thinking cap.The Doctor wrote:You're seriously thinking with portals! This has got potential!
Edit: Ok I take back it being simple to implement, recursion is making me go crosseyed.
I can get recursive portals to work if the angle of both are 0, as soon as they're any other angle they refuse to line up.
Re: Portal 2D (tech demo)
valve created a camera object, and projected it onto the "portal" and the camera's angles were set to that of the player's. In simplicity
Re: Portal 2D (tech demo)
wouldn't it be better if they changed the 3D engine so, when a ray hitted a portal it will change position and direction?Lexsym wrote:valve created a camera object, and projected it onto the "portal" and the camera's angles were set to that of the player's. In simplicity
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Portal 2D (tech demo)
No, because Portal (like all games) isn't rendered via raytracing...
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Re: Portal 2D (tech demo)
Surely raytracing must happen at some point low level, in the graphics card?Taehl wrote:No, because Portal (like all games) isn't rendered via raytracing...
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Portal 2D (tech demo)
Nope. In fact, raytracing is never used in games, because it is too slow, it provides amazing detail, but can't be done realtime.
Re: Portal 2D (tech demo)
And there you're wrong, search it upbartbes wrote:Nope. In fact, raytracing is never used in games, because it is too slow, it provides amazing detail, but can't be done realtime.
Edit : As you can see here ; http://www.youtube.com/watch?v=blfxI1cVOzU (IN 2007!!)
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Portal 2D (tech demo)
That's a demonstration, not an actual game. It can be done realtime, but realistically right now you can't do raytracing plus everything else that a game needs to do at the same time (unless you want to make a game that only $2000+ computers can run).GijsB wrote:And there you're wrong, search it upbartbes wrote:Nope. In fact, raytracing is never used in games, because it is too slow, it provides amazing detail, but can't be done realtime.
Edit : As you can see here ; http://www.youtube.com/watch?v=blfxI1cVOzU (IN 2007!!)
Who is online
Users browsing this forum: No registered users and 4 guests