The best way to learn how to use the WebCore is by example. See the documentation for more information.
The requested URL is always shown first; if a page uses one or more WebCore templates, those are shown afterwards.
00 <?php
01 include_once ('quake/init.php');
02
03 $Page->title->subject = 'Bug Report (Jan 13, 2000)';
04
05 $Page->location->append ("Quake III Arena", "./");
06 $Page->location->append ($Page->title->subject);
07
08 $Page->start_display ();
09 ?>
10 <div class="main-box">
11 <div class="text-flow">
12 <h2>Quake III Arena - version 1.15c (Jan 13, 2000)</h2>
13 <p class="info-box-top">This is a bug report submitted to id Software on January 13, 2000.</p>
14 <p>I have behavior that seems to be confusion on the part of the shader parser
15 and/or shader manager. If I start a custom map I made, then start one of id's
16 maps, a texture is corrupted.</p>
17 <p>My map uses the following shader (simply the textures/sfx/flame1 shader, but
18 brighter):</p>
19 <div class="quote-block"><pre><code>textures/durdm1/flame_12500
20 {
21
22 // *************************************************
23 // * Yellow Flame *
24 // * April 30 1999 Surface Light 7500 *
25 // * Please Comment Changes *
26 // *************************************************
27
28 qer_editorimage textures/sfx/flame1
29 surfaceparm nomarks
30 surfaceparm nolightmap
31 surfaceparm trans
32 cull none
33 q3map_surfacelight 15000
34
35 {
36 animMap 10 textures/sfx/flame1.tga ... textures/sfx/flame8.tga // 1-8
37 blendFunc GL_ONE GL_ONE
38 rgbGen wave inverseSawtooth 0 1 0 10
39 }
40
41 {
42 animMap 10 textures/sfx/flame2.tga ... textures/sfx/flame1.tga // 2-8, 1
43 blendFunc GL_ONE GL_ONE
44 rgbGen wave sawtooth 0 1 0 10
45 }
46
47 {
48 map textures/sfx/flameball.tga
49 blendFunc GL_ONE GL_ONE
50 rgbGen wave sin .6 .2 0 .6
51 }
52 }</code></pre></div>
53 <p>When I switch to Q3DM3 (which uses the textures/sfx/flame1 shader), this following
54 warning appears in the console and the shader does not show up (the default
55 white grid on black holodeck texture is used):</p>
56 <div class="quote-block"><pre><code>WARNING: expecting '{', found 'surfaceparm' instead in shader 'textures/sfx/flame1'</code></pre></div>
57 <p>I commented the qer_editorimage line and ran both maps again. This seemed to
58 fix the symptom, but it seems that there is something not quite right. The shaders
59 shouldn't be affecting each other, but appear linked because they use the same
60 texture (or the qer_editorimage is referencing the shader, not the texture in
61 the game, where it should be ignoring it entirely).</p>
62 <p>If you wish to see this bug, either make a map with that shader in it (or download
63 my map, <a href="quake/files/maps/durdm1.zip">durdm1</a>).
64 I'm pretty sure just using that shader should do it, but haven't tried it myself.
65 Then, do the following:</p>
66 <ol>
67 <li>load map durdm1 (or the map you made with the shader in it)</li>
68 <li>verify that the flames look right (in durdm1, there are torches in the sewer)</li>
69 <li>load map q3dm3</li>
70 <li>the side flames should look fine, but the facing textures/sfx/flame1 shaders
71 are broken. Pull down the console and see the warning.</li>
72 <li>Comment the qer_editorimage line and run 1-4 again.</li>
73 </ol>
74 <p>I you need any more information, let <a href="mailto:marco@earthli.com">me</a>
75 know. I hope this is helpful. </p>
76 <p><i>Note: if you do download my map to see the bug, the bug may be fixed already
77 (depends if I finish my latest build). If durdm1 is up to build 7, then I've
78 already included the workaround. To see the problem, simply uncomment the qer_editorimage
79 line in the textures/durdm1/flame_12500 shader and run.</i>
80 </p>
81 </div>
82 </div>
83 <?php $Page->finish_display (); ?>
84
85