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 / MEMBLOCKS, MESHES and Crashes!

Author
Message
Beta 1
22
Years of Service
User Offline
Joined: 27th Aug 2003
Location:
Posted: 14th Sep 2003 00:20
I'm trying to get my head around making memblocks from meshes and back again.

I can make a memblock containing the mesh and read all the vertex positions etc out BUT

rather than get 338 as the ffv format version (as stated in the help file for the memake memblock from mesh command) I get 274 - what gives?

All the other numbers make sense and if I make the memblock back to a mesh and then into an object that works

BUT if I use the following code to build a single poly from scratch I get an exception error and the project crashes.
If I rem out everything from the make mesh from memblock then I dont get the crash (but dont get anything obviously)

So any thoughts on where I'm going wrong?
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th Sep 2003 02:11 Edited at: 14th Sep 2003 02:11
In Patch 4 they changed the default FVF format to 274. The only difference is that there is no vertex colour DWORD in the 274 FVF format:

PosX [4]
PosY [4]
PosZ [4]
NormalX [4]
NormalY [4]
NormalZ [4]
U [4]
V [4]

You can use CONVERT OBJECT FVF to make your life easier. If you want to see an example of building a simple poly - take a look at this codebase entry:

http://developer.thegamecreators.com/?m=codebase_view&i=a2013526b9191597170f2d117cce3fe9

Beta 1
22
Years of Service
User Offline
Joined: 27th Aug 2003
Location:
Posted: 14th Sep 2003 12:28
Well that explains it - cheers?

Why oh why oh why cant they update the help text though when they change stuff?

Login to post a reply

Server time is: 2026-07-23 12:43:57
Your offset time is: 2026-07-23 12:43:57