yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] jeansmsixer:
Hi everyone,

I have a small technical problem to solve and hopefully someone knows an answer for it. Someone gave me a HTC Diamond 2 (very nice toy I think). I don’t know which hardware is exactly inside the phone but I assume it’s an ATI ImageOn 2300 which fully supports OpenGL ES 1.0 + Extension Pack (that’s what GL_EXTENSION is saying). And all of these extensions are doing fine. As everyone knows HTC is not providing a D3D driver for their phones and all other drivers I have seen are just a wrapper around OpenGL ES. So using D3D is currently not an option.

I have to write an application which requires some render-to-texture functionality in realtime and here my problems are starting to grow.

[1] glCopyTexImage2D:

I recognized that glCopyTexImage2D() is very slow. My framerate is dropping dramatically from >100 frames down to ~20 frames. Somehow this is done in software by the driver and not hardware- accelerated. glCopyTexSubImage2D() is even more slow (down to ~10 frames per second), but both functions are working. I tried to move it into a different thread, but the driver is not supporting shared contexts. Also it’s not supporting two bound contexts at the same time with two different windows and threads. So this can’t be improved or I’m doing something wrong.:mad:

[2]PBuffers:

PBuffer are working fine. But PBuffers which can be bound to a texture are not supported by OpenGL ES 1.0. And that’s what happens also on this ATI card.:mad:

[3]GL_OES_framebuffer_object:

This was my preferred choice. But framebuffers are not officially supported by the installed OpenGL driver. But the libgles_cm.dll on the HTC is exporting these functions so I tried them and recognized that they are not working correctly. Somehow the vertex pipeline is allowing only triangles in the center of the viewport. All others will be discarded. When I turn it off it renders correct. Using glDrawTexiOES() will be ignored while using framebuffers. I assume that either the current implementation of the framebuffers is just waste of some development guys or the functionality is locked in some way. :mad:

[4]D3D:

Normally D3DM is supporting to switch between different rendertargets. But we are all know the D3D problem. I tested some other D3D drivers but they are not usable. Also I can’t imagine how render-to-texture will be implemented in these drivers while it’s not working in OpenGL.

I’m wondering what TouchFlow3D is using internally, whether they are using render-to-texture or not. The only thing I know is that they are using OpenGL ES and some extensions. But Manila.exe is querying the functions of libgles_cm.dll during runtime. So I have to write a few proxy dlls first and need to hook into the system to track what they are doing. And I don’t want to spend time on this.

Does someone knows an alternative to do some render-to-texture on the ATI or knows some secrets of the libgles_cm.dll which I don’t know? There are a lot of private functions inside but can’t find some documentation about it. Also ATI and Qualcomm are not very helpful to me.

Thanks.
[Windows Mobile Development and Hacking General] heliosdev:
Maybe, glReadPixels and then glTexSubImage2D (what probably glCopyTexImage2D is doing)?

(I know that this goes two times over the graphics bus, but you never know...)

What kind of scene (number of triangles, lights, textures) are you rendering with > 100fps?
[Windows Mobile Development and Hacking General] jeansmsixer:
glReadPixels() + glTexImage2D() is even more slow than glCopyTexImage2D...

Also this can't be parallized. I thought using AHI2DATI.dll instead to do the same thing, but I don't know how to get a surface handle from a OpenGL texture id.

>>>What kind of scene?

A very simple scene yet. Only a few depth sorted + material sorted objects (via VBO) with some textures (backed lighting) on it. Textures are compressed. Currently no lighting, no skinning or other things. While the render thread is waiting for glFinish() to return, a second thread prepares the next frame. Also the rendering thread is not redrawing the entire viewport each time.
[Windows Mobile Development and Hacking General] heliosdev:
The OpenGL texture id is the handle. There's nothing more you can do with it. PBuffers or framebuffer objects are the only way I know for doing performant render to texture in OpenGL.
[Windows Mobile Development and Hacking General] jeansmsixer:
No...I mean the surface handle of the AHI2DATI library. Here you have access to the raw data of the surface. Somehow the libgles_cm.dll uses these surfaces for it own buffers and/or textures or not?! :confused:

But this is not really useful unless someone tells us whats going on inside libgles_cm.dll.

See:http://greengalaxy.wordpress.com/2009/04/18/ati-direct-access-to-hardware/
[Windows Mobile Development and Hacking General] j.edwards:
Hi jeansmsixer, I don't think there is no efficient way to do it. Have you tried eglCopyBuffers?

Aren't all textures stored in system memory? - they surely have to be because the device reports no available video mem.

Even if you get a pointer to the color buffer, it's impossible to wrap the memory in a HBITMAP to select onto a HDC and use GDI fonts for instance. (which is what I need to do).

If you do write the proxy dll like you were suggesting, can you please let me know what TF3D does for fonts? Are they textures or have they somehow mixed 3D with GDI?
[Windows Mobile Development and Hacking General] j.edwards:
Hi jeansmsixer, something else you could try is what is described here:

http://brewforums.qualcomm.com/showthread.php?t=10668

Looking on glbenchmark.com it looks like HTC devices support the extension. You should be able to get a pointer directly to the color buffer (which I presume is in normal system memory) so you could copy off pixels fairly efficiently with your own memcpy(). However, you will need to eglWaitGL() etc to ensure 3d stuff is complete before attempting to access it.

I love the irony of the only helpful information for WM opengl being found on a brew site for symbian. If WM7 is as terrible as the current mess, then I'm moving to iPhone.
[XPERIA X1 General] dillank:
I just have a quick question that I wanted to clear up, its about the difference between the X1a and X1i camera recording. Does the 24fps and 30fps have anything to do with normal video playback of other files, or does this just concern camera recording. Sorry its a newbie question but that's probably why I couldn't find in any of the other posts. Thanks
[XPERIA X1 General] Rudegar:
no it's recording only
[G1 General] CC CEO:
I tried to flash the Hero rom by partitioning my stock micro sd (the 1 that came with the phone)

...yeah i know it says not recommended but my 16gb card is being mailed and i couldnt wait.

anyway...now it will show the boot image and play the sound and then it will just be a black screen and wont go any further.

would i able to salvage this when my 16 gig card comes somehow?

could i flash back to an older rom? is the app_s folder in the ext partition going to interfere with that at all?

Please help!!!
[G1 General] Ryanmo5:
Unbelievable :eek:
[G1 General] xidominicanoix:
i would recommend to go back to your backup (you did do a backup right?)

just flash the data, system, and boot .img files back

since you're doing Hero im guessing you have the newer SPL

you might run into a roadblock trying to fastboot so if you cant get the fastboot to work then boot into recovery mode and then go into a command prompt and run the following:

this will let you access your memory card

get the HardSPL from here

copy it into your card as "update.zip"

now apply the update with ALT+S

after its done you can reboot back into the bootloader with ALT+X and typing

now you should be able to flash you backups like usual
[G1 General] CC CEO:
nope didnt make a backup...i know..

but...

i was able to format my sdcard back to its original state and i flashed google ion back on the phone. question is are there any lingering affects to the phone itself? in setting up the ext2 or anything on the stock card might i have pushed or pulled something i shouldnt have from the internal storage if i didnt create a backup??

if so. how would i fix this?
[G1 General] Dantehman:
if you Alt+W'd the phone there wont be any lingering effects,,,, its wiped and wont bother you no sunder!
[G1 General] mpeezay:
I was having the same problem as you, as I too am only using the stock 1gb sdhc that came w/ the g1.

just did searching on here and I got it up n running.

I'm thinking maybe you did like me and pushed the /app_s/ folder while the SD was mounted to your pc, this is what I am guessing was my issue.

I've come to that conclusion since I've done the push w/o mounting the SD

Also I found that I had to be in the app_s folder on my computer to push it right, at first I was pushing it and it was going into /system/sd/app_s/app_s

Here's Haykuro's original instruction's

Installation:

1. Download http://www.droiddeveloper.com/hrbuilds/app_s.zip

2. extract "app_s" into your sdcard's ext2 partition.

3. Download http://www.droiddeveloper.com/hrbuilds/hero-signed.zip

4. Place on regular sd card.

5. Reboot into recovery, wipe and flash.

6. Enjoy.

--

for step 2... make sure you are in the actual app_s folder when you do the following command and make sure the sd card is NOT mounted.

adb push app_s /system/sd/app_s

--

follow the rest of the instruction's as stated and you should be fine.

now, to get it running smoother...

follow the tutorial here...

http://xdaforums.com/showthread.php?t=521251

also within the thread there's tip's on moving the Rosie.apk along w/ widget's to internal memory, I just focused on the larger widget's, the largest being the weather one.

hope this help's.

just one noob tryna help another noob out ;-)
[G1 General] ramkt8:
please help

When i am doing the update.. i am getting this error.. .

E: Can't chown/mod /system/xbin (not such file or dir)

E: Failure at line 12: set_perm_recursive 0 2000 0755 06755 SYSTEM:xbin

installation aborted."

please help!!
[Advantage X7500, MDA Ameo Upgrading] calvorota:
Hello everyone. I was developing an pp for Athena 7500 with windows mobile 6.0 that read GPS position using windows driver so others applications, like navigator could use GPS port at the same time. The problem is now i can only get Athena 7510 and, for a problem that i don't know, i can't read gps positions using windows driver so i must lock gps port for reading them. Maybe the problem is related with the WM version so i would downgrade 7510 from WM 6.1 to 6.0. is it possible to achieve this?. Thank you for all your efforts.
[Touch Cruise 2 General] 4EST:
Hello

I'm having some USB problems:

The device seems to disconnect after a few minutes, sooner with intense usb activity (like copying files)

I tried with 2 cables, 3 computers and with both XP and linux

However 3 days ago it didn't seem to act like this, altough at the time I didn't use the device so much (I was busy exporting/importing the contacts into HTC)

I tried hard reset, didn't work

I can only think of 2 possibilities: either there is a problem with the usb driver in the device, ori there is some problem with the electrical connection somewhere on the device

So, the question is - does anyone else experience the same problem?

Thanks
[Touch Cruise 2 General] torrentonly:
I think, that device disconnects when it goes to sleep mode (my device does it). When it is on USB, it acts like it it on charger, so simply make charger sleep time longer. It is quite annoying, but only solution so far.
[Touch Cruise 2 General] 4EST:
No, it's not that, my device doesn't go to sleep when connected to a power source, anyway I tried to disable sleep mode completely and it still gets disconnected.

Interesting, the device still belives it's connected (I see the icon at the top of the screen), but the PC end is down.
[Touch Cruise 2 General] Dair:
Never had such issue. Maybe you could try to contact HTC Tech Support... But as the hard reset didn't help, I'm sorry to say, maybe you should consider a warranty claim. Might be a bad connector or something.
[Touch Cruise 2 General] odin_g:
Ups sorry, i didn't read correctly the original post.
[Touch Cruise 2 General] mirko.prinz:
Maybe, it´s will be the energy-management from PC?

Look in device-manager in the properties of the USB-Port, try to disable the "Energy management". Please post the result here.

Greetings Mirko
[Touch Cruise 2 General] 4EST:
Tried that too. Same result :(
[Touch Cruise 2 General] rescue01:
Hello 4EST,

please use only the origional USB cable to connect PC and XDA! You got to pull the Mini USB side as you can´t see the silver part!!!

The connetion lost when you act at the cable?

Somethimes it seems only to be connectet right.

Greetings
[Touch Cruise 2 General] 4EST:
Rescue01, I used the original cable, the problem is exactly the same.

Here is an update:

I sent the device for reparis to HTC. The device came back "reflashed", but the problem still pesisted from the first power-up. In other words, they fixed nothing, didn't even bother to check if it worked right

I sent the device back again for repairs, very angry, talking to the call center. This time they opened the device (I can see it on the screws), did something to it, then reflashed the device again.

And it worked perfectly, with all the cables and the computers I tested before........for a while....... Because after ~4-5 days of usage the problem started to reappear more and more.

Now, as I just tested, the USB gets disconnected after only 5sec of reading from the device. Sometimes it lasts longer, like 2 min

So my opinion is that there is an electric problem, I would guess with the USB connector

Unfortunately for me, the service center even if they fixed the problem last time, they did NOT checked for it before fixing it and assumed everything was ok the first time and blaimed the USB cables/computers for the problem. They said something like "sadly, after checking the electrical connections and reflashing, the device works perfectly". And it did for a few days...
[Touch Cruise 2 General] 4EST:
Here is an update:

I send the device for the 2nd time to the service center, this time calling them angry about not fixing it for the 1st time.

The device came back quickly. This time they opened the device (I can see it on the screws), and the USB connection actually WORKED!..........for a while.....

After 3-4 days it started disconnecting again, having less and less USB connection time.

Now I have to try to get it conencted, as sometimes it disconnects right after connecting

Here are some videos:

http://www.youtube.com/watch?v=pfuWrAGgCNE

http://www.youtube.com/watch?v=uZQMFyexyVI

http://www.youtube.com/watch?v=gNzH73ZdAow

http://www.youtube.com/watch?v=ziklj6Byp_g

http://www.youtube.com/watch?v=FdB5F2IuKCA
[Touch Dual, MDA Touch Plus General] leskali:
Thread to unlock:

http://xdaforums.com/showthread.php?t=395945

I followed this and i got an error

after i tried my step one, the installation stopped at 95 and an error occured... When i tried to use the error recovery, it worked and goes back to the red, green blue screen but my activesync was not able to have a green light connection..

And when i re-run the NikiCustomRUU.exe, it is not able to detect the USB connection.. pls advice
[Touch Diamond, MDA Compact IV Themes and Apps] vinodxxx:
is there Any1

who can do this on my Diamond...

i mean a software with the help of which where ever i toch on the Image

it will give a water drop effect or such effect.

yuo can call it a iwater or (D)wateR
[Touch Diamond, MDA Compact IV Themes and Apps] Freckle:
I'm not sure the diamond can handle that...
[Touch Diamond, MDA Compact IV Themes and Apps] darfri:
Well this is the point to show the main difference of apple products. They are more user experience oriented by UI. A fetish toy thingie not a business thingie
[Touch Diamond, MDA Compact IV Themes and Apps] RR33:
Well, it has been done on Diamond, I had it but I forgot the name of this app : you choose a wallpaper and when you press or slide the screen you can see water effects.
[Touch Diamond, MDA Compact IV Themes and Apps] cel15:
You mean this: http://www.youtube.com/watch?gl=IN&hl=en-GB&v=xPF8KQOpht4

Not even a diamond is needed. Even lower hardware devices can handle (like the iphone :D).

But still, here it is: Never used (it's really useless) but searched for you cause when you say the iphone can do anything and the diamond can't, you mess with my guts! :cool:.

http://xdaforums.com/showthread.php?t=417256
[Touch Diamond, MDA Compact IV Themes and Apps] Freckle:
That's like a very small version of the screenshot he provided us.

The screenshot had real water flowing.
[Touch Diamond, MDA Compact IV Themes and Apps] darfri:
If it had real water it would sure shut out the warranty
[Touch Diamond, MDA Compact IV Themes and Apps] donsalari:
hahahahaha :) :)
[Touch Diamond, MDA Compact IV Themes and Apps] emresumengen:
I really wonder why people choose to sh*t on something that they don't have... Interesting, really.

Why does anything have to be compared to iPhone? Damn thing!

---

- my name is bla bla...

- Apple can't do that man!

- whoa?
[Touch Diamond, MDA Compact IV Themes and Apps] SterAllures:
That is without a doubt the best comment ever made about the iPhone!!!!!!!!!!!! You really made my day man!
[Touch Diamond, MDA Compact IV Themes and Apps] vinodxxx:
Soit means there is no solution here for this app
[Touch Diamond, MDA Compact IV Themes and Apps] darfri:
Your sentence should be mirrored (or somethin.'): Have you thought why people don't have that "something"? Especially when you can get it almost half as expensive as the something they have. Maybe because it is sh*t.
[G1 General] Phawkes:
I was wondering what the steps are to remove this after you've done it. There seems to be alot of information on how to do the process but its hard to find info on undoing it. Any help would be greatly appreciated and I would believe this falls under the right subsection of the forum so I hope this doesn't get locked for some reason. Thanks for the help guys.
[G1 General] tehseano:
What method did you use?
[G1 General] Phawkes:
I used the method posted by MarcucMaximous04.

http://xdaforums.com/showthread.php?t=512743&highlight=remove
[Touch Pro2, Tilt 2 Windows Mobile General] F-Styla:
Hey guys,

could somebody who has already the touch pro 2 upload the wallpapers which a preinstalled on the phone? Just like that: http://xdaforums.com/showpost.php?p=3588040&postcount=83 but he missed a few.

Btw: Congratulation to you new phones ;)
[XPERIA X1 General] jathya:
Hi,

I have an Xperia X1i. It is giving some software problems.

Major problem is software getting stuck. I have to clear storage once in two weeks in average to get rid of the problem.

The following programs give errors.

Cprog.exe

Device.exe

Are these problems going to end if I upgrade the firmware? Is this a virus problem? What are the benefits of the latest version of the phone software?

Can I do it myself? Do I need special cables? Or should I do the upgrade through a SE service center? pls help.

Details of my phone are as follows.

ROM Version: 1.02.931.3

ROM date: 08/29/08

Radio version: 1.06.25.29

Protocol ver. 52.43.25.24U

IMEI: 357263021692986

Software ID: 1213-6450

Software v. R1AA017

Customization ID: 1215-1832

Customization v. R15A

Cust. V : Generic_UK
[XPERIA X1 General] wazaaappp:
mmm weird... anyway if you send an e-mail to SE they'll say you to updgrade otherwise send us your device, so!!! do it... then let us know how are things going then :D
[XPERIA X1 General] quetzalquatl:
@jathya

What do you think about erasing your IMEI in your post?
[Windows Mobile Development and Hacking General] apreichner:
I'm not thinking something like my snapshots I photoshopped up would be possible, but it would be nice to have an easy-hide button for Titanium rather than going into the Today screen settings.

I guess the mockups are something I might have if I was a Microsoft 6.5 Engineer. Basically I just copied the Hide/Show Desktop Button from Windows 7, added some Arrows from the Lock Screen, and added the Lock Screen clock at the bottom.
[Windows Mobile Development and Hacking General] mike1986.:
The idea is really cool :D
[Windows Mobile Development and Hacking General] TheMorpheus:
I'd like that!!
[Windows Mobile Development and Hacking General] atoz350:
If this were the default lockscreen it would be much more original that than the iPhone S2U that Microsoft is trying to copy.

Think, if your alerts could shoot out of the arrow part and you could slide them up or down to retrieve them. To unlock the phone, just drag the arrows to the right. All with smooth animations of course. The arrow part could simply change color to let you know you have new alerts. When you tap it, the number of alerts slides out along with the individual alert slider.
[Windows Mobile Development and Hacking General] apreichner:
Thank you.

I never thought of making it a lock screen. I guess if someone were to create a whole new lock screen app like that, it would be possible to make one that was like my designs... But I am still interested in the idea of easily hiding Titanium.
[Windows Mobile Development and Hacking General] jeremy89632:
Good idea.

It looks like S2U2.
[Windows Mobile Development and Hacking General] j_mee_5:
i would love to get this on my phone if any one can develop it haha...great idea....... love it.... lets hope some one can make it...
[Windows Mobile Development and Hacking General] hskeik:
support this great idea
[Windows Mobile Development and Hacking General] danthman2000:
Looks like something that might be available on "7". But would be awesome if we could get it here and now. :D +1 for notifications linked to the appropriate panel, ie. you get an email: the email hidden tab would blink/change color/show email icon and you could slide that tab out to check it.. brilliant concept.
[Windows Mobile Development and Hacking General] apreichner:
I'll attempt to work on the notification concept a bit in some more photoshop mockups. But thank you everyone for your good feedback.
[Windows Mobile Development and Hacking General] 1loudsvt:
such a simple idea....absolutely brilliant. I would love to have this
[Windows Mobile Development and Hacking General] laocheebye:
the closest thing to this now would be s2u2 actually. just a matter of skinning it to look like titanium. and you can slide and titanium would show!!! i know not what you had in mind but hey it's the closest you can get =D
[Windows Mobile Development and Hacking General] bartas169:
i like it...but maybe make it a lock buten?? sory for my englisch:D
[Windows Mobile Development and Hacking General] pauernet:
cool idea!!
[Windows Mobile Development and Hacking General] tikusjamban:
it would be much nicer with this in touch in my phone
[Windows Mobile Development and Hacking General] flaviopac:
Nice idea! :):)
[Windows Mobile Development and Hacking General] DuChene:
very nice!

GR8 IDEA

but... mayde, why not it 3D?
[Windows Mobile Development and Hacking General] ishanISCOOOL:
Cool idea :cool:
[Windows Mobile Development and Hacking General] sonydesouza:
Yeah that is a very good idea !!!:D
[Windows Mobile Development and Hacking General] Artanis:
great Idea if someone could find a way to add page to Clock PANEL then You could just creat an exe to lock phone right?