yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
V-sync problem seem to be a driver issue, hopefully fixed with new official update.

About filtering the g-sensor input, I did try some simple methods, but didn't improve much. Can anyone suggest an effective algorithm?
[Touch Diamond, MDA Compact IV Themes and Apps] Ximoon:
Too bad for the vsynch, let's hope I'll be improved.

For filtering, you can try something like:

Filtered_Sample[t] = A*Raw_Sample[t] + B*Filtered_Sample[t-1]

With A+B = 1. Can't give you values, since it depends on the sampling period, but great A will lead to fast but noisy sampling, and great B will end laggy but smooth. Just try values such as 0.9+0.1, 0.99+0.01, etc... Hope that'll help !
[Touch Diamond, MDA Compact IV Themes and Apps] TDO:
Try it with the omnia drivers.

For me it looks like they have vsync enabled (but they are a lot slower)

TDO
[Touch Diamond, MDA Compact IV Themes and Apps] Koush:
namespace Microsoft.WindowsMobile.DirectX.Direct3D

{

public enum SwapEffect

{

Discard = 1,

Flip = 2,

Copy = 3,

CopyVSync = 4,

}

}

I disassembled your code. It looks like you are using SwapEffect.Discard. Can you try using SwapEffect.CopyVSync?
[Touch Diamond, MDA Compact IV Themes and Apps] htcplussony:
Hi all. I got a dumb question. Does the Diamond/Touch pro have an hardware 3d accelerator thats actually enabled?
[Touch Diamond, MDA Compact IV Themes and Apps] gerDiamond:
This is great, and I think a lot of us would like to look at your code (and we do not all have Koushik's skills at disassembling :D)

Now I'm wondering whether I should learn D3D or openGL...

Please, please :)

I'd love to have a 3D T-Rex like this one

(even one with less polygons will do ^^)
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Thanks, but it doesn't seem to make any difference :(

The sample can be found here if you want to experiment and for those who requested the code:

http://msdn.microsoft.com/en-us/library/ms181024.aspx
[Touch Diamond, MDA Compact IV Themes and Apps] Koush:
Couple things I'd also try:

Override OnPaintBackground and remove the base.OnPaintBackground call. There's no point using OnPaintBackground in GDI if D3D is painting. It can cause flickering.

Also, instead of using Device.Clear to clear the background, perhaps try using a polygonal colored/textured background? Device.Clear used to cause flickering behavior on some computer video cards. I think it has something to do with a device Clear not being a true render call, and handled as an asynchronous memset, which causes issues with making render calls immediately after the Clear (ie, part of your rendered image would get cleared). Another common workaround was to Clear the device AFTER the buffers were swapped, and not immediately before painting. The reason that works "better" is because the memset is given more time to complete before the next set of render calls are made. At least that's how it worked ~7 years ago when I was working on the Direct3D team...

I have been trying to reproduce this bug in OpenGL, and can't get it to happen anymore: my code doesn't do either of the things I mentioned.
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
I will try and see if I can get it better. You would think that those samples did it right :)

Most MSDN samples and other apps I've tried have this issue, so that's why I tend to see it as a driver problem.

And Koush, admit it, the actual reason you disassembled the code was to see if I used your sensor sdk :D
[Touch Diamond, MDA Compact IV Themes and Apps] Koush:
Haha, no, I really was just looking to see what swap effect you were using.
[Touch Diamond, MDA Compact IV Themes and Apps] hedgemonstahinz:
well done

looks interesting, will download later.
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
just letting us know?

:rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] Wolfer_CZ:
Pretty cool. Is anybody here who wants to make a pokédex? :D :D :D

But seriously, 3D tamagotchi like this would be AWESOME! :)
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Cool idea! A t-rex will look much cooler. I have worked on this today for version 2.0. Have a look at the new screenshot!
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
I noticed during development that the v-sync problem goes away if you connect the device to your computer (activesync). If I restart the device, it's back. Anyone can confirm this?
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
I cannot really confirm this. I just did the test. I think the refresh (the FPS probably) gets a bit lower so you perceive it as smoother. I think this is what happens in my device.

In any case if THAT is what happens, I don't like what we discovered.

Anyway I have two other things to note for V2.0:

1) Please smooth the sensor values... the graphic trembles even if you lay the device on a table!

2) Position of the mesh in 3D space feels wrong. You can't look the tiger in the eye when the device is face up and look the tiger from the top, then you hold the device in front of you!

3) (bonus :D) When you hold the device directly in front (and the beast is seen from the top - which I disagree as you see in #2), in fact it goes nuts, because in very small value changes in this angle you change from seeing the device looking down or up... You (or all of us) have to think of a better reaction in the device position eh?
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Yes, I noticed that the FPS got lower, but if you zoom in the model it is very obvious that the v-sync problems almost disappear.

I tried to insert a delay in the code to force a lower FPS, but that did not help as the activesync did.

#1 is fixed.

#2 and #3 is due to how the g-sensor works. If you have the device front, it doesn't output any rotation changes.
[Touch Diamond, MDA Compact IV Themes and Apps] itsallsubliminal:
i saw a hologram 3d program for the iphone, with an animated character walking...

it would be real cool if the T-rex was "on the prowl" as you rotated him and such!

btw, i'm getting the flickering too, seems like the app is SUPER sensative to the g-sensor...

this is a cool lil app tho, love it!
[Touch Diamond, MDA Compact IV Themes and Apps] Mr.Sir:
The Iphone 3d stuff was fake, it has been confirmed before.
[Touch Diamond, MDA Compact IV Themes and Apps] itsallsubliminal:
well then, can it be done on our phones? Pull off something that the iphone had to fake?
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
no - except if your model has a real compass embedded
[Touch Diamond, MDA Compact IV Themes and Apps] itsallsubliminal:
a compass is what enables a "video" or "animated" image in an app like this?
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
of course, because this is not related to g-sensor, but to device orientation on a plane
[Touch Diamond, MDA Compact IV Themes and Apps] itsallsubliminal:
oooo, now that you say that, and thinkin deeper into it, you r right... thanks for that...

oh well, this app is still great and has sooo much potential! Cant wait to see more
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Ok guys, the beast is released!

Let me know what you think!
[Touch Diamond, MDA Compact IV Themes and Apps] NikPraskaton:
Plz... set some background... :) It would be much nicer.. Ill give this new version a try and tell you my opinion for improvements..

Nikola...
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
...wow... talking about a huge jump in file size

(lucky me I have a touch pro not a diamond)
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
It is a high-poly model :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
but since we cannot zoom, it doesn't need to be, right?

btw, sensor smoothing has still way to go

I leave the device on a table I don't touch and t-rex shakes (very small shakes and slower than before, but still shakes)

you need a "dead zone" (ie. ignore changes smaller than a factor you set)
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Who said you can't zoom. Have you tried?

I think it's ok. I tried smooth it more, but that makes it lag. Same for other apps I've seen. Only way to make it perfect, is with a more accurate g-sensor.

And btw 1.77 MB isn't much on a 4000 MB device :D
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
Mine is a 8GB device (currently). :) It is a touch pro.
[Touch Diamond, MDA Compact IV Themes and Apps] hellboy1970:
Looks great! But ehh, the animals look nice, but i think you will have a lot more response if you could make one with a naked woman :-)
[Touch Diamond, MDA Compact IV Themes and Apps] kultus:
nice but lacks od fps...but worse is thin horizontal line with background colour inside of T-rex
[Touch Diamond, MDA Compact IV Themes and Apps] omarnone:
Yea naked girl with BIG boobs!!!:D
[Touch Diamond, MDA Compact IV Themes and Apps] Blob8me:
lol.... Behave Old Man..... :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] leshemnoam:
Hi, as a 3d Visualiser it would be great if i could load up my models to show clients. i work with 3d studio max so a 3ds file format import would be just what iwas looking for.

thanks
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
I can do such software for you. All by your requirements. The t-rex is from 3ds max.

But don't have the time to do it for free :)

PM if interested.
[Touch Diamond, MDA Compact IV Themes and Apps] robertGK:
it's cool,,,,,

i can try,,, Thankz,,,,,
[Touch Diamond, MDA Compact IV Themes and Apps] Koush:
You can fix your texture problem by probably setting your texture to clamp rather than wrap.
[Touch Diamond, MDA Compact IV Themes and Apps] export800:
yeah with big boobies that respond to the g-sensor.. yeah.. yeah that would be cool! hehe
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
What texture problem? I think it looks ok, especially since the texture didn't belong to this model in the first place.
[Touch Diamond, MDA Compact IV Themes and Apps] xstevex:
Can't seem to open the exe file after unzipping.... Windows gives me an error message and then closes the app. Is there another way to get to the cab file?

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Just move the exe file to the device and run.
[Touch Diamond, MDA Compact IV Themes and Apps] neil_swann80:
The 1st file (Tiger) open ok, very laggy though, didn't look 3d/holographic at all.

2nd file (T-rex) didn't work at all.

I'm running cokked ROM "ROMeOS2_v1_22_20758_291008" on a HTC Touch Pro. I'm guessing as it's a fairly up-to-date ROM, it's using a newer graphics driver?
[Touch Diamond, MDA Compact IV Themes and Apps] christian15213:
i installed the exe and can't find this thing for nothing... where does it install.
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Just move the exe from pc to any folder on device and run.
[Touch Diamond, MDA Compact IV Themes and Apps] christian15213:
I did it... something happens for a second, like it does something and it just dissapears... it is in a folder and I have tried to run it.. so this doesn't install anything?
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
No there's no installation. The exe should start right up on your phone.

I have noticed that sometimes the app starts up below the current active app. So try to first launch the file manager and then the application and if nothing happens, close the file manager and see if it pops up.
[Touch Diamond, MDA Compact IV Themes and Apps] XenoV:
Not for Touch HD

Tried version 2, doesn't seem to work on the Touch HD.

Get following error message:

3DModelViewer.exe

MissingMethodException

Kan PInvoke-DLL HTCAPI niet vinden.

bij Sensors.HTCNavSensor..ctor()

bij Microsoft.Samples.MD3DM.Meshes..ctor()

bij Microsoft.Samples.MD3DM.Meshes.Main()
[Touch Diamond, MDA Compact IV Themes and Apps] thompson187:
thats pretty cool, but naked girls are better then dinos ;)

do you can make this for us too?
[Touch Diamond, MDA Compact IV Themes and Apps] christian15213:
so there are two files to install?
[Touch Diamond, MDA Compact IV Themes and Apps] chuawa:
yes, it does not work on my Touch HD as well. This is a very useful usage especially for education. I definitely hope that work can be continued on this.
[Touch Diamond, MDA Compact IV Themes and Apps] knight900:
Tried on my touch HD as well. It didnt work too. Erro message was the same as Xenov's
[Touch Diamond, MDA Compact IV Themes and Apps] rezabakhshi:
Dear andrec,

It was cool, but there is something funny. When I run the app on my Touch Diamond, it takes time to change direction of "tiger", is it something normal or my touch is working slowly?

It's killing me! any sample on DirectX or DirectDraw which I run on my Touch runs very slowly. It seems that some kind of driver stuff is missing. any suggestion?
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
It should not be slow. Some people says it helps installing the 3d drivers by ATI. If you search this forum you will see how.
[Touch Diamond, MDA Compact IV Themes and Apps] John Ericson:
I got the same error when I tried on my Touch HD, swedish version.
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Well, that' because I haven't compiled it for Touch HD, yet.

As you can see this is the Touch Diamond forum :)
[Touch Diamond, MDA Compact IV Themes and Apps] bbonzz:
but it works ok on my hd with 3dati drivers and libgles_cl ;)
[Touch Diamond, MDA Compact IV Themes and Apps] ric69:
I've got an error too on a french cook rom :o
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Are you sure you haven't copied HTCAPI.DLL too? Because that is the file that is missing in the Touch HD.
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
It looks like you are missing some vital 3D/DirectX dll.
[Touch Diamond, MDA Compact IV Themes and Apps] bbonzz:
of course i have! also ati3d and libgles_cl are missing: i have installed the whole pack, signed it, and patched manila to use libgles_cl instead of _cm
[Touch Diamond, MDA Compact IV Themes and Apps] FrIuNs:
how i can import my own model in this app?
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
You can't. I haven't added that functionality.

Did not have time. If anyone would be willing to pay for it I could do it.
[Touch Diamond, MDA Compact IV Themes and Apps] vitolamanna:
Will it be possible to view any .dxf or .obj or .3ds objects?

If you plan on doing that..I would like to donate and support you!
[Touch Diamond, MDA Compact IV Themes and Apps] NLS:
did you notice that the last post to this thread was ONE YEAR AGO?
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
It is not likely I will update this any further, since both the phone and the programming technology is on its way out.

What phone are you using it on?
[Touch Diamond, MDA Compact IV Themes and Apps] Adroxxx:
Could someone upload the 2.0 version as a .cab file please
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Why? Just move the .exe to the device the same way as you would with a cab.
[Touch Diamond, MDA Compact IV Themes and Apps] ikonane:
I am also interested in the same thing.

.obj or .max or something like that (Autodesk 3DS Max)

Im using HTC Touch Diamond.

Thanks!!

Från sverige? ;)
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
Hej!

The t-rex was a 3DS model I converted to .x (DirectX) and loaded into the program.

However creating a software doing this for any model and automatically would be a pretty big task.
[Touch Diamond, MDA Compact IV Themes and Apps] ecselite:
thank you. i will try
[Touch Diamond, MDA Compact IV Themes and Apps] edward_andrew:
I installed your app and the ATI Driver and it works on my HTC Topaz except the accelerometer motion.I can see clearly the T-Rex from the front but I can't rotate the camera.I'm a little bit dissapointed that the t-rex X model and texture are embedded in the exe.I played too with the X model viewer source code from DirectX SDK years ago.

As far as I know the MAX scene format is not public and there are no programs capable of loading max scenes except for 3DS Max.
[Touch Diamond, MDA Compact IV Themes and Apps] andrec:
I guess HTC have changed the dll invoked for the G-sensor.

Do you want the model and texture?

You could try make an exe working for your device.

I used 3ds max with a plugin to export to .x format.
[Touch Diamond, MDA Compact IV Themes and Apps] edward_andrew:
No, I don't want the model, I want to replace the model with my own for personal use(human anatomy - 3D reconstruction from CT slices ).Without rotation/translation controls I cannot use it anyway.Of course I could install again Direct X SDK and read about compiling for Win Mobile ( I have written some Visual C++ programs for PC).

You cannot write an application to load MAX scene files as Ikonane requested.You have to export the scene/model to a well documented format as 3DS,X,ASC,OBJ,B3D etc.
[Touch Diamond, MDA Compact IV Themes and Apps] Sallo2006:
i tried it ... too nice
[Touch Diamond, MDA Compact IV Themes and Apps] edward_andrew:
Wonderful app,I fixed the G-Sensor input using some DLLs that emulate the HTC Sensor API for Samsung Omnia i8000 (Teeter for i8000).Now it works flawlessly on my HTC Topaz.
[LeEco Le 1S Questions & Answers] Homanshu:
Please make a treble supported rom for le 1s(x3)
[Touch Pro, Fuze General] Untouchab1e:
Hi!

After many years of windows mobile, ive had an iPhone (so sorry) for a month now, and im going back to WinMo (through the HTC Touch Pro) now.

However, what I loved with the iPhone is how it integrated well as an mp3 player. However, I remember when I tried to use the Touch Dual as an Mp3 player, it sucked the battery big time! (10-15 minutes of playback drained 10% of the battery at least).

Just wondering if this is still an issue with the Touch Pro? Or if mp3 playback is not such an power consuming activity any more?

Anyone here use their Touch pro's or diamonds for music regularly?

Thanks!
[Touch Pro, Fuze General] erikjonpeterson:
I use mine almost daily for biking and still have roughly 75% left after 2.5-3 hour workouts. I do turn off all data connections and am only running the HTC music player from the today screen.
[Touch Pro, Fuze General] Untouchab1e:
Thats not too bad! Definetly better than my previous experiences! Have to get a mini-jack converter though ofc. lol
[Touch Pro, Fuze General] 619619:
I use AD2P Bluetooth headset, it works very nicely

The only thing that I'm missing is the absence of Shake-Control, to changhe the current track without turning on the screen or using any keys.
[Touch Pro, Fuze General] erikjonpeterson:
Ya do need to use the mini-jack convertor. I bought the one that has the 3.5 jack and mini usb for charging. It works pretty good but sometimes briefly cutsout when I am riding hard. Wish it had the 3.5 as standard. Sounds like HTC is getting smarter with the HD.
[Touch Pro, Fuze General] Untouchab1e:
any other experiences concerning battery usage of the mp3-player?

EDIT: Ive also heard that if you have lots mp3's on the device, the touchFLO will have a tough time when trying to load it all up!
[Touch Pro, Fuze General] hitman_sam69@hotmail.com:
My MP3 setup

I just use MP and I use a2dp headphones (big DJ style Motorola ones) Sound is great and I use voice command to control what I'm listening to or the buttons on my headphones. Batter life seems fine when using mp3, but overall the battery life on my Touch Pro is pretty poor.

A2DP (stereo bluetooth) is a joy to use.
[Touch Pro, Fuze General] Farsquidge:
A true

A2DP

headset has track change controls on it...

Try the Sony DR-BT22 headset, really small and compact folding headset with good Bass quality and integral mike for call answer and pairs perfectly to the Touch Pro.
[Touch Pro, Fuze General] Untouchab1e:
Battery life on the Touch Pro is quite good considering the technical specifications! However, as I mentioned, I currently (untill I get my Touch pro tomorrow) have an iPhone, which does have a great mp3-player!

Just wondering.. It seems Touch Pro checks for all mp3 files each time you access the music player, even through touchFLO, and ive read that if you have a lot of music this will take a while and is annoying if you access your music player a lot!

Thanks!
[Touch Pro, Fuze General] Farsquidge:
It only checks for new files if any changes have been made. I have over 4Gb of music on my SD card and after the first library update, it never had to check again.

Tad better than the old manual library update you Had to do in Media player every time you changed something.
[Touch Pro, Fuze General] Untouchab1e:
So even with 4GB of music, there are no slow downs etc?

Btw, how well does music playback work when you are using your device? Does the music start chopping the moment you start using another app as well, etc? Remember my Touch Dual had some choppiness.. lol
[Touch Pro, Fuze General] Farsquidge:
Not that I've noticed. Only glitch I've ever come across was when connecting to USB for activesync (using BT headset) but this is really understandable as Async is processor heavy and needs multiple file access.

A good Equaliser would be preferred for use with BT as the standard included only works when wired is connected. There is a tweak available to fool the unit into thinking the wired HS is on but this dissappears on soft reset.

Still, overall I am quite pleased with this as battery life is better than other HTC products. Had a second Touch Pro in my office desk (evaluating them for a project) for 8 days on standby when a call came through on it!!
[Touch Pro, Fuze General] fhsieh:
The slowdown happens when you add new music to the memory card (specifically, after you disconnect "Disk Drive" mode or when you turn the device on and TF3d loads). How much of a slowdown depends on how much music you add at a time, but once it's scanned the files and updated the library database, the slowdown doesn't occur again.

Listening to mp3s in the background while using other applications is possible, but it's not perfect. As a point of reference, I've had no problems listening to music and using Opera. However if there are some extra background apps, chopping can occur. But on the bright side, it always seem to be relatively brief, and so far hasn't caused my device to lock up or crash. I haven't done any precise or extensive testing, so naturally YMMV.

+1 for the Raphael battery not being great, but the TF3d music player not using very much power.
[Touch Pro, Fuze General] theclueless:
i charge my phone during work, then i turn on music and proceed to take an hour train ride back home, check some email and continue to listen to music for a couple of hours til dinner; afterward setup new appointments and crap for the next day, then more music for hour or two, then go to sleep without charging. next day the 3 alarms ring for the full length, then the hour train ride to work with music again. 35% +/-4% remaining when i get to work. the cycle continues
[Touch Pro, Fuze General] Untouchab1e:
Thanks for your experience! Gives me great confidence in getting one! Just hoping I can find a mini-jack converter in time :)
[Touch Pro, Fuze General] theclueless:
im NOT saying the headphone came with raphael is decent in any way, but i would use it over my ipod headphone...
[Touch Pro, Fuze General] newbro:
A2DP question

Just wondering with the touch pro, does the device slow down when using A2DP? I have a hermes and whenever I use mortplayer with A2DP the device is almost non-responsive even though the music sounds great.
[Touch Pro, Fuze General] Corsa2:
Hi. Where do I find this tweek?
[Touch Pro, Fuze General] aBE-One:
I think it's actually very good - no slowdowns that I've noticed. For example listening to music with my SE HBH-DS980 A2DP-headset and browsing through RSS-feeds I can't detect any slowing down or choppiness, neither in music playback nor RSS-browser. Also I think the UI stays (almost) as responsive as ever.