Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
save hmp file dll #450136
04/07/15 09:37
04/07/15 09:37
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
here's a contribution to save hmp terrain

--- http://www.datafilehost.com/d/5998324b

declare this function in your project:

Code:
int save_hmp(char* filename,ENTITY* terrain,int skip_original_pixels);



set skip_original_pixels to 1 ,if you want to skip the original image
pixel data , and try to rather use the pixel data from the bmap buffers,
use this if you want to save modified pixel operations .


else set it to 0.

---

include save_hmp.dll in your project folder .

then call this function to save your terrain entity out to file .

---

has skin support , bmp and tga supports modified pixel data .

dds and png and jpg only supports non modified pixel data and "skip_original_pixels" wil default to 0 , no matter what the value "skip_original_pixels" was set to when you called the function (for now anyway)...

Last edited by Wjbender; 04/15/15 20:58.

Compulsive compiler
Re: save hmp file dll [Re: Wjbender] #450139
04/07/15 09:51
04/07/15 09:51
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Wjbender@ thank you very much! it's very useful contribution! laugh

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: save hmp file dll [Re: 3run] #450142
04/07/15 10:48
04/07/15 10:48
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
roger that , over and out


Compulsive compiler
Re: save hmp file dll [Re: Wjbender] #450145
04/07/15 10:55
04/07/15 10:55
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
thanks!
do you plan to support skin changes in future?
in MapBuilder I use a dll which works fine, but saves hmp with original skins.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: save hmp file dll [Re: sivan] #450146
04/07/15 11:47
04/07/15 11:47
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
did you write that dll ? or where did you get it .

I am surely planning on that , however my current understanding of the ctexture & cskin information ,is a bit vague , especially working from the bmap pointers of the skin's data towards completely correct data for ctexture and cskin , well I believe that's where I am supposed to retrieve my data to fill up ctexture and cskin .


Compulsive compiler
Re: save hmp file dll [Re: Wjbender] #450147
04/07/15 11:50
04/07/15 11:50
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I got from an old user called Widi with the permission to use it.
as I remember HeelX has a working version, and you can search his related questions to jcl, to get some useful info...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: save hmp file dll [Re: sivan] #450149
04/07/15 12:02
04/07/15 12:02
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
well it appears to be just arrays of (color per pixel) with bmap->bytespp, either arranged as rgb or bgr , I think I can manage .

Last edited by Wjbender; 04/07/15 12:16.

Compulsive compiler
Re: save hmp file dll [Re: Wjbender] #450154
04/07/15 14:03
04/07/15 14:03
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
http://www.datafilehost.com/d/c21e74d7

tested with 2 bmap skins , worked fine , however I am a bit confused with the mipmaps .


Compulsive compiler
Re: save hmp file dll [Re: Wjbender] #450155
04/07/15 14:21
04/07/15 14:21
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: save hmp file dll [Re: sivan] #450156
04/07/15 14:27
04/07/15 14:27
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace

hhmm maby I should add dds and whatever , currently I only have simple bmp skins


Compulsive compiler
Page 1 of 5 1 2 3 4 5

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