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 / Can vertices be manipulated in DBC ?

Author
Message
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 5th Aug 2006 13:09 Edited at: 8th Aug 2006 00:48
Hello,

I was wondering if there is any way to manipulate vertices on objects in DarkBasic Classic? It looks like when a mesh is saved to a memblock, the vertice data is saved to. Anyone know of a way to "get at" that data? I don't really understand the Memblock map.

[Edit]
I found a great link that helps explain this should anyone else be interested. There are some really clever people in this forum!
http://forum.thegamecreators.com/?m=forum_view&t=12535&b=10

Enjoy your day.
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Aug 2006 16:43
It can be done in memblocks, but I don't understand them either.

Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 5th Aug 2006 21:44 Edited at: 5th Aug 2006 21:45
what are memblocks? it seems to be insanely hard for me to figure it out

Lcf - Lucifer, Ruler OF All Darkness...
SFSW
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location:
Posted: 5th Aug 2006 23:23
Manipulating meshes with memblocks is detailed pretty well in the help section. In the Commands section of the help menu, click on Memblocks, then Make Memblock From Mesh. Each element of the mesh is shown there and you can mess around with each XYZ position (which is probably what you've seen already). A source code example is included at help/memblock/examples/memblock/exam03.dba which helps illustrate how to change the values around with a sphere. You basically just move the points around from a central location just as you do with 3D objects in the open environment.

Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 6th Aug 2006 09:05
Thanks everybody for your input.

SFSW, I didn't even see that that example was available! Thanks for pointing me in that direction, I looked it over and now I kinda get an idea of how to proceed.

It's not as tough as I was thinking it was going to be.

The tough part will be what to do with the vertices once I can manipulate them!

Another question, to anybody, does anybody know where (what memory location) Object, animation, texture information is loaded when you load a directx file? I'm really interested in knowing how DBC is managing a direct x file and all the templates that are included. This would give me a clue on how to code and import armatures, bones, and skin weights.

Thanks

Enjoy your day.

Login to post a reply

Server time is: 2025-05-25 06:20:07
Your offset time is: 2025-05-25 06:20:07