q3 model editing

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
j3st3r
Posts: 97
Joined: Fri Oct 01, 2010 11:02 pm

q3 model editing

Post by j3st3r »

Not really what topic implies but I was wondering how you go about setting up a new shader for a stock model that doesn't effect other maps in game. An example would be changing the color of a texture in a model but having the effect only take place in the map you are making. I have the color change part down but do not know how to isolate it just to my map.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: q3 model editing

Post by obsidian »

From the entities menu with Quake 3 Extras installed:
_remap : Used to remap textures/shaders in the model. To remap all shaders to a given shader, use "*;models/mymodel/mytexture". To remap a specific shader, use "models/mymodel/old;models/mymodel/new".
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
j3st3r
Posts: 97
Joined: Fri Oct 01, 2010 11:02 pm

Re: q3 model editing

Post by j3st3r »

Do you place the new shader file in your scripts folder for the map? Also would you place the new texture in the model folder or in a new directory?
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: q3 model editing

Post by obsidian »

Doesn't really matter as long as you aren't overwriting anything, but for organization it's probably best as follows:

Code: Select all

yourmap.pk3
    /models
        /mymodel
            mymodeltexture.tga
    /scripts
        mymap.shader
        mymodels.shader
And the optional shader script in mymodels.shader should read:

Code: Select all

models/mymodel/mymodeltexture
{
    [shader stuff]
    {
        map models/mymodel/mymodeltexture.tga
        rgbGen vertex
    }
}
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Post Reply