Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (AndrewAMD, Akow), 1,371 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Apply different textures to same instanced tile. #187757
03/09/08 23:12
03/09/08 23:12
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
Hello,

I am making a tile-based map system and I wish to load images from files and mirror them as textures on several instances of my tile model using the same UV coordinates.

This is a 20x20 map with the same texture:

http://www.gamingw.net/pubaccess/52348/2008-03-09_225104.jpg

Can anyone help me or point me in the right direction?

Thanks,

-Ed

Re: Apply different textures to same instanced til [Re: crumply] #187758
03/10/08 04:24
03/10/08 04:24
Joined: Apr 2004
Posts: 516
USA
Trooper119 Offline
User
Trooper119  Offline
User

Joined: Apr 2004
Posts: 516
USA
From what I understand what your basically trying to do is take multiple textures/pictures and put them on the same surface at the same time. And beside writing a shader that does something similar to taking a source picture and emulating itself on the surface this is impossible. I believe as of A7 this is true as well.

In short, yes its possible, with a shader written for it. Long answer no its not really possible by the engine alone (last time I checked), but if you put effort into it you can do it no prob. Before you look into designing your own shader however look around for something that does this already, since taking one texture and relaying it on a .hmp terrain model and using another as a detail map is a definite possibility that I have seen done several times. Hopefully someone else can direct you more specifically.

P.S. Your link doesn't look

P.S.S. If your looking for a more specific answer, I suggest you elaborate, it may be me, since its late right now, but it didn't make complete sense to me to what you were asking.


A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C
Re: Apply different textures to same instanced til [Re: Trooper119] #187759
03/10/08 22:32
03/10/08 22:32
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
I think what you want is to set skin = x for each tile on spawning it. You can create skins from external images prior to this, and that should get you any number of skins, with any tiles set to whichever works as you create the tiles on the client.

Don
have a great day

Re: Apply different textures to same instanced til [Re: Gumby22don] #187760
03/25/08 17:13
03/25/08 17:13
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
That's what I mean. Do you know specifically how I could do that?

Re: Apply different textures to same instanced til [Re: crumply] #187761
03/25/08 21:04
03/25/08 21:04
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
You can set the current display skin of an entity by its skin parameter. entity.skin = 2; for example. But this requires that you have setup the entity skins before. I'm not sure if there is a engine function for that, but you can set the entity skins in MED.

Re: Apply different textures to same instanced til [Re: Excessus] #187762
03/25/08 21:52
03/25/08 21:52
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
What I'm looking for is to interpret a text file on level load, using a script. The text file would contain the coords of the tile and the name of the image it wants to use as the skin.

All I am looking for is the lines of code where you could take an external image file and apply it as a texture to entity being spawned.

Re: Apply different textures to same instanced til [Re: crumply] #187763
03/26/08 00:12
03/26/08 00:12
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Take a look at mystymoods for lite c. It loads ext textures for a terain.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: Apply different textures to same instanced til [Re: Nidhogg] #187764
03/26/08 18:40
03/26/08 18:40
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
Arrrgh I am using models not terrain. Models for tiles. Please read the thread and see what I am trying to achieve!

Edit:

To clarify:

The level is blank.
I load into it NxN blank tile models.
On loading the desired texture for the Nth tile is applied.

It is the process of taking a texture and applying it to the tile that I need help with, thank you.

Last edited by crumply; 03/26/08 18:45.
Re: Apply different textures to same instanced til [Re: crumply] #187765
03/28/08 20:17
03/28/08 20:17
Joined: Mar 2008
Posts: 67
crumply Offline OP
Junior Member
crumply  Offline OP
Junior Member

Joined: Mar 2008
Posts: 67
shameless bump


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