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 / Advanced Terrain Repeating Itself...

Author
Message
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 26th Mar 2010 21:19
Hello I have an advanced terrain problem. If you look at the attached pic, the terrain repeats itself 4 times. I haven't a clue why! I load up a heightmap from the newton demos and it works fine.

Code:



If anybody can help out that would be great! And i know... my texturing is horrid

Thanks

Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 26th Mar 2010 21:20
Media

Any help appriciated! Thanks

Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Mar 2010 23:16
You're in luck.

Your heightmap is the wrong format - it's 256 colours.

Change the map001.bmp format to 24 bit bmp - just open with MS Paint and use Save As and select that option from the file type drop-down list.

Then your program works fine.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 26th Mar 2010 23:26
ahh thanks alot I feel like an idiot now

Cheers Quite odd that it causes it to repeat IMO, is there any way to do this from within GIMP, which is what i'm using.

Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 26th Mar 2010 23:55
Quote: " is there any way to do this from within GIMP, which is what i'm using"


Step 1: Use Image/Mode/RGB
Step 2: Use Save As then choose 24 bit from the Advanced Options that pop-up at some point.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 27th Mar 2010 00:13
Thanks alot works like a charm

Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM

Login to post a reply

Server time is: 2026-07-26 21:12:11
Your offset time is: 2026-07-26 21:12:11