Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, 1 invisible), 1,499 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to convert BMP in HMP without MED #186451
02/29/08 17:16
02/29/08 17:16
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Hello,

is there any way (using Lite-C or other tools?) to convert bmp heightmap files in HMP files, then loading them in my game at runtime, withour using MED?

Thank you!

Re: How to convert BMP in HMP without MED [Re: Alessandro] #186452
02/29/08 17:59
02/29/08 17:59
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
you may make a blank hmp(flat) with MED, then load it in the engine and deform it's vertices according to the brightness of each pixel of an image

Re: How to convert BMP in HMP without MED [Re: Shadow969] #186453
02/29/08 22:15
02/29/08 22:15
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
thank you! But I think that method is feasible only for terrains of 128x128 (not chucked). Chunked terrains cannot be deformed in real-time :-(

Re: How to convert BMP in HMP without MED [Re: Alessandro] #186454
03/01/08 03:37
03/01/08 03:37
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
surely it could be done on chunked terrain with a vertex shader and shader model 3.0?

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: How to convert BMP in HMP without MED [Re: JibbSmart] #186455
03/01/08 19:06
03/01/08 19:06
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
hello,

yes, with shaders, but in that case how can I manage physics?

Re: How to convert BMP in HMP without MED [Re: Alessandro] #186456
03/02/08 00:11
03/02/08 00:11
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
with a little creativity it shouldn't be too hard to write your own functions that read a physics entity's position on the BMP and check if it's going through the ground and push it out. the complexity of such functions would depend on the precision you're looking for.

julz


Formerly known as JulzMighty.
I made KarBOOM!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1