Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - K24A3

Pages: 1 ... 5 6 [7] 8 9 ... 16
91
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 11:49:07 pm »
I did a file binary compare of the Jar in the project and the one you posted above, both are identical. Perhaps that Jar above is not the beta?

I'll add those extra logging lines and post the full log.

92
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 11:22:54 pm »
I'm calling MemoryHelper.compact() in onSurfaceCreated to accurately measure the memory usage before and after loading the 3D objects, so maybe you are right, the GC may be causing problems in the few milliseconds the frame buffer is disposed and recreated. I'll remove it and see if that solves the problem.

93
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 12:58:13 pm »
I tried vigorously to get it to fail on the PowerVR but it's 100% reliable  ??? I'm almost certain I've seen that texture problem on the PVR as well. However a lot of code was updated/changed recently so I'm out of ideas.

I'll test it on an Omap Tablet running Honeycomb tomorrow to see if it's an nVidia bug or perhaps a honeycomb bug (Which wouldn't surprise me since Honeycomb to Android is like Vista to Microsoft).


94
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 11:27:31 am »
I see now ok I put it in the wallpaperservice engine contructor. New log file.
I'll send the test case anyway as reference.

[attachment deleted by admin]

95
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 11:10:21 am »
I've created a test case that loses it's textures when re-choosing the wallpaper as displayed in the attachment.

I'll send the test case to you in a moment. Many thanks for helping, I've spent hours trying to get it reliable.

[attachment deleted by admin]

96
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 10:25:38 am »
Oops its on Verbose, I'll do it again.

Edit: new log attached. Not much difference though.

[attachment deleted by admin]

97
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 10:00:31 am »
Ok I installed the new Jar and the latest GLWallpaperService and added my own logging when the renderer calls are made.

The attached log is when I have the wallpaper currently running fine in the background, then go into the wallpaper picker and choose my wallpaper again. When the wallpaper appears in the wallpaper picker screen there are no textures and every 3D object is a solid color.

When I click 'Set Wallpaper', the wallpaper is working perfectly again on the homescreen.

[attachment deleted by admin]

98
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: February 01, 2012, 03:47:44 am »
Ok I'll try that jar later on and post the logs.

The GLWalpaperService stops the OpenGL rendering pump when onPause is called so I don't know why my onDrawFrame function is called while the framebuffer is being re-created. It crashes with the clear framebuffer function as well sometimes so it seems to be a timing issue, but I'm not using multiple threads. Anyway we'll see what the logs tell us.

99
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: January 31, 2012, 02:50:00 pm »
I'm using 1.x. It seems that somehow two instances of the wallpaper are causing a conflict. Perhaps jPCT is identifying things based on the package name?

It's getting late here so I'll get onto it tomorrow. cheers.

100
Bugs / Re: Maybe a bug? Blank screen after Home button pressed
« on: January 31, 2012, 02:10:38 pm »
I have a similar problem in my Wallpaper.

I was getting intermittent crashes when going in and out of the wallpaper settings. But the wallpaper was still running in the background. Objects would intermittently disappear and reappear.

So as suggested in this thread to re-create the GLViewSurface, I added this to onResume() in my WallpaperService class:

Code: [Select]
if (renderer != null)
{
renderer.release();
renderer = null;

// New renderer
renderer = new WallpaperRenderer(getApplicationContext());
//setRenderer(renderer); // Causes crash, "setRenderer is already set"
//setRenderMode(RENDERMODE_CONTINUOUSLY);
}

..which basically re-creates my WallpaperRenderer class, which implements GLSurfaceView.Renderer.

Now that actually fixed the problem on my Gingerbread phone completely, but on my HoneyComb tablet I'm now seeing a texture problem.

If I have some other wallpaper running, then go to Settings->Wallpaper->[select my wallpaper], everything is fine.

But if I have my own wallpaper running in the background and then go to Settings->Wallpaper->[select my wallpaper], all textures are missing in the wallpaper preview screen. I still see the objects but they are blank objects with no texture. But if I press "Set Wallpaper", everything is fine and the wallpaper gets all its textures back. Then if I go back into the wallpaper selection screen, I get a crash (see below), but the wallpaper is still running behind the error.

02-01 00:02:23.670: E/AndroidRuntime(13380): FATAL EXCEPTION: GLThread 10
02-01 00:02:23.670: E/AndroidRuntime(13380): java.lang.NullPointerException
02-01 00:02:23.670: E/AndroidRuntime(13380):    at com.threed.jpct.World.draw(World.java:1333)
02-01 00:02:23.670: E/AndroidRuntime(13380):    at com.threed.jpct.World.draw(World.java:1135)


01-31 23:44:32.060: I/jPCT-AE(13336): Visibility lists disposed!
01-31 23:44:32.060: I/jPCT-AE(13336): All texture data unloaded from gpu!
01-31 23:44:32.060: I/jPCT-AE(13336): Disposing VBOs!
01-31 23:44:32.060: I/jPCT-AE(13336): Renderer disposed!
01-31 23:44:32.060: I/jPCT-AE(13336): Static references cleared...
01-31 23:44:32.060: I/jPCT-AE(13336): OpenGL vendor:     NVIDIA Corporation
...and the rest of it..

and then a huge amount of:
01-31 23:44:32.480: I/jPCT-AE(13336): [ 1328013872491 ] - WARNING: OpenGL context has changed...trying to recover...
(I was seeing this earlier as well)

I tried to use temp.keepPixelData(true) on each texture, but that made no difference.
I have a static class that saves the instance of my wallpaper.java class so I'm not reloading all the textures and objects when onSurfaceCreated is called.

I'm using Robert Green's GLWallpaperService btw.
If someone has a working wallpaper using GLWallpaperService, can you please send me the WallpaperService.java file and WallpaperRender.java file?

101
Support / Re: Billboard rotation
« on: January 31, 2012, 01:49:57 am »
Will do, thanks.

102
Support / Billboard rotation
« on: January 30, 2012, 01:11:12 pm »
Is there a way to rotate a billboarded Object3D on it's Z Axis?

I have a textured plane that has billboarding enabled and would like to rotate it clockwise as if you were looking at a fan spinning from the front.

103
Support / Re: Is this correct behaviour for jpct-ae?
« on: January 30, 2012, 02:46:45 am »
You can either enable dithering to smooth out the banding, or use 32bit mode which may impact performance on some devices. 32bit works fine in wallpapers.

104
Projects / Re: Thinking about some RPG..Android version.
« on: January 29, 2012, 02:49:52 pm »
Glad to help.

Was blaming blender for a second there, which is not a rare occurrence :p

105
Projects / Re: Thinking about some RPG..Android version.
« on: January 29, 2012, 01:49:36 pm »
That explains it, I have mipmapping turned off.

Attached is the modified tree with the offset well away from the leaves.. a good 5-6 pixels.

If still no good then send me the tree you were using before and I'll only modify the fork and lower leaves. Unless you are happy with your current tree.

Edit: would be nice if I actually attached the file  :P

[attachment deleted by admin]

Pages: 1 ... 5 6 [7] 8 9 ... 16