<br><br><div class="gmail_quote">On Sun, Dec 21, 2008 at 4:00 PM, Salvatore Russo <span dir="ltr">&lt;<a href="mailto:russose@gmail.com">russose@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I am synchronizing BlenderPocket with the current version of Blender and<br>
I have some questions, maybe you could help me :-)<br>
<br>
1) I would like to add the capability to rotate the screen for all<br>
devices (like mine) that do not support this feature. In this way, the<br>
user will ever be able to choose in using BlenderPocket in landscape<br>
mode or not. As Blender UI is fully OpenGL, my first idea was to play<br>
with some modelview matrices and introduce on top of the transformation<br>
matrix stack a glRotate (90, 0,0,1). It would help me a lot if someone<br>
could confirm that this approach is the right one and point me in the<br>
code where can I do it: with my first tests, I am affraid that it will<br>
not be so easy...</blockquote><div>I think there&#39;s a set of functions, that start with mywindow_, that are used most places in the code for handling window matrices. &nbsp;You could look at those. &nbsp;That&#39;s just off the top of my head though. &nbsp;You&#39;d also have to modify mouse events to rotate too, of course.&nbsp;</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
2) I am trying to optimize BlenderPocket with simple things that can<br>
have big effect on small devices, like reducing the MAXPICKBUF to 100,<br>
simplifying event queues, etc... Do you maybe have some other &quot;simple&quot;<br>
optimizations to advice me to speed up Blender on very limited devices?&nbsp;</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
3) Can someone explain me how the /release/datafiles/preview.blend file<br>
is used by Blender? I would like to understand this to try some<br>
optimisations in the material/texture previews ;)</blockquote><div>IIRC, each used layer in the file&nbsp;corresponds&nbsp;to a specific preview pane in blender.</div><div><br></div><div>It&#39;s cool your still working on this.</div>
<div>&nbsp;</div></div>Joe