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 / Memblocks

Author
Message
Vertex
22
Years of Service
User Offline
Joined: 21st Sep 2002
Location:
Posted: 20th Feb 2003 17:00
Hi!
Can You Say me how structured a Memblock next of
- Make Memblock From Bitmap
- Make Memblock From Image
- Make Memblock From Sound
- Make Memblock From Mesh
?
I have look in the help, but the informations
are very very little.

cu olli
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 20th Feb 2003 17:32
Hi,

make memblock from image/bitmap:

Image Width (dword - 4 bytes)
Image Height (dword - 4 bytes)
Image Depth/Resolution (dword - 4 bytes)
Image Data = the rest of the memblock in byte format.

Example width: 800
Example height: 600
Example depth: 32

Example data: Read 4 bytes at a time (dword) to get the pixel colour value.

I'll find out the sound/mesh formats for you later on.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Feb 2003 17:45
Bitmap/Image ->


16bit = 2byte word per pixel
32bit = 4byte RGBA

Sound ->


Mesh ->


Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Vertex
22
Years of Service
User Offline
Joined: 21st Sep 2002
Location:
Posted: 20th Feb 2003 18:17
Hi!
Oh thx for this help!
I have the DBPro-Demo and in this help
stay no structure of this.
hmm the structure must be change becouse
the following code show me 338 Vertices
by a Cube

cu olli

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Feb 2003 18:20
lol... i got the info from the DarkBasic 1.1x manual (^_^)
if you ever need extra info or roughly howto produce effects its alot more useful than the current Pro manual.

hopefully within the next month or so that'll change with the new manual being written up

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?

Login to post a reply

Server time is: 2025-05-17 09:55:51
Your offset time is: 2025-05-17 09:55:51