Curse of the Pharaoh - An experiment in portals

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

No more free time i'm afraid! Here's the source: http://www.megaupload.com/?d=BXU5U10N

Anyone who wishes to use this may do so however they wish and don't need to give me any credit as it's not anything complex!

The source also includes some Effects work by Fabre Cédric (Copland/simson - irrlicht usernames??) for night vision, dream/motion blur and glow/bloom effects which i was playing around with in this program. These are subject to Fabre's permissions of use. The map and pretty much all the textures are from Quake 3 and are user-made and of course are also subject to the owner's permissions of use.

I've not touched this source for probably a year and for some reason the portal is rendering upside down in this version. I think this is something to do with the renderer used. I had had problems choosing between the use of DX or OGL as they both had different effects on how the portal looked. You can play about with this and choose whichever's best or fix it up so it works the same with both renderers.

The portal is actually a scene node class which you can easily just copy into your own projects without having to hack it out of my code and use it like this:

PortalSceneNode portal = PortalSceneNode(device, soundDevice, vector3df(100,150,550), camPosition, camTarget);
metaSelector->addTriangleSelector(portal.getTriangleSelector());

The portal is rendered as that cube you see in the pictures but can easily be changed to render as just a quad. It's a one-way portal at the moment but obviously wouldn't be hard to make it a two-way portal (i.e. at the destination point you render another portal going in the opposite direction). The portal relies on Audiere for the sound effects though of course you can change this to have no sound engine or to use a different one as fits your needs!

The keys are as follows:

Arrows: Movement
V: Night Vision effect
D: Dream effect
G: Glow effect
B: Bloom effect
N: No effect
P: Open/close the portal (when stood close enough to it)
C: Repositions the camera is some random fashion (can't remember what this was all about! Useful if you fall in the water and can't get out though!)

That's probably about it, need any help then feel free to get in touch!
Image Image Image
Masterhawk
Posts: 299
Joined: Mon Nov 27, 2006 6:52 pm
Location: GERMANY
Contact:

Post by Masterhawk »

Very thankful... :!:
Image
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

I'm having some problems with megaupload, can you upload it to mediafire/rapidshare - any else, please ?

Thanks.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Image Image Image
agi_shi
Posts: 122
Joined: Mon Feb 26, 2007 12:46 am

Post by agi_shi »

Looks pretty nice :D!

However, a little quirk... in the first video I saw, why does the portal rotate when the camera rotates? It also seems to look quite a bit incorrect... Is that an rtt type of portal or a stencil buffer portal? I've implemented portals before, if you want some tips (or how to correctly transform the view), just tell me.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yeah the camera probably does move around to match the viewing camera's target. It's a RTT portal and as you can probably tell it's very old now, i was working on it about a year ago. If i worked on it now i could probably get it working better but i don't really have the time for it now!
Image Image Image
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

NiCE! Its very nice.

Btw, did you JP created all the art work in this demo?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well, i forget exactly what artwork there is in there, but pretty much no..

The map is a Quake 3 map, an unofficial one i found on the net. And lots of the textures are obviously from Quake 3 or from the map itself. The fire i can't remember where that came from, possibly Quake 2 or 3.

The portal textures were made by me from Quake 3 textures i think.

So lot's of Quake stuff in there!
Image Image Image
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I've just uploaded some new screenies and the full, latest source which now actually has a working portal camera.. When i uploaded the last one i think the camera was working, but not in the actual compiled version or something...

Anyway, there you go!

Oh and about the artwork, the one thing that i actually did make was the banners hanging down with hieroglyphs on them, that was some of the art i'd made for my concept album.
Image Image Image
Post Reply