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 / .X or .3ds as Matrix?

Author
Message
nikrei
21
Years of Service
User Offline
Joined: 11th Dec 2003
Location: Cyberspace
Posted: 11th Dec 2003 15:15
Hi!
Is there anyway to make .X or .3DS file to be a Matrix? There was some topic about that in this forum about a year ago, but now it is gone... if someone could help me, I would be very happy Sorry about my bad english
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Dec 2003 16:59
If you have access to the heightmap data, then you could use interpolation to give a replacement ground height function - there's a few of those around, I could post one that Kevil did later tonight if it'd help.

Other that that your sorta left with the built in poly collision commands in DB, Intersect object is what your after - but don't expect great speeds when using DB's collision.


Van-B


I laugh in the face of fate!
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 12th Dec 2003 13:51
Yes all you need to do is write your own get ground height routine and you've basically got matrix functionality.

This example supports a 3d unit range of 0-500 and assumes that object 1 is the world object, although changing it to a larger value is pretty trivial




God created the world in 7 days, but we're still waiting for the patch.
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Dec 2003 13:58
I like to make a greyscale image, load it into milkshape, edit the matrix there a bit, UV Map it, then load it into DB

RPGamer


Dont forget to Join the Forums!
ZomBfied
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 16th Dec 2003 02:08
You can do that in milkshape? Man, for what $25 (or something like that) it's pretty cool.
nikrei
21
Years of Service
User Offline
Joined: 11th Dec 2003
Location: Cyberspace
Posted: 16th Dec 2003 15:58
hmm.... what is that Intersect object command... Darkbasic said that it is unrecognized parameter (or something like that)
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 22nd Dec 2003 21:57
That Because Intersect object is only for DB professional... And just like you, i don't have DBP

Juzt a dude who likez progging
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 22nd Dec 2003 22:05
I also got this solution for you maybe you can use it...

1st - convert your 3ds or x file into a heightmap with a program (dont know wich one, geoscape i think, or write one yourself... thats not too hard)

2nd - write a program that can read heightmaps (the point()command is ideal for that) and store the heights in a memblock or something (memblocks are only in DB enhanced)

3rd - Load the 3ds or x file in db so it will be rendered... while your program reads the heights from your memblock or whatever you used... i think this works... im gonna try it myself too!

Juzt a dude who likez progging

Login to post a reply

Server time is: 2025-06-07 02:55:23
Your offset time is: 2025-06-07 02:55:23