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
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, AndrewAMD, Akow), 1,481 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
attach a texture to a ball #272911
06/20/09 13:31
06/20/09 13:31
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
I want to make a picture to be the texture of a ball, how can I do it?

Re: attach a texture to a ball [Re: ruchen] #272912
06/20/09 13:35
06/20/09 13:35
Joined: Oct 2008
Posts: 67
C
Crypton Offline
Junior Member
Crypton  Offline
Junior Member
C

Joined: Oct 2008
Posts: 67
For very simple thing:
Open up your model in MED > Edit > Manage Skins > New Skin > Make tick into Texture > Texture File > Browse for the texture (note that extensions with ExlO need "Extern" tick to be made in a box)
Save your model.

Something like that smile?


New into Gamestudio and eager to learn it..
Stuff and games done in 2D: LINK
Re: attach a texture to a ball [Re: Crypton] #272918
06/20/09 14:05
06/20/09 14:05
Joined: Sep 2007
Posts: 80
R
ruchen Offline OP
Junior Member
ruchen  Offline OP
Junior Member
R

Joined: Sep 2007
Posts: 80
Thank you !
But how can I realize it using code?

Re: attach a texture to a ball [Re: ruchen] #272983
06/20/09 20:09
06/20/09 20:09
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
look for
ent_setskin(me,myNewBmap,1);
and
ent_morphskin(my,"newskin.pcx");
in the manual
if you want to change the skin-texture during runtime (code)

but you need to make/prepare the ball in MED before,
so the engine knows how the texture is mapped.
(Skineditor)

If you select to use an "extern" texture in MED,
the model will load this external file,
so you can change this picture without having to
edit the Model in MED. It will always load the
picture of the same name.

Re: attach a texture to a ball [Re: Damocles_] #273204
06/22/09 01:07
06/22/09 01:07

R
ricky5564
Unregistered
ricky5564
Unregistered
R



I have a less complex solution


it hase a couple more steps but they dont include code
and complex things and its the best way i know of
adding multiple textures to one figure other than
skin maping .. which is wayyyy more complex


1, open MED and load your ball

2, select the section of the ball you would like to cover
with the pic....

3, now open paint and open ur pic in it

4, save as... then in the save box the second dropdown menu that says
save as type: select : 24-bit Bitmap (*.bmp;*.dib)

5, go back to MED and select edit > manage skins > new skins, then check off the textures box then click texture file then click the button with the three periods (...) then select the image you saved from paint

now have fuN!

Re: attach a texture to a ball [Re: ] #273251
06/22/09 08:14
06/22/09 08:14
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
That's what crypton already said, but ruchen wanted to do it using code.

Re: attach a texture to a ball [Re: the_clown] #273653
06/23/09 19:27
06/23/09 19:27

R
ricky5564
Unregistered
ricky5564
Unregistered
R



Oh.... well then he should put it in his question


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