Portal 2D (tech demo)

Show off your games, demos and other (playable) creations.
User avatar
The Doctor
Prole
Posts: 3
Joined: Thu Sep 08, 2011 6:00 pm

Re: Portal 2D (tech demo)

Post by The Doctor »

You're seriously thinking with portals! :awesome: This has got potential!
User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: Portal 2D (tech demo)

Post by ljdp »

The Doctor wrote:You're seriously thinking with portals! :awesome: This has got potential!
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.

Edit: Ok I take back it being simple to implement, recursion is making me go crosseyed. :death:
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.
Lexsym
Prole
Posts: 15
Joined: Wed Sep 07, 2011 1:23 am

Re: Portal 2D (tech demo)

Post by Lexsym »

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 :P
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Portal 2D (tech demo)

Post by GijsB »

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 :P
wouldn't it be better if they changed the 3D engine so, when a ray hitted a portal it will change position and direction?
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Portal 2D (tech demo)

Post by Taehl »

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+.
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Portal 2D (tech demo)

Post by GijsB »

hmm.
User avatar
ljdp
Party member
Posts: 209
Joined: Sat Jan 03, 2009 1:04 pm
Contact:

Re: Portal 2D (tech demo)

Post by ljdp »

Taehl wrote:No, because Portal (like all games) isn't rendered via raytracing...
Surely raytracing must happen at some point low level, in the graphics card?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Portal 2D (tech demo)

Post by bartbes »

Nope. In fact, raytracing is never used in games, because it is too slow, it provides amazing detail, but can't be done realtime.
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Portal 2D (tech demo)

Post by GijsB »

bartbes 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.
And there you're wrong, search it up ;)

Edit : As you can see here ; http://www.youtube.com/watch?v=blfxI1cVOzU (IN 2007!!)
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Portal 2D (tech demo)

Post by slime »

GijsB wrote:
bartbes 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.
And there you're wrong, search it up ;)

Edit : As you can see here ; http://www.youtube.com/watch?v=blfxI1cVOzU (IN 2007!!)
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).
Post Reply

Who is online

Users browsing this forum: No registered users and 110 guests