Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Place an entity in image #405752
08/06/12 19:10
08/06/12 19:10
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
Hello !

I would like to know how to load an entity in an image laugh

Thanks in advance djfeeler.

Re: Place an entity in image [Re: djfeeler] #405753
08/06/12 19:34
08/06/12 19:34
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you have to render the entity to a texture

which version do you have and how fast should this be (aka can you save it as a bitmap and load it later)?


Visit my site: www.masterq32.de
Re: Place an entity in image [Re: MasterQ32] #405759
08/06/12 20:41
08/06/12 20:41
Joined: May 2008
Posts: 257
D
djfeeler Offline OP
Member
djfeeler  Offline OP
Member
D

Joined: May 2008
Posts: 257
thanks for your response. I have the version pro.

Re: Place an entity in image [Re: djfeeler] #405764
08/07/12 06:30
08/07/12 06:30
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
okay
you can create a view which only shows this model, no other things (just create it far enough away from the level and give it a short clipping range)
create a new bitmap, assign this bitmap about 3 frames to the view render target and then convert the format to a better format than render target:
Code:
BMAP *render = bmap_createblack(256,256,24);
viewEnt.pos_x = 0;
viewEnt.pos_y = 0;
viewEnt.size_x = bmap_width(render);
viewEnt.size_y = bmap_height(render);
viewEnt.bmap = render;
wait(3); //Let the image render
viewEnt.bmap = NULL;
bmap_to_format(render, 888); // COnvert it back to 24 bit image




Visit my site: www.masterq32.de

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