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.

Code Snippets / 3D galsses code (this works)

Author
Message
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Aug 2003 17:25 Edited at: 12th Aug 2003 17:35
Edit: colour now works fine. Fixed by assigning R image both G and B channels.

Getting the idea from the other thread of similar nature and the new Spy Kids movies, anyone with a pair of 3d glasses and DBPro will be able to enjoy the delights of 3d graphics. The effect is totally camera-based, so there's no tinkering with objects to be done.

I'm now going to make a really, really nice fast racing game to go with this!



You are the th person to view this signature.
GRAVITY: I fought the law but the law won
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Aug 2003 17:37
D'oh "galses" is "glasses" please rich add an edit topic title button!

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Aug 2003 18:19
Nice one! - I've been dying to make a 3D game ever since I was a kid. Now I just gotta find some galsses to go with it . In fact I'm planning a little tech demo, so this will most likely feature in it.

The cool thing is that it's not a huge deal to impliment, I mean you could easily make it an extra option without affecting your game too much.


Van-B

My cats breath smells of cat food.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Aug 2003 18:22
Thanks I was trying to create a "plug-n-play" system - one that would not require every object to have a couple of duplicates.

What I really want to create with this is an extreme g 3 / wipeout sort of game, with lots of speed and fast tracks. And, of course, a VR headset to go with it!

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
Attreid
22
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 12th Aug 2003 18:39
where can I find 3d glasses ? pleease, david, give me yours pleeeease

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 12th Aug 2003 18:54
Go down the newsagents and look for any kiddies magazine - you see them quite often with free posters on Disney magazines etc.

Or you could make your own with the coloured plastic wrappers from a box of quality street. Probably best worn when alone though, otherwise people might consider you for mental rehabilitation.


Van-B

My cats breath smells of cat food.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Aug 2003 19:16
...or you can go and watch the new Spy Kids movie! I got 3 pairs from them! (plus the movie is is ok - really inspires you to create your own game just like it).

Try the demo with the big head from the face demo - that works well too. You'll need to scale the object to 10% though to get it to work.

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Aug 2003 22:52
Nice one

I never though of mixing diffuse and alpha in that way. That's clever
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 12th Aug 2003 23:45
Thanks , did you try it? And did it work?

Has anyone tried it with glasses? Did it work?

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 13th Aug 2003 02:14
WOW! After emptying out a drawer I found 8 pairs of 3d glasses!

Very nice 3D. The colours are exactly the right shade of red and blue so the glasses work properly.



The programmer formerly known as sonic
keeblerElf
21
Years of Service
User Offline
Joined: 11th Jun 2003
Location: United States
Posted: 13th Aug 2003 05:12
McDonalds has 3d glasses!!!...it comes with a comic book though

Live life and play video games
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 13th Aug 2003 13:10
Quote: "Very nice 3D. The colours are exactly the right shade of red and blue so the glasses work properly."


Thank you! Glad to know somebody got it to work. I'm going to be rewriting it now I've figured out how to do it (the code above was crated form a large amount of tesing, so it may not be the most op[timized version).

The code also work with red / green glasses.

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 13th Aug 2003 20:24
Does anyone mind making an .exe of it? I have dbc...

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 13th Aug 2003 21:00
http://www.aozf28.dsl.pipex.com/3dimage.zip There you are

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 13th Aug 2003 22:06
Thx!!! I'll try it as soon as i can find my glasses from sk3

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 13th Aug 2003 22:36
... though knowing my luck with dbp's compatability I won't be surprised if it doesn't work!

I tested mine with the spy kids 3d glasses, so it should work for you.

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 13th Aug 2003 22:58
It was great! This is amazing!!! DO you mind if i were to put this in a game of mine?

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 13th Aug 2003 22:58
When i get pro, that is...

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 13th Aug 2003 23:24
Sure, put it in. It worked best for me when I put a spinning spaceship in, when the nose swung past I could almost touch it!

You are the th person to view this signature.
GRAVITY: I fought the law but the law won
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 14th Aug 2003 00:06
Probably impossible to do, but i am going to try to create this effect in dbc... Wish me luck...

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 14th Aug 2003 02:54
Big Prob!!! : The objects never pop out of moniter... Next project!!!

---Mattman
DID YOU KNOW THAT ???
Quote: "Life Is Short" That's a bummer
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 14th Aug 2003 14:27
OK I typed out a really long reply explaing ho to get the 3d effect but in short:

It can't be done in DB. Placing coloured object either side of a mina object does not work!

You are the th person to view this signature.
GRAVITY: I fought the law but the law won

Login to post a reply

Server time is: 2024-11-27 19:40:27
Your offset time is: 2024-11-27 19:40:27