<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Here it is The Guilty..<br>
<br>
if (darkLayer.isUsed() )<br>
{<br>
/*<br>
if (i == darkLayer.getLayer())<br>
{<br>
darkLayer.preRender();<br>
}<br>
*/<br>
if (i == darkLayer.getRenderLayer())<br>
{<br>
darkLayer.render();<br>
}<br>
<br>
if (i == darkLayer.getLayer() && startLayer != i)<br>
{<br>
continue;<br>
}<br>
}<br>
<br>
wrapping it into a fantastic #if 0 (it will be #ifndef __amigaos4__)
allow the game to be playable in all ist charm! ;)<br>
Now my question is.. what is used for since if i remove it all seems
like on Linux version?<br>
<br>
Il 17/06/2010 13.50, Andrew Church ha scritto:
<blockquote cite="mid:4c1a0c17.73216@msgid.achurch.org" type="cite">
<blockquote type="cite">
<pre wrap="">I don't understand the strange effect that is present on the game (see
my second screenshot). It seems like there is a "layer" on top of the
game screen that avoid to show the game..
</pre>
</blockquote>
<pre wrap="">
There are some "overlay" layers used for things like fadeouts and the
"red-out" effect when Naija is low on health. It's always possible that
your GL implementation isn't processing alpha correctly for those quads.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Beyond that, you'll probably have to dive into the actual rendering code
and insert some test GL calls to locate the problem.
</pre>
</blockquote>
<pre wrap="">But where? i'm trying to follow the flow that starts to ::addTexture but
is not so simply..
</pre>
</blockquote>
<pre wrap="">
The basic rendering flow goes like this:
Core::render() { // Called from main loop
for (r = each render layer) { // See "enum Layers" in DSQ.h
for (pass = each pass in r) { // Some layers have multiple passes
for (robj = each RenderObject in r) {
robj->render() { // May be overridden, e.g. by Quad
if (this RenderObject is visible) {
this->onRender(); // Virtual method for actual rendering
}
}
}
}
}
}
Most RenderObjects are also Quads, so you may want to drop some debugging
code into Quad::onRender() and see what's going on. You could also try
disabling specific layers in Core::render() -- after this line:
int i = renderObjectLayerOrder[c];
add something like
if (i == 67) continue; // 67 == LR_OVERLAY (count lines from LR_ZERO)
to disable a layer and see how that changes the output.
--Andrew Church
<a class="moz-txt-link-abbreviated" href="mailto:achurch@achurch.org">achurch@achurch.org</a>
<a class="moz-txt-link-freetext" href="http://achurch.org/">http://achurch.org/</a>
_______________________________________________
aquaria mailing list
<a class="moz-txt-link-abbreviated" href="mailto:aquaria@icculus.org">aquaria@icculus.org</a>
<a class="moz-txt-link-freetext" href="http://icculus.org/mailman/listinfo/aquaria">http://icculus.org/mailman/listinfo/aquaria</a>
__________ Informazione NOD32 4812 (20100128) __________
Questo messaggio è stato controllato dal Sistema Antivirus NOD32
<a class="moz-txt-link-freetext" href="http://www.nod32.it">http://www.nod32.it</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta name="GENERATOR" content="Microsoft Visual Studio 6.0">
<title></title>
<p><font size="4"><strong>Andrea Palmatè</strong><br>
<font face="Times"><a href="http://www.amigasoft.net">http://www.amigasoft.net</a></font></font></p>
</div>
</body>
</html>