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.

Newcomers DBPro Corner / Heightmap problems...

Author
Message
Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 6th Nov 2004 17:53
Can you make heightmaps with DBC and if so how?

"Well, if he dies it'll teach him not to do it again." - Me
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 7th Nov 2004 06:17
Randomise the matrix

-ALI-


- Shoot 'Em Down! -
Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 13th Nov 2004 04:23
no, but i mean like, use an image to mold the matrix.............................

"Well, if he dies it'll teach him not to do it again." - Me
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 13th Nov 2004 06:25 Edited at: 13th Nov 2004 06:26
Use the Advanced Terrain plugin (free). It uses a height map to make a terrain object. You can scale it, texture it, and a few other things.

The main AT discussion is in DLL talk

[EDIT] sorry, ijust saw you're using DBC.

You would have to use a matrix, and manually adjust the height by interrogating the pixels in a separate bitmap.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 13th Nov 2004 21:36
make a matrix of say 100x100 tiles
make a bitmap of 100x100pixels
draw the heightmap on the image (in just one colour eg:red)
read each pixels red value (0 to 255)
set the tile height for that pixel to colour/scale

so for example a scale of 255 means the highest a tile can be is 255/255=1 , a scale of 10 means the highest tile on the map is 25.5 units tall etc, if you want to use realy big images (like 1000x1000 for eg) then you can`t use large 1000x1000 tile matrixes cos of the speed hit, so just get the height at every tenth pixel for example, or better, average the pixels for each tenth pixels location, that way you get the general shape of the terrain, add other detail with textures and models (boulders etc), cheers

Mentor.

PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.
Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 12th Dec 2004 02:20
cool, but im kinda new to DBC so how would you find out what shade each pixel is?

"Well, if he dies it'll teach him not to do it again." - Me
Zotoast
20
Years of Service
User Offline
Joined: 24th Oct 2004
Location: southside of mt everest,its warmer there
Posted: 14th Dec 2004 03:40
NOONE REPLY TO THIS, I FOUND OUT HOW TO DO IT!!

"Well, if he dies it'll teach him not to do it again." - Me

Login to post a reply

Server time is: 2024-11-27 16:34:29
Your offset time is: 2024-11-27 16:34:29