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 / indis widdle airplane

Author
Message
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Sep 2003 11:03
I made this quickly to help someone but it lacks real physics.

any guru want to add some so we have a nice demo for air flight.?




http://www.lunarpixel.com
It's already tomorrow in Australia
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Sep 2003 13:35
heres another plane if you want a red one!

they go faster





http://www.lunarpixel.com
It's already tomorrow in Australia
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Sep 2003 15:18
the Darthster did some most excellent work with the new sound addition and added a shifting routine I added some fog and inbuilt texture and viola it looks good




http://www.lunarpixel.com
It's already tomorrow in Australia
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 3rd Sep 2003 16:47
heres one with crappy gravity



http://www.lunarpixel.com
It's already tomorrow in Australia
Ocean Runner
20
Years of Service
User Offline
Joined: 18th May 2003
Location: United States
Posted: 4th Sep 2003 03:34
Awesome.

"Computers in the future may weigh no more then
1.5 tons.
- Popular Mechanics, 1949
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Sep 2003 07:07
tried to add machine gunfire last night but havent solved a few things. Going to have to wait to see if the Darthster has as a possible solution.

http://www.lunarpixel.com
It's already tomorrow in Australia
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 4th Sep 2003 11:21
very cool, could you make it so that if you crash the plane into the ground,the plane explodes and all the bits fall off.


ifman1
20
Years of Service
User Offline
Joined: 3rd Jul 2003
Location:
Posted: 4th Sep 2003 12:13
I tell you, Indi is bored! Isn't there some kind of Dwarven game thing you should be coding?


Sex Junky... Looking for a Dealer!
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Sep 2003 12:25
if you only knew bro. It may appear im doing random things away from DT but I can asure you im not. I wont let the cat out of the bag just yet tho.

http://www.lunarpixel.com
It's already tomorrow in Australia
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 4th Sep 2003 23:26
oooh will we be able to fly planes???? that'll be cool!!!


TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 12th Sep 2003 05:18
Is there a way to have flight sim controls with just the camera?

when i tried it the controls didnt work right



even though i use the camera pitch and roll commands, it only seems to be rotating the camera along the x , y , z axis... not "free motion"

Those who Fight with swords get killed by those who don't
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 13th Sep 2003 00:56
Your code works for me. Your definition of 'free motion' is obviously not what you think it means! In DBPro terms, it means rotate camera round its own axis, ignoring the world axis.

If your mansion house needs haunting, just call Rentaghost!
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 13th Sep 2003 05:14
Yes... i know what it means!
Thats exactly what Indi used, execpt in place of "camera" was "object", and Indi's "free motion" plane works fine. But when I use camera, it ONLY moves around the xyz axis releative to the WORLD not the camera. When i run it, initialy it works fine (because all the axis are oriented right) but when I roll upside down, its very apparent that it only rotates around the axis. in a true free motion i should be able to roll the camera, then pitch up and be able to turn around in a circle. Unfortunatly this does not work for me.


Just to be sure our definition of "free motion" is the same, I want the camera to control like a flight sim.

Those who Fight with swords get killed by those who don't
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 13th Sep 2003 05:17
Nope, i just tried it again

dosent work right...

is this a bug?? cause i wonder why it works on your computer...

Those who Fight with swords get killed by those who don't
spooky
21
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 13th Sep 2003 14:38
"Roll camera, pitch up and turn in circle"

But that works perfectly in your code.

1. You roll camera left by 90 degrees.

2. Keep finger on pitch up key (down arrow). and you spin on cameras exis in a circle.

If you mean you want camera to 'move' in a circle, you need to move camera forward as you pitch. Need to introduce some 'speed' into the equation.

If your mansion house needs haunting, just call Rentaghost!
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 13th Sep 2003 22:07
nope,
I still won't work...
I have tried making the camera move forward, but it still dosent work right.

Heres my exact code


I have no clue why it will work on your computer and not mine. What version of DBpro do you have? Im going to try updating mine to see if that fixes anything.

Those who Fight with swords get killed by those who don't
TheAbomb12
20
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 13th Sep 2003 22:11
Ha,

That was the problem. I needed to update. Everything works fine now.

Those who Fight with swords get killed by those who don't
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Sep 2003 08:25
next time make a seperate post thanks.
code snippets isnt the place to have a discussion.

http://www.lunarpixel.com
It's already tomorrow in Australia
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 14th Sep 2003 22:24
Very nice Indi. I found myself messing around with it for quite a while.



A book? I hate book. Book is stupid.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Sep 2003 06:44
enjoy

http://www.lunarpixel.com
It's already tomorrow in Australia
Guyon
20
Years of Service
User Offline
Joined: 6th Jun 2003
Location: United States
Posted: 15th Sep 2003 16:27
indi,

I had a lot of fun just flying around it, nicely done!!!! Though the landing gear did stick on once, and I cashed on landing.
Thanks for the cute game!
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Sep 2003 16:36
dammm that landing gear.

http://www.lunarpixel.com
It's already tomorrow in Australia
Preston C
20
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 16th Sep 2003 03:36
That was fun, I flew into cyberspace at mach 2, never knew a plane could go that fast.


Dark Basic Pro has arived! I can feel the power!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Sep 2003 18:19
Very nice


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
Kangaroo2 BETA2
20
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 19th Sep 2003 03:46
Hey thats pretty amaing Love the fact it does all that with no media

Quikly Studio Pro. Soon. Honest.
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Sep 2003 03:47
thanks guys, ppl seem to like the limbed coded plane lots.

http://www.lunarpixel.com
It's already tomorrow in Australia

Login to post a reply

Server time is: 2024-03-28 21:51:06
Your offset time is: 2024-03-28 21:51:06