Prey portals like

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

looks very cool!!!
bicunisa
Posts: 34
Joined: Thu Apr 27, 2006 10:34 pm
Contact:

Post by bicunisa »

Wow it looks very nice dude!

Keep up the good work!
OMG another MMORPG project! AztlanRPG
draghkar
Posts: 1
Joined: Tue Mar 06, 2007 3:12 pm

Post by draghkar »

this is a really awsome piece of code.
just one thing i noticed from your "demo" when you move back from the portal the camera on the other side moves back as well, should this not be stationary? (results in seeing whats behind the other side of the portal etc)
keep up the good work man.
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

izek
Posts: 2
Joined: Fri May 04, 2007 9:38 am

Post by izek »

This is my portal that uses no shaders:


Video:
http://www.sendspace.com/file/z6r213

The vertical reaction of my portal is not done yet, but that's not the problem.

The problem is that, when i get near the portal, it rotates at the same scale like if i were far away from it.

Another problem is that, if i see the portal from one of its sides, the view is distorced by the perspective, and the same happens when i get close to him, the 3D illusion is lost.



I need some help doing this math logic, since i'm only 17 years old and i dont have all the math bases needed :(
agi_shi
Posts: 122
Joined: Mon Feb 26, 2007 12:46 am

Post by agi_shi »

izek wrote:This is my portal that uses no shaders:


Video:
http://www.sendspace.com/file/z6r213

The vertical reaction of my portal is not done yet, but that's not the problem.

The problem is that, when i get near the portal, it rotates at the same scale like if i were far away from it.

Another problem is that, if i see the portal from one of its sides, the view is distorced by the perspective, and the same happens when i get close to him, the 3D illusion is lost.



I need some help doing this math logic, since i'm only 17 years old and i dont have all the math bases needed :(
I'm 14 (...ish) and I figured it out - age doesn't matter.

A = transformation matrix of portal A
B = transformation matrix of portal B
C = transformation matrix of camera
R = relative transformation

AR = C
R = A^(-1)C

C' = new transformation matrix of camera

C' = BR
C' = BA^(-1)C

Rotate portal B by 180 degrees before constructing it's transformation matrix. Now map out the polygon - either copy or texture, your choice.
Masterhawk
Posts: 299
Joined: Mon Nov 27, 2006 6:52 pm
Location: GERMANY
Contact:

Post by Masterhawk »

Great work...., but what I read is that these portals only support DX9 Mode.
Do these portals also depend on DX9 Hardware?

Is there any effort to port them to OpenGL?
Image
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

He did an OpenGL version too which you should be able to find in the project announcements forum by searching for portals.
Image Image Image
Masterhawk
Posts: 299
Joined: Mon Nov 27, 2006 6:52 pm
Location: GERMANY
Contact:

Post by Masterhawk »

Oh yeah, I've found it...thx JP
Image
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

I have a question regarding this. If there are 2 people at the different side of the portal and one trying to shoot another. Since the portal is just like a billboard, will the bullet hit the guy? How about if he move. :?:
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well you'd probably have to code in something extra so that the bullets get transported through the portal too, but that wouldn't be too hard as you'd just add the bullets into the bit where the players get transported around, then it would work as you'd expect.
Image Image Image
Post Reply