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 Professional Discussion / Matrix/terrain and the best way to move around

Author
Message
Jambo B
16
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 28th Dec 2011 14:33
Hello. I'm just after a bit of advice really. I need a wobbly landscape that the player moves around on. Camera follows player above their head, typical FPS style.

First - are Matrixes or Terrains considered the best way to accomplish this? Is one faster than the other?

Second - to move the player, is it best to move the ground (and the objects on it) under the player's feet, keeping the camera stationery, to give the illusion of movement; or would it be more efficient to have the player object (and camera) moving around over the ground instead?

Thanks for any advice. Don't want to start off down one road then have to backtrack and rewrite everything. I do this too often!

James
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 28th Dec 2011 21:08
Theres a moving terrain sample in a recent post... try the search boxes below...

I believe there is a sample in the snippet folder but not sure... I remember seeing this somewhere... mayve try DCForemanUK on youtube... he is on these here forums as Daniel TGC


someone correct me where I may be wrong cheers... also keen to see the implementation of smooth collision detection here...

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 29th Dec 2011 08:31
I recommend NOT using matrices. They're slow and horrible if you want a lot of them. Plus they're not objects so you cannot apply shaders to them or use collision/physics engines on them.

I'd recommend blitzterrain (free or paid for version available) for your terrains and for simple collisions, sparkys collision plugin. (Free!)

As for movement, Depending on world sizes, I'd keep the terrain stationary and move the player. Sparkys has an excellent FPS demo which is a great starting point for anything involving players moving on a terrain.

My signature is NOT a moderator plaything! Stop changing it!
Jambo B
16
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 29th Dec 2011 12:04
Thanks for the advice, much appreciated. I'm going to check out BlitzTerrain and Sparky's demo.

Cheers again.

Login to post a reply

Server time is: 2026-07-09 20:54:17
Your offset time is: 2026-07-09 20:54:17