HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Item texture material (solved)

View previous topic View next topic Go down 
AuthorMessage
Khaao

avatar

Male Posts : 261
Join date : 2014-09-07
Age : 20

PostSubject: Item texture material (solved)   Sat May 28, 2016 10:22 pm




Hello so i made an item and finally export it to my game but i dont know how do i enable texture on it?

and also Yes, i made UV map to it

it has material file when i export but it's kinda like this so i dont know what to do to let the texture show in-game

Code:
material CollarMat
{
 receive_shadows on
 technique
 {
 pass
 {
 ambient 0.500000 0.500000 0.500000 1.000000
 diffuse 0.640000 0.640000 0.640000 1.000000
 specular 0.500000 0.500000 0.500000 1.000000 12.500000
 emissive 0.000000 0.000000 0.000000 1.000000
 }
 }
}


Last edited by ✪ Saz on Mon May 30, 2016 1:38 pm; edited 1 time in total
Back to top Go down
FagonStar

avatar

Game username : FagonStar
Server : Impressive Whatchamacallit
Female Posts : 1060
Join date : 2011-09-20
Location : In your closet.

PostSubject: Re: Item texture material (solved)   Sat May 28, 2016 11:21 pm

Did you remember to add this?
Code:

         texture_unit
         {
            texture texture.png/jpg/targa/whatever alpha
Back to top Go down
Tsezar

avatar

Game username : Tsezar
Female Posts : 427
Join date : 2015-03-09
Age : 16

PostSubject: Re: Item texture material (solved)   Sun May 29, 2016 7:35 am

If it's a simple item, you may use this code:
Code:
material MaterialNameMat
{
 receive_shadows on
 technique
 {
 pass
 {
 ambient 1.000000 1.000000 1.000000 1.000000
 diffuse 1.000000 1.000000 1.000000 1.000000
 specular 0.010000 0.010000 0.010000 1.000000
 emissive 0.000000 0.000000 0.000000 1.000000
 texture_unit
 {
 texture TextureName.png
 tex_address_mode wrap
 filtering trilinear
 }
 }
 }
}
You may use not only .png, you may use anything you want, but do not forget to change it.
Back to top Go down
https://shizainu.deviantart.com
Khaao

avatar

Male Posts : 261
Join date : 2014-09-07
Age : 20

PostSubject: Re: Item texture material (solved)   Sun May 29, 2016 10:04 pm

Shiza Inu wrote:
If it's a simple item, you may use this code:
Code:
material MaterialNameMat
{
 receive_shadows on
 technique
 {
 pass
 {
 ambient 1.000000 1.000000 1.000000 1.000000
 diffuse 1.000000 1.000000 1.000000 1.000000
 specular 0.010000 0.010000 0.010000 1.000000
 emissive 0.000000 0.000000 0.000000 1.000000
 texture_unit
 {
 texture TextureName.png
 tex_address_mode wrap
 filtering trilinear
 }
 }
 }
}
You may use not only .png, you may use anything you want, but do not forget to change it.

still not working
Back to top Go down
Jayx

avatar

Game username : Jayx
Server : Royal Elements
Female Posts : 340
Join date : 2012-03-19
Age : 19

PostSubject: Re: Item texture material (solved)   Sun May 29, 2016 10:20 pm

What is the texture file's name (.png /.jpg included)
and what material name is the model reading
Back to top Go down
Khaao

avatar

Male Posts : 261
Join date : 2014-09-07
Age : 20

PostSubject: Re: Item texture material (solved)   Mon May 30, 2016 1:36 pm

Worked thanks!
Back to top Go down
 
Item texture material (solved)
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: