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 / 3D Landscape

Author
Message
Black Cat XIII
19
Years of Service
User Offline
Joined: 23rd Jan 2006
Location:
Posted: 22nd Feb 2006 23:09
Can I make my own landscape and also have it to where the get ground height works on that object?

How would I go about doing this if I wanted to?

Enemy Lasagna
DB newbie
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location: um..... i dont remember.
Posted: 23rd Feb 2006 01:27
to make landscapes like nice ones i use T.ED

Check out my site!(unfinished)
http://www.freewebs.com/dbnewbie/
Black Cat XIII
19
Years of Service
User Offline
Joined: 23rd Jan 2006
Location:
Posted: 23rd Feb 2006 19:05
Lol, I wasn't askign how to make one. I have it already made.

How do I make it act as a matrix to where I say Get Ground Height, or does it do that automatically?

Enemy Lasagna
MORPG programmer
19
Years of Service
User Offline
Joined: 23rd Aug 2005
Location: runescape
Posted: 24th Feb 2006 03:43
you use it as a model, n00b, and position it up or down.

MORPG programmer?
nah, MMORPG gamer is more like it =D
3D modelers needed for new MORPG!! join now!!
Black Cat XIII
19
Years of Service
User Offline
Joined: 23rd Jan 2006
Location:
Posted: 24th Feb 2006 07:40
Ok...

I made the model everybody, its down. Its a room.

Can I still use the Get Ground Height command with a model landscape?

Enemy Lasagna
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 24th Feb 2006 11:07
Quote: "you use it as a model, n00b, and position it up or down."


He wants to use it as a heightmap, not just position it.

You can use models like a mesh, but I haven't looked at how it is done yet.

blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 24th Feb 2006 21:35
Sparky's collision DLL (search in the DLL Talk forum for 'sparky collision') has a DBC version. It's essentially a really fast intersectObjectDBC() function, that allows you to shoot a 'ray'. It'll then return what objects the ray passes through.

The examples included in the archive are more than enough to get you started; they'll serve as a nice introduction at least. The idea is you fake your own get ground height() function by shooting a ray from the player's feet downwards a little bit. If there's nothing there, move the player object down (i.e. gravity). If there is, cement the player's feet to the object.

Not easy, but models/objects can be used to make faster-rendering landscapes than matrices. intersectObjectDBC() is extremely versatile, once you get a feel for it...

Support us! Click! Image! Visit! Site!

Login to post a reply

Server time is: 2025-05-23 15:28:28
Your offset time is: 2025-05-23 15:28:28