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 / Magic World Problem

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 10th Mar 2004 19:17
I can now succesfully create and load Magic World levels but...
WHY DOESN'T THIS WORK!!!

For some reason the get ground height seems to have no effect!

BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Mar 2004 23:07
1. Are you using just one matrix?
2. Is the camera positioned over the matrix?
3. What result are you getting?

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 10th Mar 2004 23:17
Try positioning your matrix at 0,0,0. When resizing in magic world they move.

Quote: "WHY DOESN'T THIS WORK!!!"


NO IDEA!!!

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 21st Mar 2004 15:30
Yes I am using just one matrix!
Yes the camera is above the matrix!
Result: The camera randomly moves up and down not following bumps on the matrix.

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 21st Mar 2004 18:18
Your code structure works perfect logically. I've never used the matrix height command before, so that might be your problem. Try using hundreds of different values for the parameters until you discover exactly what you need.

Crazy Donut Productions
Current Project: KillZone
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 22nd Mar 2004 15:31
Damn it all!
Positioning the matrix 0,0,0 made it work!

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Mar 2004 06:50 Edited at: 24th Mar 2004 06:52
Did you move the matrix to 0,0,0 in actual MagicWorld or by actual using POSITINO MATRIX?

Crazy Donut Productions
Current Project: KillZone
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 24th Mar 2004 16:13
Position matrix.
For some reason If you have more than one matrix positioned differently, when you position 0,0,0 they still keep the same positioning in comparison with each other!

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
Mr Tricks
22
Years of Service
User Offline
Joined: 15th Jan 2003
Location:
Posted: 26th Mar 2004 21:38
Hi,

I forget since it's ages since I made Magic World - but try using the matrix's position XYZ when you use the Ground Height function - either add it the XYZ you are checking or subtract it - because the Ground Height function works from values relative to the matrix position, I think.

IE if the matrix is positioned at 10,0,20 and your man is at 15,?,30; you should check ground height at x=5, z=10 for that matrix, and similar for all other matrices.

I think.

Robin King
All Seeing i Software
[href]www.robinking.com/allseeingi[/href]
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 27th Mar 2004 21:53
Thanks I'll try that!
By the way Magic World is incredible!

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]

Login to post a reply

Server time is: 2025-05-23 03:19:52
Your offset time is: 2025-05-23 03:19:52