Does Tegra 2 support MSAA? - Atrix 4G Q&A, Help & Troubleshooting

Recently I have been trying to determine whether the atrix supports anti-aliasing in 3d applications. It seems that it does not, as I have yet to see it used in various apps. Also, the chainfire 3d driver says "MSAA not supported by your gpu" - so it seems like it does not. However, in the initial demo videos (before the atrix was released) of both NFS: Shift and Epic Citadel have antialiasing. Also in samurai II the graphics do appear to be antialiased - so this is why I am curious:
Does the atrix support antialiasing?

Tegra 2 doesn’t support MSAA. Apparently you can only use coverage sampling anti-aliasing (CSAA).

Huh, very interesting. CSAA is nvidia's sort of optimized version of MSAA, available through propriety APIs I assume? I am thinking that there is probably no way to make existing apps use CSAA - but is that true? It would be really cool to make an intermediary driver (something like ChainFire 3d) which would let apps utilize CSAA when they would normally on other devices be using MSAA - that would probably involve intercepting API calls and converting them...
Maybe it would be possible to make a plugin for chainfire 3d that would do that - it would be really cool to have tegras built in 5x CSAA work with any app!
Ideas anyone?
Sent from my MB860 using xda -developers app

Noticed that this got moved: my apologies mod for the wrong section - thank you!
Does anyone have any thoughts on a cf3d plugin? When ChainFire returns I intend to ask him if it is a conceivable idea or not.

Related

Developing 3D using the 3D Driver from ATI (for topaz)

Hi,
hopefully I'm in the right category .. I've downloaded the ATI 3D Driver for the Topaz which really made a big improvement with the Lights.exe that is added to the post for testing... Looking at the message boxes that popup at application start it seems that the new driver really enables hardware acceleration on the device.
Then I created another test application using Qt. First I compiled the "raycasting" demo that was shipped with Qt (now use of OpenGL). It runs at ~11 FPS. Then I changed the sources to use a QtGLWidget for drawing (same App but with use of OpenGL). As it runs with only ~6 FPS it seems to not using the hardware acceleration feature of the device. But what's wrong with the app?
Does the ATI 3D driver just adds hardware acceleration for apps created with use of Microsofts D3D?
Or have I used the wrong libs for linking the Qt sources against so it doesn't use the correct driver on the device?
How do I have to create a application that uses the hardware acceleration on the device? (Use of M$ D3D or OpenGL, which libraries to link against ..)
Greetings BenPA

3d Software Development

Heho
isn't there a community for software development for the evo 3d?
I`ve downloaded the SDK and got the 3DS Examples running well
using eclipse and my shooteru. I would like to programm a small
opengl 3d menu using min3d Framework. (see attachment)
Now i would like to use the code of the s3d demos to display this
menu in 3d, but i wasnt able to use the code for min3d renderer.
So i hoped there is a community for software development for the evo 3d
but don't seem to be.
Any ideas?

[Q] Is there an app to use the PS3 controller yet? Or even the WII mote? Using Sense!

Hi all,
I've just been with my friend in work when we spotted the PS3 controller for android phones app, and so we downloaded the compatibility check, his passed (galaxy Nexus)
Mine Failed EVO 3D running sense
I know there was a problem withe the bluetooth stack within sense UI, but surely someone must have broken through this barrier and got it to work on our beloved androids running Sense UI.
Apparently there was some talk about the wiimote being worked on for Sense phones, but i've not been able to see it nor have i read much on google, try searching "Sense UI bluetooth controller" and you'll find a tonne of sites telling you how it DOENS'T work on sense ui not good.
Any info, (hopefully good news) would be nice.
Cheers
Short of porting the AOSP stack to sense, I don't think it will be possible.
Sent from my PG86100 using Tapatalk
Where does that bluetoothbstack reside? Surely there must be a way to extract it, i read that its only missing a protocol, hid its called, the guys who created cyanogenmod would probably be the best people for this. Gaming on android is going to take off, hdmi connection and controller support, htc needs to get on the bandwagon.

Ubuntu Touch Apps using 3D acceleration?

Are there any apps that use 3D acceleration? I can't seem to find one. I pointed the browser to a WebGL page (Randelhofers Rubiks Cube) yesterday and it worked, so the platform is definitely capable of doing 3D. And Qt Quick supports 3D too.
johannesburgel said:
Are there any apps that use 3D acceleration? I can't seem to find one. I pointed the browser to a WebGL page (Randelhofers Rubiks Cube) yesterday and it worked, so the platform is definitely capable of doing 3D. And Qt Quick supports 3D too.
Click to expand...
Click to collapse
I haven't seen any 3d app yet. Should be possible though.

[APP][2014.12.08] TVHZ

This app allows you to switch the hertz of your display. This is a tool for advanced users, please read this entire description. Hopefully this app will be obsolete sooner rather than later.
If you have a compatible TV or monitor, you may want to view specific content on a different hz. Apps can actually switch the hz used by your device. This feature is new to Android, and thus very few apps support it yet, which is the main reason an app like this one can come in handy.
Unfortunately, at the time of this writing, even if developers added this functionality to their apps (devs: check preferredRefreshRate in WindowManager.LayoutParams), it may not work right or at all. There are several issues with Google's current implementation, as it exists on the Nexus Player, firmware LRX21V:
- The available modes appear to only be detected on Android TV boot. This means your TV or receiver needs to be turned on and switched to the correct input before booting the Android TV device, or not all the modes your TV supports will be recognized.
- Switching hz may break audio. This app provides an option to fix that, but that does require your device to be rooted. Note that this may be both Android TV device as well TV dependent - your setup may not display this issue.
- Switching hz may randomly reboot the device
- The Android API lies. It'll happily report the current refresh rate to be X hz while it is actually Y hz, which may cause timing issues for video apps that actually take refresh rate into account.
- There is no hz override in display settings
So, until these things are fixed Google-side - and it would actually start to make sense for developers to include the functionality in their apps - at least you can play around with this.
Note that 'forcing' a certain hz might be wording it too strong. Android is still free to ignore the setting, and if an app really wanted to, it could override it as well.
Disclaimer: works for me, provided as-is, this app has no support, the situation describe above may change at any time
Why?
I was looking at committing this feature into xbmc/kodi, so I built a quick proof-of-concept app first, as I has not used the API before. During testing I quickly noted that the API doesn't work reliably enough yet to be part of that project.
Download
Google Play (this link is pending Play cache update and Play team approval)
Gonna be a bit off-topic here, sorry about that.
I don't have a Nexus Player, but changing the external display's refresh rate was one of the features I wanted for a long time, it was the last missing thing to have a nice, smooth movie playback experience in an app like xbmc/kodi.
How device-dependent is this app? Can I use it on a N5 for instance? (or a Chromecast?) It has power to pretty much play any video file, it has an 1080p display and can send 1080p through hdmi, so a ~24 hz refresh rate for movies is all that's missing.
It's nice to see Android itself supporting this (even if it currently broken as you say).
What about the external display's modes or the external display's resolution, can they also be changed? The other problem for a good movie experience is with devices not having an exact 1080p display (like the N7 2013). Since the external display is always mirrored (and not extended), the device's 1920*1200 image will be shrunk to the TV's 1920*1080 screen leaving black bars on the sides which really sucks. I've seen some root-required hacks for the N7 2013 to force a standard 1080p resolution, but that's not a real solution... It would be nice to have these sorted out, because until that, even a Raspberry Pi provides a way superior movie-experience than pretty much any Android-powered stuff...
Will this work on the ADT-1?
What about 120Hz TVs?
I dont see 120Hz in the selection is that because of some limitation?
scorpeeon said:
Gonna be a bit off-topic here, sorry about that.
I don't have a Nexus Player, but changing the external display's refresh rate was one of the features I wanted for a long time, it was the last missing thing to have a nice, smooth movie playback experience in an app like xbmc/kodi.
How device-dependent is this app? Can I use it on a N5 for instance? (or a Chromecast?) It has power to pretty much play any video file, it has an 1080p display and can send 1080p through hdmi, so a ~24 hz refresh rate for movies is all that's missing.
It's nice to see Android itself supporting this (even if it currently broken as you say).
What about the external display's modes or the external display's resolution, can they also be changed? The other problem for a good movie experience is with devices not having an exact 1080p display (like the N7 2013). Since the external display is always mirrored (and not extended), the device's 1920*1200 image will be shrunk to the TV's 1920*1080 screen leaving black bars on the sides which really sucks. I've seen some root-required hacks for the N7 2013 to force a standard 1080p resolution, but that's not a real solution... It would be nice to have these sorted out, because until that, even a Raspberry Pi provides a way superior movie-experience than pretty much any Android-powered stuff...
Click to expand...
Click to collapse
First, this app is written only with the main display in mind. As such, it won't work for external displays as it seems you are after. It won't work on an N5 or N7 either as this incarnation of the app only has a TV interface. It won't run on a Chromecast, because that doesn't actually run Android apps. Also, I'm pretty sure the main screens of the N5 and N7 only support 60hz.
That being said, and I have never tried this myself (I really should get a mini-HDMI cable to I can play with this stuff), so take this with a big grain of salt, but from what I've seen and read, the scaling and mirroring you mention is app-based. The Android API does provide mechanisms to display content in the full resolution of the external display (since API 17), but the app requires (potentially a lot of) extra code to do this. The mirroring (and thus auto-scaling) is merely the default thing Android does when an app does not override that behavior. Quickly checking the API docs, it also appears to be possible to adjust the hz of the secondary display in the same way (since API 21). However, again, the currently active app is the one who must control this.
TVHZ uses a trick to get around the restriction of having to be the currently active app. It does not appear this trick can be used the same way to control the hz of an external screen, through the regular API. This does not necessarily mean it isn't possible (without root), it just means more investigation would be required to know for sure.
xamadeix said:
Will this work on the ADT-1?
Click to expand...
Click to collapse
I have not tried.
the_mentor said:
What about 120Hz TVs?
I dont see 120Hz in the selection is that because of some limitation?
Click to expand...
Click to collapse
No. 120hz is display panel refresh rate, not an input refresh rate. Don't worry about it
With stuff like this the rule is pretty much, if you don't know why you would change it and what you would change it to, you're probably best off with the default (unless someone specifically tells you otherwise).
Chainfire said:
First, this app is written only with the main display in mind. As such, it won't work for external displays as it seems you are after. It won't work on an N5 or N7 either as this incarnation of the app only has a TV interface. It won't run on a Chromecast, because that doesn't actually run Android apps. Also, I'm pretty sure the main screens of the N5 and N7 only support 60hz.
That being said, and I have never tried this myself (I really should get a mini-HDMI cable to I can play with this stuff), so take this with a big grain of salt, but from what I've seen and read, the scaling and mirroring you mention is app-based. The Android API does provide mechanisms to display content in the full resolution of the external display (since API 17), but the app requires (potentially a lot of) extra code to do this. The mirroring (and thus auto-scaling) is merely the default thing Android does when an app does not override that behavior. Quickly checking the API docs, it also appears to be possible to adjust the hz of the secondary display in the same way (since API 21). However, again, the currently active app is the one who must control this.
TVHZ uses a trick to get around the restriction of having to be the currently active app. It does not appear this trick can be used the same way to control the hz of an external screen, through the regular API. This does not necessarily mean it isn't possible (without root), it just means more investigation would be required to know for sure.
I have not tried.
Click to expand...
Click to collapse
This is amazing.. Will it work on a ouya do you think?
Chainfire said:
This app allows you to switch the hertz of your display. This is a tool for advanced users, please read this entire description. Hopefully this app will be obsolete sooner rather than later.
If you have a compatible TV or monitor, you may want to view specific content on a different hz. Apps can actually switch the hz used by your device. This feature is new to Android, and thus very few apps support it yet, which is the main reason an app like this one can come in handy.
Unfortunately, at the time of this writing, even if developers added this functionality to their apps (devs: check preferredRefreshRate in WindowManager.LayoutParams), it may not work right or at all. There are several issues with Google's current implementation, as it exists on the Nexus Player, firmware LRX21V:
- The available modes appear to only be detected on Android TV boot. This means your TV or receiver needs to be turned on and switched to the correct input before booting the Android TV device, or not all the modes your TV supports will be recognized.
- Switching hz may break audio. This app provides an option to fix that, but that does require your device to be rooted. Note that this may be both Android TV device as well TV dependent - your setup may not display this issue.
- Switching hz may randomly reboot the device
- The Android API lies. It'll happily report the current refresh rate to be X hz while it is actually Y hz, which may cause timing issues for video apps that actually take refresh rate into account.
- There is no hz override in display settings
So, until these things are fixed Google-side - and it would actually start to make sense for developers to include the functionality in their apps - at least you can play around with this.
Note that 'forcing' a certain hz might be wording it too strong. Android is still free to ignore the setting, and if an app really wanted to, it could override it as well.
Disclaimer: works for me, provided as-is, this app has no support, the situation describe above may change at any time
Why?
I was looking at committing this feature into xbmc/kodi, so I built a quick proof-of-concept app first, as I has not used the API before. During testing I quickly noted that the API doesn't work reliably enough yet to be part of that project.
Download
Google Play (this link is pending Play cache update and Play team approval)
Click to expand...
Click to collapse
Good job man, thanks for developing for the nexus player
Absolutely awesome!
Hopefully this will work for the Amazon Fire TV in the future too!
Chainfire said:
I was looking at committing this feature into xbmc/kodi, so I built a quick proof-of-concept app first, as I has not used the API before. During testing I quickly noted that the API doesn't work reliably enough yet to be part of that project.
Click to expand...
Click to collapse
FYI, I've also dabbled with refresh rate switching with Kodi, very WIP code (i.e. full of commented trial-and-error code ) is at https://github.com/anssih/xbmc/commits/android/refreshrate_wip (2 commits).
I also noticed the audio breaking (haven't investigated further yet), but I didn't see any reboots occurring.
If I remember correctly, this did not work on ADT-1 last I tested.
dsfdfsdfs said:
FYI, I've also dabbled with refresh rate switching with Kodi, very WIP code (i.e. full of commented trial-and-error code ) is at https://github.com/anssih/xbmc/commits/android/refreshrate_wip (2 commits).
I also noticed the audio breaking (haven't investigated further yet), but I didn't see any reboots occurring.
If I remember correctly, this did not work on ADT-1 last I tested.
Click to expand...
Click to collapse
The audio breakage occurs in device-specific code, so it may not happen on different devices. On the other hand, it may have been an oversight in the Android framework itself that many TVs will disconnect the audio channel as well when switching hz's - in essence completely severing the connection and building it up again.
Fixing the audio can be done by manually killing /system/bin/mediaserver (it is automatically restarted after a few seconds), or calling "stop media && start media". As a side effect this may actually crash apps using audio (or video) at that time, so actually doing this at the start of a video is not really an option - even if it didn't require root and wasn't device-specific.
The reboot is rare, but I've switched hz's a couple of hundred times now, and it does happen.
Glad to see someone else is looking at this though, if you put it in Kodi (when it actually works) that means I won't have to
Chainfire said:
The audio breakage occurs in device-specific code, so it may not happen on different devices. On the other hand, it may have been an oversight in the Android framework itself that many TVs will disconnect the audio channel as well when switching hz's - in essence completely severing the connection and building it up again.
Click to expand...
Click to collapse
Sorry, by "not working on ADT-1" I meant that the refresh rate switching wasn't working there.
Anyway, the HDMI audio stuff is one-way communication (except for EDID, which can't be "disconnected" in that sense), so there is no "disconnecting the audio channel" from the TV side.
Chainfire said:
Fixing the audio can be done by manually killing /system/bin/mediaserver (it is automatically restarted after a few seconds), or calling "stop media && start media". As a side effect this may actually crash apps using audio (or video) at that time, so actually doing this at the start of a video is not really an option - even if it didn't require root and wasn't device-specific.
The reboot is rare, but I've switched hz's a couple of hundred times now, and it does happen.
Glad to see someone else is looking at this though, if you put it in Kodi (when it actually works) that means I won't have to
Click to expand...
Click to collapse
Argh, and I was thinking the opposite here But yeah, I'll work on it as long as time permits.
Have you reported the audio/reboot issues to Google yet?
dsfdfsdfs said:
Sorry, by "not working on ADT-1" I meant that the refresh rate switching wasn't working there.
Click to expand...
Click to collapse
I wasn't implying it might work on any specific device, just that at least the log spam from the audio issue come from a fugu-specific driver, a different driver may behave differently, or not if it's really a framework issue. Anyway, we're knee-deep in speculation here, it matters not.
Anyway, the HDMI audio stuff is one-way communication (except for EDID, which can't be "disconnected" in that sense), so there is no "disconnecting the audio channel" from the TV side.
Click to expand...
Click to collapse
I'll admit I know nothing about these things, but if the TV cuts all power to the port, wouldn't the device 'sense' that and possibly interpret that as a disconnect?
Argh, and I was thinking the opposite here But yeah, I'll work on it as long as time permits.
Click to expand...
Click to collapse
Maybe my test videos weren't great, but I didn't think things looked noticably better at 24hz than they did at 60hz. Though admittedly that may be related to the renderer not actually knowing the display is at 24hz. It was more of an experiment for me than that I truly need it - I have some other issues to figure out with my NP that have higher priority.
Have you reported the audio/reboot issues to Google yet?
Click to expand...
Click to collapse
Nope, because I have not had the time (or will) to produce a decent error report yet.
Chainfire said:
I'll admit I know nothing about these things, but if the TV cuts all power to the port, wouldn't the device 'sense' that and possibly interpret that as a disconnect?
Click to expand...
Click to collapse
Yeah, though I'd be somewhat surprised if that happens - if the source device sees a disconnect/reconnect, it may consider the to be a "new device" and do all sorts of enumeration... but anyway, as you said, pointless to speculate really
Chainfire said:
Maybe my test videos weren't great, but I didn't think things looked noticably better at 24hz than they did at 60hz. Though admittedly that may be related to the renderer not actually knowing the display is at 24hz. It was more of an experiment for me than that I truly need it - I have some other issues to figure out with my NP that have higher priority.
Click to expand...
Click to collapse
Yeah, I too have a hard time seeing the 24/60Hz difference with most videos - not immediately sure if renderer thinking it was 60Hz could cause visible issues, though. With 25/50p European TV footage the 50/60Hz difference is more pronounced.
Chainfire said:
Nope, because I have not had the time (or will) to produce a decent error report yet.
Click to expand...
Click to collapse
OK. I'll probably make one after I've had the time to gather some more data/info.
Update?
Can anyone update me on the current status of frame rate switching for android tv, specifically within Kodi? I'm hoping by the time the Shield console comes out I will be able to playback movies at 24hz.
anyone? I've searched around and haven't been able to find if this has been officially implemented in any apps.
Chainfire said:
This app allows you to switch the hertz of your display.
Click to expand...
Click to collapse
Will your tool conflict with modes that are built in to integrated Android TVs, such as the forthcoming Sonys?
please get 24hz working on the Shield Tv
This is now finally implemented in Kodi (version 15.0 Beta 2, on Google Play, formerly XBMC). It works in at least Nexus Player and Shield TV, but should work in any Android system that supports refresh rate switching. You need to enable automatic refresh rate switching in the Kodi video settings.
I wrote the support back in December, but the problems mentioned in this thread prevented putting it in officially until now. Those issues seem to have been resolved in the Android versions released since then.
Works, somehow
The app does it job, although it seems to reset to 60Hz at reboot (even with the option set to keep at reboot).
Now, I agree, Google should set the output Hz to match the video stream at hand. Yes, it will be a short blackout, but so what!?.
Thanks for the app. I'm running it on the latest 6.0 available today.

Categories

Resources