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 / you know this one?

Author
Message
Jinxen
23
Years of Service
User Offline
Joined: 2nd Jun 2003
Location:
Posted: 1st Oct 2003 22:06
hi!
have anyone sver seen the 3d thingy when you have a
picture of a ground with smothhills and the pic is taken from above
and then you load it into 3d! the brighter the hill is the higher the hill in the 3d gets... have any one done this and how is it done? is it availible some where? thank's

Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 1st Oct 2003 22:11
lol, Its called Heightmapping and theyre are several ways of doing it try searching the code snippets board for "heightmapping" and your sure to find one that will work.

Visual Programming Studio ORANGE
Replacement IDE for Dark Basic Professional...
(Will Be Availeable When This is Removed)
Mussi
23
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 1st Oct 2003 22:21
Quote: "MAKE TERRAIN
This command will create a new terrain object using the specified Heightmap file. A heightmap file is a
simple image file that contains a greyscale representation of the landscape heights. The image file must
contain an image with identical width and height, and ideally be a resolution equal or greater than 256
colours. Additional parameters control the size and detail of the terrain.

SYNTAX
MAKE TERRAIN Terrain Number, Heightmap Filename"


you can find some related commands in the help file: commands>world commands

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
UberTuba
23
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 1st Oct 2003 22:26
terrain commands aren't worth it, use one of the snippets in codebase for matrix.

the artist formally known as darkfluff

Login to post a reply

Server time is: 2026-07-25 08:28:48
Your offset time is: 2026-07-25 08:28:48