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 / Loading and Rendering my own geometry

Author
Message
Mr Anderson
22
Years of Service
User Offline
Joined: 14th Oct 2003
Location: NYC
Posted: 14th Oct 2003 09:28
How would I go about loading my own geometric data from a file and then rendering it with DB Pro.. if that is possible.

IDIC (Infinite Diversity Infinite Combinations)
Mr Anderson
22
Years of Service
User Offline
Joined: 14th Oct 2003
Location: NYC
Posted: 24th Oct 2003 07:50 Edited at: 24th Oct 2003 08:16
When I wrote this I was very new to this forum didn't evevn know if the subject had been brought up and buried.

After looking at other threads and seeing that no one cared or pretend to have an answer I though of something, and I hope someone will give me a nod and say that might work, or tell me a better way.

I saw that someone wrote a DLL that can call DBPro functions in C code. SO I was thinking that I can make a DLL that calls DBPro Functions and uses the memblock, calls to place the geometry in that format, so I can use it/ or access it in DB...

Now that might work... but should I waste my time, when a SDK or that feature might just come out very soon? Or is there an easier way??

And for anyone who has a similar question, the code base has two ones you should look at. Just look for items under membloack and Mesh.

G'day

IDIC (Infinite Diversity Infinite Combinations)
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Oct 2003 09:39
never saw this... must've been a day i was off.
checkout the Mesh Memblocks, there are examples in the codebase and in the snippet sections that explain exactly howto load in data.

oddly not many people seem to still have figured out howto use them after DB/P having them for over 2years now

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Oct 2003 15:55
I guess that people generally avoid it by using other mechanisms - after all, who really wants to go that 'low-level' with vertice manipulation ... except for a few of us of course

You can find some code that generates a terrain I used in reporting a bug here : http://www.thegamecreators.com/?m=forum_view&t=14433&b=15

It's a bit old now, and I have much more advanced techniques/code/DLLs to do this, but it should give you a start - converting it to use a heightmap bitmap should be easy (HINT: Read the height data into the HeightMap array)
Mr Anderson
22
Years of Service
User Offline
Joined: 14th Oct 2003
Location: NYC
Posted: 27th Oct 2003 00:21
Thanks for the replies.

Is there a name for the memblock format? I think I read something that started with an F..

When you bring in a 3d mesh like 3ds or so, is there functionality for special dummy objects you place on the mess. For example, a target point or place you want a projectle to fire from.

Or do you have to us the limbs system?

Again thanks for responses.

G'day

IDIC (Infinite Diversity Infinite Combinations)

Login to post a reply

Server time is: 2026-07-26 15:29:52
Your offset time is: 2026-07-26 15:29:52