Mirror Textures
Moderator: InsideQC Admins
10 posts
• Page 1 of 1
Mirror Textures
Hey guys i want add some Mirror Textures in my Quake Engine so i have a look into the gl_rmisc.c and add some code:
But it dont work can anyone help me, thanks.
- Code: Select all
if (Q_strncmp(cl.worldmodel->textures[i]->name,"window02_1",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_1",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_2",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_3",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_4",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_lava1_fbr",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_lava2_fbr",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_slime1",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_slime2",10))
mirrortexturenum = i;
/* else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_teleport",10))
mirrortexturenum = i; */
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water0",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water1",10))
mirrortexturenum = i;
else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water2",10))
mirrortexturenum = i;
But it dont work can anyone help me, thanks.
I am sorry for my English...
-

Rikku2000 - Posts: 49
- Joined: Wed Oct 20, 2010 6:33 pm
- Location: Germany
OSAMA BIN LADEN IS DEAD!!!!!!!!!!!!!!!
ahem............. sorry for that outburst.
1- this doesnt belong in the qc category, as ceriux said
2 - try bracing your code (ie the {} stuff). it gets code to work for me sometimes.
ps if u r using dp it wont work. mirroralpha in dp is broken last i checked.....
ahem............. sorry for that outburst.
1- this doesnt belong in the qc category, as ceriux said
2 - try bracing your code (ie the {} stuff). it gets code to work for me sometimes.
ps if u r using dp it wont work. mirroralpha in dp is broken last i checked.....
-

behind_you - Posts: 237
- Joined: Sat Feb 05, 2011 6:57 am
- Location: Tripoli, Libya
Rikku2000 wrote:PS: i use my own Quake engine for handheld devices.
ooohhh
-

behind_you - Posts: 237
- Joined: Sat Feb 05, 2011 6:57 am
- Location: Tripoli, Libya
the number on the right is the length of the string. any texture names longer than 10 chars will match regardless of either the texture name or whatever you're trying to match against.
also, you only have one mirrortexturenum. only one such texture will ever be a mirror on any individual map - whichever is the last texture found in the bsp. all the others will draw as normal.
also, make sure you have r_mirroralpha set to something less than 1.
also, you only have one mirrortexturenum. only one such texture will ever be a mirror on any individual map - whichever is the last texture found in the bsp. all the others will draw as normal.
also, make sure you have r_mirroralpha set to something less than 1.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
if (Q_strncmp(cl.worldmodel->textures[i]->name,"window02_1",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_1",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_2",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_3",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_4",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_lava1_fbr",14)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_lava2_fbr",14)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_slime1",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_slime2",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_teleport",13)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water0",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water1",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water2",11)) {
mirrortexturenum = i;
}
so thats right? my Quake engine is for GP2X WIZ and Caanoo thats openhandheld device.
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_1",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_2",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_3",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"window01_4",10)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_lava1_fbr",14)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_lava2_fbr",14)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_slime1",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_slime2",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_teleport",13)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water0",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water1",11)) {
mirrortexturenum = i;
} else if (Q_strncmp(cl.worldmodel->textures[i]->name,"star_water2",11)) {
mirrortexturenum = i;
}
so thats right? my Quake engine is for GP2X WIZ and Caanoo thats openhandheld device.
I am sorry for my English...
-

Rikku2000 - Posts: 49
- Joined: Wed Oct 20, 2010 6:33 pm
- Location: Germany
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
