TeapotNativeActivity render geometry with artifacts

20 views
Skip to first unread message

Anton Gedroyts

unread,
Apr 21, 2015, 4:27:11 PM4/21/15
to andro...@googlegroups.com
Hi everyone!
I have issue with sample "TeapotNativeActivity" from ndk directory. 
1. I import this sample form ndk-r10d/samples to Eclipse.
2. Built the project and run on device (nexus 7; gen 2013) and got artifacts in appearence.
See picture: Screenshot_2015-04-21-23-42-47.png
Then I rotate my device on 90 degree and  get correct appearence. See: Screenshot_2015-04-21-23-43-17.png.

Also when I enable MSAAx4 is on the device all works fine. But when I try install it via native code using this command:
glEnable (GL_MULTISAMPLE);
this doesn't affect the result.

I'm new in NDK and don't have any idea how to fix it. I will be glad your advice.
Screenshot_2015-04-21-23-42-47.png
Screenshot_2015-04-21-23-43-17.png

Ken Turkowski

unread,
May 6, 2015, 7:30:22 PM5/6/15
to andro...@googlegroups.com
Some systems have a pad on each line in order to have a certain number of bytes or pixels per line. Perhaps if you can change the window/surface size so that it is an even number of pixels (or perhaps multiple of 4) in width to eliminate this pad?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.
<Screenshot_2015-04-21-23-42-47.png><Screenshot_2015-04-21-23-43-17.png>

Reply all
Reply to author
Forward
0 new messages