Add a texture to a selfmade model |
by GTO2010
on 12/19/2011 16:26, 6 messages, last message: 12/19/2011 18:12, 954 views, last view: 04/15/2024 17:52 |
|
Hey,
i just made a sniper rifle for cube 2, but the textures just don't want to work. The Start of the file looks like this :
mesh {
// meshes:rifle
shader "D:\Sauerbraten\packages\models\hudguns\rifle\sniper.png"
...
I just see the original texture, even though i changed the old ones! When I delete the first line (// meshes:rifle) it is just yellow... So what am I doing wrong?
|
|
Board Index
|
|
#1: .. |
by tempest
on 12/19/2011 16:48
|
|
You can't use the md5 file directly. I mean, you can, but it likely won't work. You need a config file - just look at how it's done for the other weapons (md5.cfg files) and read http://sauerbraten.org/docs/models.html
HTH
reply to this message
|
|
#2: .. |
by GTO2010
on 12/19/2011 17:14
|
|
Thanks for the response.Actually i didnt touch the config but actually I should work...:
part of the config:
md5load "rifle.md5mesh"
md5skin rifle "<dds>sniper.png" "<dds>sniper_mask.png"
md5bumpmap rifle "<dds>sniper_normals.png"
reply to this message
|
|
#3: .. |
by GTO2010
on 12/19/2011 17:20
|
|
But its also pretty strange that the old texture still appears,even though it doesnt exist anymore!
reply to this message
|
|
#4: .. |
by GTO2010
on 12/19/2011 18:10
|
|
Ok problem solved, made a stupid mistake: I forgot the "" at the shader path and I had to delete the // meshes:rifle. Now it works :)
reply to this message
|
|
#5: Re: .. |
by tempest
on 12/19/2011 18:11, refers to #3
|
|
sniper.png doesn't exist any more, but sniper.dds probably does. With the <dds> in front of the file name, the equivalent DDS file gets loaded instead if your graphics card supports it.
reply to this message
|
|
#6: Re: .. |
by tempest
on 12/19/2011 18:12, refers to #4
|
|
Nevermind then. (should refresh the page before I post...)
reply to this message
|
|
|
Board Index
|
|