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.

DarkBASIC Discussion / Stealth Effects like in MGS1

Author
Message
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 22nd Dec 2004 02:31
I wasnt sure where to post this so sorry if its in the wrong place How would I go about making a character invisible but having him/her distort the view behind him? Its hard to explain so take a look at the pic to see what I mean.

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)

Attachments

Login to view attachments
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 22nd Dec 2004 02:47
like a shadow? that would be simple just place a textured ghosted plain under the player object for simple geometery for anything harder you would need to tincker with the uv maps


Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 22nd Dec 2004 03:16
no he means like in perfect dark or in halo when you get cloaked

BenDstraw
20
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Arizona
Posted: 22nd Dec 2004 04:13
if you have 3ds max there is a special rendering raytrace that will give a reflective look. then change the tranparency so he'll have a cloaked look about him. Im not sure exactly what parameters to put but I told you what I know. If you dont have 3ds max then I'm sure they have a special rendering that does it.

If I helped, good. If I didnt, I tried.

¤§Ben§¤

B-L (Black Lab Studio) *Woof* ~ Other Member(s): BL Mason
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 22nd Dec 2004 04:34
Yeah just like that

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 22nd Dec 2004 04:35
If all of your enviroment is similar, reflection shading can look quite good. Alternatively, use alpha to apply semi transparency.

Realms Of Tutopia: Rise Of Evil
http://www.freewebs.com/elbsoftware/index.htm
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 22nd Dec 2004 06:14
Yeah, I would just use a sphere map on the character but ghost the object and make the original texture black so he is invisible but the sphere map is still there...get it?

Xander Moser - Bolt Software - Firewall
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 22nd Dec 2004 20:40 Edited at: 22nd Dec 2004 20:43
If you're using Darkbasic, the chances of actually creating an acceptable looking cloaking effect are going to be very, incredibly, laughably small. If you come up with anything at all, I'd be interested to see that code.


I'd say magical runes would be your best bet.

Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 23rd Dec 2004 03:57
@Bolt Ithink I know what you mean... Do you mean UV Map the chracter using sphere mapping?

@BadMonkey91 I might be getting DBPro soon so I fyou know a way of doing it on that, that would help too.

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 04:31
I've just made this effect. I'll post it in about half an hour.

It should work in DBCe but I can't be bothered to check.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd Dec 2004 04:33
What about a cube mapped object ghosted?

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 04:38
It shouldn't be ghosted.

Just wait five more minutes I'm almost done.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 04:54
Here we go.
I made a set of functions.

Put them in a source file called Stealth.dba, then include it.

You need to say SetupStealthEffect() at the top of your game.
Then you need to say SetStealthEffectOn( ObjNum ) to apply the effect to an object.
Then you need to call StealthEffect() every loop.

That's all!!
Couldn't be easier.

The effect isn't finished yet. I need to adjust the ghosting camera's FOV depending on how far away the real camera is.

Other than that it's pretty good.
The texture I used doesn't make it look that good because it's so defined. A proper game texture would be better.

Here's some screens:



Here's the source:



Here's the texture I used:

David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd Dec 2004 05:20 Edited at: 23rd Dec 2004 05:23
That's quite cool

It won't work in DB Chris - it uses sphere mapping and multiple camera.

[edit]

I've had a go myself - I find that cube mapping works very well for that sort of thing.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 05:31
I thought it might work in DBC Enchanced.

Maybe not though...

I'll fix it up a bit more.

Does the cube mapping 'point' at camera 0? If so, I can make it look better.

I'll make a better demo scene with a real player character and other objects in the room.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 06:18
Turns out it looks crap on anything other than a sphere.

Maybe it could be fixed with some UV trickery.
On a proper model it seems to tile the texture oddly.

Oh well.... looks nice on a sphere.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 17:46 Edited at: 23rd Dec 2004 17:50
I've been fiddling with it and now it's awesome.

I've tried it on weird (but vaguely spherical) shaped and it looks absolutely awesome. It looks like a glass shader!

Here's a shot:


Here's the code I used to do that:


Don't worry if that looks complicated. That's just to make it bounce around. All you really need is:



I've attached the model I used. You'll need a blank texture called "White.jpg"

You really have to see it in action with the object spinning and bouncing. You don't need a 3D card for it to work (I don't have one).

EDIT____________________

Just another shot.
Check out how well it hides it:

Attachments

Login to view attachments
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 18:07 Edited at: 23rd Dec 2004 18:17
Here's some shots with a humanoid:

It looks nice but it doesn't really hid it that effectively. Try fiddling around with it.

Also remember that in these pictures that camera is looking straight at the object so the cube mapping looks right. If you look slightly to the left or right of it, it's easier to see.

I don't know much about 3D but if someone could muck about with some commands so the ghosted object doesn't have shadows it would be cool. From below it's easy to see because it darkens the image so much.

Here's the shots of the new model:


EDIT___________________-

No worries I found the command I was looking for.

Here's the new version of SetStealthEffectOn():



It looks a lot better now.
If it's a sphere then you honestly can't see it sometimes.

Check the shot I attached.

Attachments

Login to view attachments
Drew Cameron
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 23rd Dec 2004 18:22
That looks apsolutely awesome! I'm not being sarcastic either...

When I start my next project after Dumbo & Cool on DBPRO, I'll be sure to use that effect...

Drews free DB games - http://www.drewsgames.com/
Time Ship : out now! Check out the link above!
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 23rd Dec 2004 18:42 Edited at: 24th Dec 2004 02:00
Thanks a lot.

I'll just make an .exe so you can see it in action.

It looks just like glass.

EDIT_______________

Here it is!

Have fun:

Here
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 00:47
Thats PERFECT! Thanks! Ill try it out on the DBPro Trial in a sec!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 00:50
Have you tried the download?
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 01:02
Ohhh Damn my mouse has committed suicide! IM having to control it with 'Mouse-Keys' Ill try out the .EXE

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 01:09
The Winzip file didnt work! It extracted everything except the .exe! There was an unexpected end of file error

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 01:12
I'll upload it again.

Wait a sec.
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 01:13
Here:

http://www.geocities.com/the_smock_home/Glass.zip

Copy + Paste the link.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 01:26
It works perfectly! Only the Frame Rate suffers a bit. Here is a pic!

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)

Attachments

Login to view attachments
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 01:36
Cool.

It shouldn't hit the FPS too much...

You might want to mess around with the FOV# part of the code to get better results for your game.

If it's going to be roughly the same distance away from the camera all the time (like it would be in MGS with the top down view) then you should just set a fixed FOV# value.

I've been playing arounf with a monkey model which I stole from Newton. It looks pretty nice. I've attached a pic.

Attachments

Login to view attachments
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 01:42 Edited at: 24th Dec 2004 01:42
If you're implementing this into a game, it would look best if you had a pod-like spaceship like this picture (attached).

Make sure it's fairly smooth and high poly (like 100 - 200) and it will look sweet.

Damn those things would be annoying to go against, especially if it was some chase sequence or something round a city at night, and they kept turning ghosting on.

It looks kind of like the car in Die Another Day.

Attachments

Login to view attachments
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 01:56
Im going to try and re-make the original Metal Gear so I thought I could add in a stealth device... Its that or create one entirley based on a cyborg ninja style thing.
So the view will be top down for the most part.

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Dot Merix
21
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Canada
Posted: 24th Dec 2004 02:00
Those zip files arent working for me.. seems they're corrupt.



WindowsXP Home(Service pack 2), Athlon XP 2400+(2.1Ghz), 1GIG Ram, Ati Radeon 9800Pro 128MB.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 02:02
Since my mouse isnt working anymore and I cant 3D Model now can anyone show me where I might be able to get a Solid Snake model. Just for temporary use?

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 02:19 Edited at: 24th Dec 2004 02:20
I posted this on the WIP board as it doesn't acutally work in DBC.

I would suggest making a simplified model of snake for when he's cloaked make out of deformed spheres because it will look a lot better.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 03:00
Ok I will try that. Have you ever played Metal Gear on the MSX2?
Im using an emulator.

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 24th Dec 2004 03:15
I've got the PC version.



It's got loads of extras including being able to play as ninja, with the sword and everything.
Dom
20
Years of Service
User Offline
Joined: 31st May 2004
Location:
Posted: 24th Dec 2004 03:35
Yeah I tried out the demo of that. But Ive got the PS1 Version of special missions! I havent unlocked ninja yet...

What I meant was have you played the original metal gear on MSX2 that takes place in Outer Heaven. Theres loads of references to it in MGS1.

I tried out the stealth on the Ninja model that come with DarkMATTER. It looks allright but I think it will look better with spheres.

DRAGONFIRE STUDIOS
Lead Programmer
(The Studio being my front room)

Login to post a reply

Server time is: 2025-05-24 08:07:49
Your offset time is: 2025-05-24 08:07:49