Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 459 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
Re: save hmp file dll [Re: Wjbender] #450179
04/08/15 04:26
04/08/15 04:26
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Neat, thanks for the contribution!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: save hmp file dll [Re: Superku] #450180
04/08/15 06:42
04/08/15 06:42
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I use mainly tga skins, because it enables runtime pixel manipulations without conversions (which is also possible). but supporting more formats is better laugh


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

Joined: Mar 2012
Posts: 927
cyberspace
thanks superku.

@sivan well tga ,bmp worked okay when I tested , jpg dds png however is a different story .


Compulsive compiler
Re: save hmp file dll [Re: Wjbender] #450187
04/08/15 10:57
04/08/15 10:57
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace


latest updated link is on page 1


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

Joined: Mar 2011
Posts: 3,150
Budapest
hi
it works fine with mutlitexturing tga skins, but modified skin texture (replaced with another tga, or alpha channel edited for changing coverage) are unsaved i.e. the original skins are coming back after reloading.


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

Joined: Mar 2012
Posts: 927
cyberspace
can you give me a code example ?

I couldn't reproduce the problem .


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

Joined: Mar 2011
Posts: 3,150
Budapest
I tried within latest MapBuilder, just replaced the old dll access with yours by some #ifdefs. the actual texture editing stuff would be too complex to post here.


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

Joined: Mar 2012
Posts: 927
cyberspace
the test I did was , I loaded a hmp with textures applied (which is what I presume you do) then I replaced the skins with different textures , I then saved it ,removed the entity , and loaded it ,everything were correctly saved and applied ..

I also tested with ent_reload but this one seems to have a problem , because it doesn't reload the whole mesh , possible a bug there with terrain and ent_reload?

are you saving your modified files before saving the hmp ? or are you altering the skins bmp's then saving just the hmp ?

I wil conduct some bmp_lock ,with alterations on the pixels tests today .



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

Joined: Mar 2011
Posts: 3,150
Budapest
maybe it is related to bmap_save what I use for speed reasons and to work with bmap_load correctly (bmap_create flips tga).

by the way for the alpha pixel modifications I use a pixel based approach which should work.


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

Joined: Mar 2012
Posts: 927
cyberspace
the pointer of data I am using to fill the data pointer of the hmp before saving , is the pointer available to palettized pixels of the original image .

oh and the manual states that a bmap_save's image format can only be read back with bmap_load and can not be used for BMAP definitions or textures. .


I see the issue , thank you.

Last edited by Wjbender; 04/10/15 09:45.

Compulsive compiler
Page 2 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