Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Dark Portals.

Author
Message
Lover of games
19
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 24th Jan 2008 16:45
I need some help making a plug in for DBPro that will handle portals like in recent games, maybe someone could help me with it? we could work on it together. Rather then using DBPro to make portals, i'd like to make a plug in for it, but i'm not that good of a programmer so i was wondering if someone could work together with me to make this plug in. it would be a good learning expirience for me and the people that help me with it will be able to make something that the community could use. Also, i think i should of posted this in Porgram announcements. let me know and i'll post there.

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 24th Jan 2008 16:57
Usually i dont like posts like these.. But this is something intresting i would want to see myself too.. Tho i cant lend my help :/

I am not familar with these kind of things like doing a dll for dbpro or handling dbpro engine withing plugin.. Only familar with DS Programming


Click For Details!
Lover of games
19
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 24th Jan 2008 17:05
Quote: "Usually i dont like posts like these.. But this is something intresting i would want to see myself too.. Tho i cant lend my help :/

I am not familar with these kind of things like doing a dll for dbpro or handling dbpro engine withing plugin.. Only familar with DS Programming "


I hope other people answer this....i'm starting it now but i'm so lost it's not even funny. I just think it's a good idea to make a plug in for DBPro that handles portals. hell, we could sell it also. if it's good enought :-p

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Jan 2008 17:32
It's been done before in many ways.

It is easily done with a shader, and can be done without as well.

-= Out here in the fields, I fight for my meals =-
Dr Schnitzengruber
17
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 24th Jan 2008 17:47 Edited at: 24th Jan 2008 17:49
Quote: "I hope other people answer this....i'm starting it now but i'm so lost it's not even funny. I just think it's a good idea to make a plug in for DBPro that handles portals. hell, we could sell it also. if it's good enought :-p"


It's also a good idea to make a plug-in that automatically makes a mmorpg based on models and images and it's a good idea to make a plug-in that creates a "Artificial Sentience" and allows you to put it in your games. They both could make a lot of money. Why hasn't anybody made one yet?

Quote: "I hope other people answer this....i'm starting it now but i'm so lost it's not even funny"


Have you ever made a plug-in before? If not, start out with a hello world plug-in and work from that.

Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 24th Jan 2008 22:04 Edited at: 24th Jan 2008 22:05
Somebody here posted a DBP code snippet of a portal but I don't remember how good it was.

Theoretically the same way you do split-screen in a game can be applied to the portal. Render a 2nd viewport on the source portal from the point of view of the target portal.

Kind of hard for me to explain, but it's important not to fake it with a static texture. You need to be able to strafe left and right in front of the portal and see the angle change inside the portal, which is why the easiest way is with a viewport.

Hope that's not too confusing.


Dr Manette
18
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 24th Jan 2008 22:10
I managed to do portals with multiple cameras textured to planes and then rotating the planes according to the camera. It wasn't the best method, but it worked.

And there was someone who posted a portal snippet... it worked very well. So I'm thinking a dll is not the way to go with this.

Fool around in dbpro and you'll get faster results.

monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 24th Jan 2008 22:10
Are you talking about portal occlusion or portals like Half Life 2 portal game???

Who is your Daddy, and what does he do?
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 24th Jan 2008 23:45
It'd be good if we could set up the mirror command to point to another camera. Make the whole thing a lot easier. If it's possible.

Rapid texture streaming, Pixel shaders gleamin',
Cooling fans a screaming, And power bills a reaming.
darkSMASH: http://forum.thegamecreators.com/?m=forum_view&t=121881&b=8
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 25th Jan 2008 00:36
I was the person who made the portal demo that didn't use shaders.

It worked because of a kind of fault (or quirk) in DBPro's rendering, I don't know if it would still work.

Search the old threads...

-= Out here in the fields, I fight for my meals =-
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 25th Jan 2008 11:32
I think that a refraction shader is a good place to start - that relies on an extra camera to render a scene, then uses that as a texture that is automatically UV mapped onto the plain. Say you grabbed the refraction shader from the ultimate shader pack (is that what it's called?, could someone please post a link?). With that, it uses a camera to render behind a little window, which has a normal map, and anything through the window gets refracted - but the important thing is that you can look through this window at any angle and see what's behind it - now imagine sticking the refraction camera inside a room, it would be as if the window was looking into the room.

There is a thread in DBPro Discussion about this, even has Chris's demo posted.


less is more, but if less is more how you keeping score?
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 25th Jan 2008 12:51
Yeah, well you would need to cameras one for each portal. Looking at the HL2: Portals games though when an entity walks through a portal they actually go through the wall, I was playing with it a little while ago. I created two portals (orange and blue) next to each other, and I walked through one slowly and my character was half-way into one and half way out of the other. Taking this into mind using a plain with either a shader or set camera to image this would block the portion of the character which is through the portal.

One way in which it could be done is to create zones, and instance the zones and position them according to the position of the portal. For instance, if you had a room and created two portals one on either side, you could then create two instances of the room and position/rotate them correctly and situate them on the other side of the portal. Using this method you would need to instance everything that is in the room too.

Obviously this method would require reasonable sized rooms (enclosed spaces) which wouldn't kill the FPS if it was instanced three times.

Just a thought.

Who is your Daddy, and what does he do?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 25th Jan 2008 13:01
In that case (with 2 portals) I think you'd be best with duplicate objects, with the second object positioned and orientated to suit.

I might be simplifying this though because my brain doesn't want to think about this stuff, I don't think it would be easy at all to recreate Portal in DBPro, but some sort of portal system is clearly possible.

It boggles the mind sometimes, the stuff you can do in Portal, I think that's what makes it such an interesting experience.


less is more, but if less is more how you keeping score?
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 25th Jan 2008 13:15
Yeah its absolutely amazing, I sat there for hours just creating endless loops with one portal in the wall and one directly below on the floor and just watched the objects I threw in just loop around.

I think your right though, it would be a mighty task.

Who is your Daddy, and what does he do?
Lover of games
19
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 26th Jan 2008 06:17
Quote: "Are you talking about portal occlusion or portals like Half Life 2 portal game???"


the one in the portal game. I tried to do it with DBPro and still am. but i need help with some things in the code.

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 26th Jan 2008 13:02
Oh.. I tought you were talking about plugin.. Portals like that can be done in dbpro.. Does not need any plugins cuz it would be waste of time.


Click For Details!
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th Jan 2008 13:58
iirc Ruccus did a nice portal demo in dbpro. it was quite well done.

My DBP plugins page is now hosted [href]here[/href]

Login to post a reply

Server time is: 2024-11-19 19:28:57
Your offset time is: 2024-11-19 19:28:57