<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 11, 2014 at 12:02 PM, Arun Sl <span dir="ltr"><<a href="mailto:arun.sl@tcs.com" target="_blank">arun.sl@tcs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif">Hello Jose,</font>
<br>
<br><font face="sans-serif">You are correct.</font>
<br><font face="sans-serif">inital frames have the call as follows:</font>
<br>
<br><font face="sans-serif">glViewport(x = 0, y = 0, width = 960,
height = 540) {this fits phone screen correctly}</font>
<br>
<br><font face="sans-serif">while at a later stage I am getting
the following calls in the same trace file.</font>
<br>
<br><font face="sans-serif">glViewport(x = 0, y = 0, width = 1366,
height = 768) {this gives partial visual of an enlarged image on screen}</font>
<br></blockquote><div><br></div><div>Isn't there a FBO bound when this call happens?</div><div><br></div><div>If the drawable truly has a size larger than the screen, then that's it really. If the viewport is larger than the drawable then you really should leave the viewport alone, and use vertex transformation to achieve the zooming effect.</div>
<div><br></div><div>The issue here is that ApiTrace traces GL/EGL API calls. It does not trace everything, such as windowing calls.  I'd like one day to encode the actual drawable calls in the trace (e.g., with fake calls), but it's not high on my todo list.</div>
<div><br></div><div>Jose<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><font face="sans-serif">Can I handle this situation in someway
in apitrace?</font>
<br><div class=""><font face="sans-serif"><br>
Thanks & Regards<br>
Arun S L</font>
<br>
<br>
<br>
</div><table width="100%" style="border-collapse:collapse">
<tbody><tr valign="top" height="8">
<td width="96" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" color="#5f5f5f" face="sans-serif">From:</font>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="sans-serif">José
Fonseca <<a href="mailto:jose.r.fonseca@gmail.com" target="_blank">jose.r.fonseca@gmail.com</a>></font>
</td></tr><tr valign="top" height="8">
<td width="96" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" color="#5f5f5f" face="sans-serif">To:</font>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="sans-serif">Arun
Sl <<a href="mailto:arun.sl@tcs.com" target="_blank">arun.sl@tcs.com</a>></font>
</td></tr><tr height="8">
<td width="96" valign="top" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" color="#5f5f5f" face="sans-serif">Cc:</font>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="sans-serif">Apitrace
list <<a href="mailto:apitrace@lists.freedesktop.org" target="_blank">apitrace@lists.freedesktop.org</a>></font>
</td></tr><tr valign="top" height="8">
<td width="96" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" color="#5f5f5f" face="sans-serif">Date:</font>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="sans-serif">04/11/2014
12:01 PM</font>
</td></tr><tr valign="top" height="8">
<td width="96" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" color="#5f5f5f" face="sans-serif">Subject:</font>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="sans-serif">Re:
Regarding replay going out of bounds of the screen even when replayed on
same device - eglretrace (using waffle)</font>
</td></tr><tr valign="top" height="8">
<td width="96" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" color="#5f5f5f" face="sans-serif">Sent
by:</font>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="sans-serif">"apitrace"
<<a href="mailto:apitrace-bounces@lists.freedesktop.org" target="_blank">apitrace-bounces@lists.freedesktop.org</a>></font></td></tr></tbody></table>
<br>
<hr noshade><div class="HOEnZb"><div class="h5">
<br>
<br>
<br><font size="3">eglretrace/glretrace infer the rendering size from glViewport
calls (when no FBO is bound). See </font><a href="https://github.com/apitrace/apitrace/blob/master/BUGS.markdown#retracing" target="_blank"><font size="3" color="blue"><u>https://github.com/apitrace/apitrace/blob/master/BUGS.markdown#retracing</u></font></a>
<br>
<br><font size="3">Maybe the game is using glViewport with sizes larges than
the actual screen, misleading the egl/glretrace.</font>
<br>
<br><font size="3">Jose</font>
<br><font size="3"><br>
</font>
<br><font size="3">On Fri, Apr 11, 2014 at 3:34 AM, Arun Sl <</font><a href="mailto:arun.sl@tcs.com" target="_blank"><font size="3" color="blue"><u>arun.sl@tcs.com</u></font></a><font size="3">>
wrote:</font>
<br><font size="3" face="sans-serif">Hello All,</font><font size="3"> <br>
</font><font size="3" face="sans-serif"><br>
I have tried to replay "Reign of Amira" on the same device as
I took trace using eglretrace binary and waffle library (Android 4.2.2)</font><font size="3">
<br>
</font><font size="3" face="sans-serif"><br>
The issue that I am facing is that after the initial logo of the game the
replay goes beyond the screen size. I feel the game uses some call to change
the resolution of the screen run time (this is my guess). Is this something
we have to handle in code?</font><font size="3"> <br>
</font><font size="3" face="sans-serif"><br>
If someone can give me hints appropriately in code, we can maybe improve
the replay rendering.</font><font size="3"> <br>
</font><font size="3" face="sans-serif"><br>
I was also thinking if we can use this mechanism to maybe replay games
to the screen size(irrespective of which screen size the game is traced)
/ orientation of any device.</font><font size="3"> </font><font size="3" face="sans-serif"><br>
<br>
Thanks & Regards<br>
Arun S L</font>
<br><font size="3">=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</font>
<br><font size="3"><br>
_______________________________________________<br>
apitrace mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:apitrace@lists.freedesktop.org" target="_blank"><font size="3" color="blue"><u>apitrace@lists.freedesktop.org</u></font></a><font size="3" color="blue"><u><br>
</u></font><a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank"><font size="3" color="blue"><u>http://lists.freedesktop.org/mailman/listinfo/apitrace</u></font></a><font size="3"><br>
</font>
<br><tt><font>_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org" target="_blank">apitrace@lists.freedesktop.org</a><br>
</font></tt><a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank"><tt><font>http://lists.freedesktop.org/mailman/listinfo/apitrace</font></tt></a><tt><font><br>
</font></tt>
<br>
<br></div></div><br>_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
<br></blockquote></div><br></div></div>