[Q] DisplaySetting.setStereoscopic3DFormat fails - HTC EVO 3D

I'm trying to adapt my OpenGL game to use the stereoscopic display on the EVO 3D. My game layout.xml is a GLSurfaceView inside a RelativeLayout. There are a couple of views stacked on top of the GLSurfaceView. Right after inflating the layout, I call
Code:
boolean formatResult = DisplaySetting.setStereoscopic3DFormat(
surface.getHolder().getSurface(),
DisplaySetting.STEREOSCOPIC_3D_FORMAT_SIDE_BY_SIDE);
This is the same situation as in the Stereoscopic Demo that HTC provides together with their SDK. Only in my game, formatResult=false and the screen doesn't switch. There is no logging with any hint about the failure.
Unfortunately there is preciously little documentation about preconditions for this call and HTC did not respond to my email about the problem.
Does anybody have any experience or insight about this?
And BTW, using the Real3D (LG) equivalent was no problem at all, it worked beautifully in the emulator.
TIA Guus Bloemsma

guuscb said:
surface.getHolder().getSurface(),
TIA Guus Bloemsma
Click to expand...
Click to collapse
just going out on a limb, but for holder and surface would you need to specify a range/value in the parenthesis?

No, these are just simple getters.

Well, I found the problem after all. I will post it here in case someone else encounters the same problem.
Basically you cannot switch the screen while the activity is still starting up. Originally I tried to do it from within the activity's onCreate() method. Apparently this is too early.
Now I set the 3D mode in the onSurfaceChanged() method of the GLSurfaceView's Renderer. It kind of makes sense that some necessary data structures are only then available.
Hope this helps somebody.
Cheers, Guus

guuscb said:
Well, I found the problem after all. I will post it here in case someone else encounters the same problem.
Basically you cannot switch the screen while the activity is still starting up. Originally I tried to do it from within the activity's onCreate() method. Apparently this is too early.
Now I set the 3D mode in the onSurfaceChanged() method of the GLSurfaceView's Renderer. It kind of makes sense that some necessary data structures are only then available.
Hope this helps somebody.
Cheers, Guus
Click to expand...
Click to collapse
Yea, all my 3D games start in 3D, even the Gameloft intro screen, 3D is on.
Glad you got it working. Any background info on this game?

Related

Tomorrow - Today Screen Emulator

Hi,
I'd like to introduce to everyone this simple programs. Tomorrow is an application, which can emulate PocketPC Today screen window, and have the capability for loading or launching a today screen plug-in. With Tomorrow application, you can actually preview a today plug-in, without doing the necessary installation procedures in the operating system first.
This also can give you more convenient way to launch any today plug-in temporary, or do some testing and debugging if you planning to develop your own plug-in.
You can find detailed information inside the zip file. I hope this could be useful.
cheers.
Nice looking app. Good work.
Not tested it, but I assume it works, much like a prophylactic.
V
Thanx vijay555, for the comment. By the way, this idea was born while in the making of my own plug-in. One time before I came up with this application, and testing my plug-in routine, because of my own little mistake I am forced to hard reset my device, and you know the rest of the story.
But I heard there is other way to prevent this to happen, by using the ‘safe mode’ on booting process. I don’t have any idea how this thing works but I surely joy if somebody willing to explained to me. :-D
cheers
Safe mode - just download a safe mode app. There are some free ones.
Basically they just intercept the OS parsing the Today registry keys, disabling plugins before they're launched.
It's a nice app though!
V
Many thanks for the valuable information.
Thanks again for your time!
Can you also upload the source code of your little app? Thanks.
TFGBD said:
Can you also upload the source code of your little app? Thanks.
Click to expand...
Click to collapse
hi there,
sorry for the late reply.. and Im affraid I cannot help you with that, however if you have any question about it perhaps I could give you some answer..
thats so cool..............
gadjah said:
Hi,
I'd like to introduce to everyone this simple programs. Tomorrow is an application, which can emulate PocketPC Today screen window, and have the capability for loading or launching a today screen plug-in. With Tomorrow application, you can actually preview a today plug-in, without doing the necessary installation procedures in the operating system first.
This also can give you more convenient way to launch any today plug-in temporary, or do some testing and debugging if you planning to develop your own plug-in.
You can find detailed information inside the zip file. I hope this could be useful.
cheers.
Click to expand...
Click to collapse
Can this be used like SecondToday for the HTC Touch Diamond?
Surur

"Dude Where's My Car" for WinMo 3-12-09

The other day I was at a football game where I had to park on a golf course far from the stadium and ended up wandering around for 20 minutes trying to locate the car afterward.
I knew that the iPhone had an app called "Dude, Where's My Car?" which let someone use GPS to tag a specific location and then later use Google Maps to guide them back to the GPS mark, but when I did some searching I couldn't find a WinMo version. So I made one.
This version isn't as sexy as the iPhone app, but it's free, and you can store up to 3 different locations and even name them if you'd like. When you want to locate one, you just click the respective Find button and you will be provided an arrow or compass direction (N, NW, S, SW, E, SE, W, NE) and approximate distance to your destination which will change as you continue to move.
I did some testing and got rid of whatever bugs I could find and everything seems to work. Since I find it useful to have, I wanted to pass it on to the community in case they might be interested as well.
If you find any problems with it, let me know, otherwise enjoy.
UPDATE 3
I finally got around to adding arrow guidance to accompany compass directions for finding a destination. The arrows are a bit finicky, but its partially due to the quality of the gps fix and the amount of fluctuation in the coordinates it gets. I find that the best way to work with it is to travel in one direction for a short distance steadily until a steady arrow appears. Once that happens, turn in the direction of the arrow and keep walking in the direction it had indicated until it changes to reflect the direction you turned. I.e. if you are walking straight and right arrow appears, turn right and keep walking straight until the right arrow changes to an up arrow.
I also updated the source code package for anyone interested in modifying the code. As before, I just ask that you keep its open nature going (GNU style) and if you post a new version of the software with arrows, or a better GPS interface (that uses triangulation as an option), etc. that you link the new software back to this thread and you let me know about it so I can check it out
UPDATE 2
As requested, I have attached the source code for the project developed with Visual Studio 08. It's not super clean since I put it together kind of rapidly, but it is decently commented. Anyone is welcome to modify this code and use it for your own personal development. Enjoy and let me know if you have any questions.
UPDATE
Attached a screenshot from my visual studio emulator. It should look the same as on the phone but with longer decimal values for the GPS coords.
Also attached the .cab files for the .NET framework that people were having issues with. I don't know if those will resolve the problems or not, but I developed the phone using the 3.5 compact framework. If you have that, a GPS chip on your phone, and WinMo 6 it should work for you.
Downloading, will try it and give you some feedback.
I'll try this out later. The compass feature is nice, something that nuePark doesn't have.
Thanks for pointing me to nuePark. I wish I had located it when I first did my searching, but then I wouldn't have created this. It looks like I unintentionally covered some peoples' requests for naming and multiple locations. Good times.
theres also an app called wm mini gps, or something along those lines. it will let you set a point, then navigate back to it later.
just my 2 cents
you can also do this in google maps.
The WM Mini GPS looks pretty cool. Google maps is ok, but only if you save it as a favorite. Not very good for temp stuff, and I'm not sure you can add a mark based on your current location (vs an address, which I know you can). I guess this app fuses the functionality and adds flexibility with naming and multiple spots. Thanks for pointing out both options.
bug in progam
smrtdrmmr thanx for the program but the prob is
immediately upon install my lil scroll wheel thingy (dont laugh) stop functioning normally instead of scrolling while browsing it activated the call volume function just like I had tapped the lil speaker icon....
That's really strange. It definitely didn't do that for me and I had to install/uninstall several times during the testing process. The installer is a generic project type based on the directions I got from MSDN. You might have some conflicting settings or something. Anyone else experience this?
This nice little utility works great on my Tilt. I'm gonna move this thread to Development and Hacking so it can have greater exposure for other devices.
Thanks
Tried it yesterday and it worked great!
Any way to get an arrow / graphic that works similar to a compass would, or is it just easier to have the words: SW / S...etc.
Thanks again!
I got the following error message once I tried to run it:
GParkS.exe
Exception
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Windows.Forms.TextBoxBase._SetInfo()
at _System.Windows.Forms.TextBoxBase.set_MaxLength()
at GParkS.GParkS.InitializeComponent()
at GParkS.GParkS..ctor()
at GParkS.Program.Main()
I am running a custom wm6.1 rom with netcf 3.5
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
download and text
scotcha12345 said:
Tried it yesterday and it worked great!
Any way to get an arrow / graphic that works similar to a compass would, or is it just easier to have the words: SW / S...etc.
Thanks again!
Click to expand...
Click to collapse
I thought about using an arrow that rotates around, but because the phone's orientation can change relative to the compass direction I thought it might be kind of confusing (I.e. it points left so you turn left and start walking but it keeps pointing left because it wants you to travel West and you have rotated the phone).
It would be possible for me to track the direction that someone is traveling and adjust the arrow accordingly, but again, phone orientation could vary and it's just more complicated to deal with. The compass directions are fixed so it keeps things simple and generic no matter what way you are pointing your phone.
fredcatsmommy said:
I got the following error message once I tried to run it:
GParkS.exe
Exception
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Windows.Forms.TextBoxBase._SetInfo()
at _System.Windows.Forms.TextBoxBase.set_MaxLength()
at GParkS.GParkS.InitializeComponent()
at GParkS.GParkS..ctor()
at GParkS.Program.Main()
I am running a custom wm6.1 rom with netcf 3.5
Click to expand...
Click to collapse
I haven't seen this before either so I did a little research and dug up this thread http://forum.xda-developers.com/archive/index.php/t-405749.html which then links here http://forum.xda-developers.com/showpost.php?p=2430410&postcount=390 I am not sure if this corresponds with my app or not, but you could check your registry setting and see if your problem matches the one described in the thread.
smrtdrmmr said:
I haven't seen this before either so I did a little research and dug up this thread http://forum.xda-developers.com/archive/index.php/t-405749.html which then links here http://forum.xda-developers.com/showpost.php?p=2430410&postcount=390 I am not sure if this corresponds with my app or not, but you could check your registry setting and see if your problem matches the one described in the thread.
Click to expand...
Click to collapse
will do. thanks
fredcatsmommy said:
will do. thanks
Click to expand...
Click to collapse
that wasn't the problem; my registry was fine.
doesn`t work for me too. I have net fram 3.5 and i get a window with a german text, somthing like: there is a error that can`t be displayed because i have not installed "NETCFv35Messages.DE.wm.cab" ?
I press okay, the app started and i first tried to change for miles to kilometers, now the app crashes completly with a unexpected error (no luck today)
Hope this helps you finding the Bugs.
smrtdrmmr said:
The other day I was at a football game where I had to park on a golf course far from the stadium and ended up wandering around for 20 minutes trying to locate the car afterward.
Click to expand...
Click to collapse
Parking at the Rose Bowl sucks, huh. You get used to it after a few trips. Now I just need a phone with gps
Any hope of getting some screen shots of this?

HTC Fetch

These look like they would be fun to have:
http://www.htc.com/www/accessories/htc-fetch/
If they start approaching US$25, I'll probably grab one.
ive got one. its a nifty little gadget.
marctronixx said:
ive got one. its a nifty little gadget.
Click to expand...
Click to collapse
Mine arrived from Best Buy today. Does anyone know if there's a way to keep the proximity functionality without having the notification always show in the notification bar? I went to app settings, and it's not allowing me to disable it.
in the stock config, the icon is there when activated, just like the nfc icon.
marctronixx said:
ive got one. its a nifty little gadget.
Click to expand...
Click to collapse
marctronixx, I think I recognize you from a few previous phone forums. :good:
This device sounds like it wold be an ideal 'Trusted Device' along the lines of the Moto-X implementation where the phone lowers its security barriers when paired with a specific Bluetooth device. I've even suggested as much to HTC.
I'm wondering... Have you tried it with any of the myriad of tasker-like apps out there to try to replicate the feature?
hey!
ive only used it as directed, but if you pose a scenario i can experiment with, perhaps i can help you answer your question?
@marctronixx
Big apologies for long delay.
Here is a scenario... There is an app called Pebble Locker that although designed for a Pebble watch, allows any BT device to act as a trusted connection and automatically disables PIN lock. If no Pebble or other trusted device is conected, PIN lock returns. (Unfortunately it doesn't work with pattern lock or fingerprint scan). The idea is that if you have a separate device near the phone, it lowers the barrier. If you leave the device, the barrier rises again. I'm hoping the Fetch would work for that as it would almost always be in my pocket or nearby.
Of course, it would be better if it was something built in to HTC devices. Some time ago I stumbled across their SDK and it seems to be pretty powerful but I'm not a programmer so...
-Separate note: I've seen some discussions that the KitKat update on the HTC One's breaks Fetch. Not too many confirmations, but no denials either.
Hello! I have 2 Fetchs. One for the One Max and One for the One m7. My Fetch works great with One m7 on Kitkat.
Cannot find the discussions... I´m curious
HelloBoy26 said:
Hello! I have 2 Fetchs. One for the One Max and One for the One m7. My Fetch works great with One m7 on Kitkat.
Cannot find the discussions... I´m curious
Click to expand...
Click to collapse
Glad to hear it. I found a couple of places where two or three people reported problems.
http://androidandme.com/2014/02/news/sprint-htc-one-android-4-4-2-update-available-for-manual-pull/
http://htcsource.com/2014/02/sprint-releases-htc-one-android-4-4-2-update/
Just search 'fetch' within the threads. I found them today by Googling 'HTC Fetch KitKat not working'
@Faxman, thank you. No Problems here. Fetch and Kitkat does the job. Pi pi pi pi pi pi pi pi
Looks like Best Buy US is starting to sell the Fetch for $29. Looks like I'll be owning one soon.
I got my Fetch from BestBuy (see above) and it works as advertised. Only 75% battery charge out of the box.
It indeed showed up as a Bluetooth device in Pebble Locker (see farther above) so I am able to set the phone to remain unlocked while in range of the Fetch and PIN lock if not.
Now, for all you actual developers out there, here's a link to the SDK for the Fetch. Let the fun begin.
I installed the Sprint OTA KitKat update yesterday and the fetch continues to work... sort of. I've found that if I turn the fetch off I have to go in and find it again and pair again.
I also noticed and downloaded the HTC Fetch app in the app store.
It has a nicer interface and apparently a couple of additional features (including the ability to connect to other BT 4 devices)
It apparently connects differently as you can run it without it being paired in regular BT settings and it doesn't retain the annoying Fetch icon in the notification area. BUT, since it no longer shows as a BT device, the Pebble Unlocker app that I use to simulate 'trusted device' doesn't see it and doesn't keep the phone unlocked.
I'm hoping there will be some interest in the developer community because I think there are some enhancements that can and should be made to either or both of the apps.
For one, I'd like to be able to disable change the tone or somehow further delay the alarms that go off when out of range. I do that far too often. However, when that feature is disabled, it also disconnects the BT connection and as above defeats the trusted device functionality mentioned above.
I mostly want to use it so my phone is secure if I'm not nearby and occasionally use the separation alarm feature if I am in a situation where one or the other might be left behind.
i have not noticed any issues with fetch after the sprint 4.x update. im stock non rooted.
thanks for the heads up on a fetch app. ill go smoke it over...

3D Live Maker is now available

The 3D scanning app is now available on the Huawei App Gallery.
initial impression is it's a PITA to try & scan something.
Uses the front camera and its "interesting" trying to read the on screen instructions as your trying to scan
panman1964 said:
initial impression is it's a PITA to try & scan something.
Uses the front camera and its "interesting" trying to read the on screen instructions as your trying to scan
Click to expand...
Click to collapse
Agreed first few goes were awful, takes a while to get the hang of it. The key seems to be to keep the phone pretty still and slowly rotate the object , easier said than done though. Took about 10 goes to get something semi decent and then half its head was missing!
I first tried with a doll and it turned out just fine. I then wanted to try with other stuffs but it didn't turn out so well.. Also I noticed that my hand too gets modeled along with stuffs other than doll, like a well decorated chinaware... Why hand?
If this software is well tweaked then it's going to be a mega hit coz AI will, or I hope it will get better at, adding lighting and shadow info into the ARed model. Lots of scope Huawei guys, just enhance them and don't stuff in kiddo games into your future updates.
Can some of you guys post screenshots for those of us who don't have the phone?
Is it possible to post apk?
Got an article with screenshot
https://www.miscw.com/huawei-mate-20-pro-3d-scanning-camera-3d-live-maker-is-now-available-17752.html
Some samples lol
i would really need it to scan faces. it does not want to start
any ideas?
thank you
You can create a new horror looking toy using this app
I am getting frustrated with the 3D thing, it is capturing my hand as well (while I am trying to rotate the model to clear blue spots), besides the image is not highly detailed, specially of those of sculptures n figurines. Is the AI programmed to consider only fluffy dolls?
Anyone have the apk so I can try it on the Mate 20 X? Can't find it in the Huawei section
Here you can get the APK https://mega.nz/#!sfoRUIhC!GGwYBh2I6f6Ohj0O_Dbcspvj1k1O_ZmzpaToytdByro
My app uses the front-cam instead of the rear-one, without any UI to switch. Pretty useless.
filipferris said:
My app uses the front-cam instead of the rear-one, without any UI to switch. Pretty useless.
Click to expand...
Click to collapse
That's how it's supposed to work
filipferris said:
My app uses the front-cam instead of the rear-one, without any UI to switch. Pretty useless.
Click to expand...
Click to collapse
The scanning feature can't work on the rear camera, it's able to scan in detailed 3D by using this device's dot projection system. Only one other Android phone has a 3D dot projection system, the Xiaomi Mi 8 Pro. This is the first time it's been utilized for something else than face recognition.
Anyone know what format the 3D image is stored as?
Looking forward to getting my Huawei 20 Pro this weekend to try this!
I've played with the app last night and managed to scan a few objects in suboptimal light conditions.
It worked well with soft toys but I got poor results with hard objects (model cars).
The 3D objects are stored as OBJ files and can be shared in GLB File Format.
techops said:
Here you can get the APK https://mega.nz/#!sfoRUIhC!GGwYBh2I6f6Ohj0O_Dbcspvj1k1O_ZmzpaToytdByro
Click to expand...
Click to collapse
Hi,
It keeps hanging at 57%...
Will this work with the Mate 20 X, as the Cameras are the same specs.
I tired and it looked like I wasn't able to add anything with the + on the app. It just kept flashing

Help with Magic Info/Tizen app for TV Monitor Touch

I have a very simple problem that i need to resolve.
We have a magic info monitor installed at a point of sale, which is meant to display a website we developed solely for this monitor touch. However the website needs authentication to access it, and we need a way to keep the device logged in.
I was thinking that maybe a simple Tizen "App" could work that is installed on the Monitor and just needs to be opened. However I have no idea HOW to do this. Does anyone have any suggestions or ideas how to resolve this?
any support GREATLY appreciated.

Categories

Resources