Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,782 Members 38,260 Now Online
XDA Developers Android and Mobile Development Forum

[APP][25.09.08]HTC Touch Diamond VR Hologram v2.02

Tip us?
 
pauloke
Old
(Last edited by pauloke; 10th June 2009 at 10:37 AM.) Reason: Added more info
#1  
pauloke's Avatar
Senior Member - OP
Thanks Meter 0
Posts: 137
Join Date: Sep 2007
Location: Guildford
Default [APP][25.09.08]HTC Touch Diamond VR Hologram v2.02

VR Hologram very similar to the wii Head Tracking VR demo made famous on youtube.

Uses G-Sensor to track tilt and update the VR Hologram view accordingly. 3D Hologram created using Managed Direct 3D Mobile (MD3DM). Found it easier to learn than the Managered wrapper for Opengl ES.

This is my first 3D app / game and also my first windows mobile app so be gentle but your comments, recommendations and criticisms are more than welcome. Been checking out this forum for over a year now but never really contributed.



Change Log

v2.02



Control Panel Added
  • Reverse tilt direction
  • Control affect of Moving Average Smoothing
  • Control tilt distance
  • Use set sprite locations or random sprite locations
  • Choose number of random sprites (5 - 20)
  • Choose from pre-set sprite texture (thanks to the submissions on this thread)
  • Choose custom texture image from file system
    N.B. Limited allowed image size to 150kb
    certain images (haven't been able to determine why) cause the application to crash. No exception is raised by HTC's implementation of MD3DM so cannot investigate. Just restart app and texture falls back to a preloaded texture.
  • Displays Average Frames Per Second over recent frames
  • Settings saved to file and are applied once app restarted
v1.0
First Release

MD3DM Graphics
G-Sensor view tilt (smoothed using moving average)
Nav sensor zoom
Tap screen to exit

HTC Diamond Sensor SDK (Thanks Koush)

Smoothing of G-Sensor reading essential as output is definately not. Kalman filter would have been ideal but the maths involved just goes beyond me. Moving average more than sufficient though.

Hopefully if I have time this concept can be carried forward into a game using either MD3DM or Opengl ES.

This is a concept app but can also be used to show those without the Diamond it abilities

Check it out on youtube

Hope you enjoy!! Let me know of any bugs

EDIT: Default orientation of diamond for the app is laid flat due to how the G-Sensor reading are intepreted. Diamond laid flat facing up to have a view straight down.

It appears that MD3DM drivers on the diamond are not complete as setting the app to draw fullscreen causes the render not to be presented on to the screen.

Confirmed phones that this app works with are:
Touch Diamond
MDA Compact IV
Touch Pro

For the following phones please refer to: http://forum.xda-developers.com/show...&postcount=417 (Pillermann Columbus)
Touch HD
Touch Diamond 2

For those that are experiencing slow FPS e.g. 0.14fps then please try installing the ATI Drivers: http://forum.xda-developers.com/showthread.php?t=475493

By no means is this app optimized to run as quick as possible. Also the FPS is just an average FPS so gives a benchmark indication but it isn't the most accurate.

Download v2.02 Source: 4Shared
Attached Files
File Type: cab DiamondHologram v1.0.CAB - [Click for QR Code] (586.2 KB, 25708 views)
File Type: cab DiamondHologram v2.02.CAB - [Click for QR Code] (203.9 KB, 64922 views)
MDA Compact V (TD2) | MDA Compact IV (TD) | HTC Touch Dual | HTC Touch
Dutty's Topaz WM6.5 R5

Creator of: HTC Touch Diamond VR Hologram

If you like my work please DONATE
 
wontcachme
Old
(Last edited by wontcachme; 10th September 2008 at 10:26 PM.)
#2  
Member
Thanks Meter 1
Posts: 84
Join Date: Jun 2008
i have just 3 letters for this: WOW

After installing:
Does not work properly for me. The depth perspective moves. So only when the diamond lays flat on the table i see the background. Otherwise the depth moves out of the picture. This was not how it look likes on youtube

Image example added. This was with the phone laying with the right side down and the left side up.
Attached Thumbnails
Click image for larger version

Name:	Screen01.jpg
Views:	5723
Size:	59.8 KB
ID:	112205  
 
counterfitninja
Old
#3  
counterfitninja's Avatar
Senior Member
Thanks Meter 0
Posts: 252
Join Date: Jul 2008
Location: Bath
Nice work. Looks really sweet. Keep it up
 
marios96
Old
(Last edited by marios96; 10th September 2008 at 10:20 PM.)
#4  
marios96's Avatar
Senior Member
Thanks Meter 4
Posts: 324
Join Date: Sep 2007
Location: Nicosia
THANK YOU VERY MUCH!

I am testing it on my Touch Pro right now...

EDIT: Working great on my PRO! It even zooms in-out using the touch pad...!


FANTASTIC!!!
 
cremerhm
Old
#5  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Jul 2008
How do is install the sensor software?
And is it essential?

It looks nice on youtube!
 
pbv302
Old
#6  
pbv302's Avatar
Senior Member
Thanks Meter 0
Posts: 209
Join Date: Aug 2008
Awsome! Thanks daddy!
 
keko001
Old
#7  
Member
Thanks Meter 0
Posts: 84
Join Date: Aug 2008
thx look nice
 
CarpeNoctum
Old
#8  
CarpeNoctum's Avatar
Member
Thanks Meter 0
Posts: 87
Join Date: Jul 2008
Location: Greece/Belgium
It works perfectly! Thank you for sharing! Keep up the good work.
 
KukurikU
Old
#9  
KukurikU's Avatar
Senior Member
Thanks Meter 38
Posts: 1,709
Join Date: Nov 2006
Location: Rehovot
congratulations! nice app! love it!
All the desirable things in life are either illegal, expensive, fattening or married to someone else.

Samsung Note 8
Samsung Note 3
Samsung Note II
Samsung Tablet 10.1

Samsung Galaxy SIII
Samsung Galaxy SII
Samsung Galaxy SI
HTC Desire

HTC Leo aka HD2
HTC HD
HTC Diamond
HTC Trinity 3600
HTC Athena 7501
i-Mate



 
tuem
Old
(Last edited by tuem; 10th September 2008 at 10:40 PM.)
#10  
tuem's Avatar
Senior Member
Thanks Meter 0
Posts: 110
Join Date: Aug 2007
Location: Karlsruhe
niiiice!

imagine what could be done with this effect...


one little thought - i think if you made the perspective change "slower" with the tilt, it might look better, right now it seems that the perspective angle changes faster than the tilt angle.

and it would be great if it was possible to have these circles be in perspective (becoming oval) to add to the 3d effect

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...