Change mising texture image.

Locked
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Change mising texture image.

Post by Whispere »

Hello Misantropia :) .
I want to change image when texture is mising. I don´t want the same image as in Q3 and OA and all games on Q3.
Is it able?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Change mising texture image.

Post by ^misantropia^ »

Yes, but only if you want to make an engine mod (the function you want is R_CreateDefaultImage() in renderer/tr_image.c). A trick that might or might not work from the cgame is this:

Code: Select all

trap_R_RemapShader("<default>", "your/shader", NULL);
Locked