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 - lawless_c

Pages: [1] 2 3 ... 7
Support / Re: NPOTexture from bitmap
« on: February 26, 2019, 11:21:55 pm »
Thanks for that :-)

I went getting pixels as integers in the end, as able to save them and then add them to the framebuffer again using blitting.

Support / NPOTexture from bitmap
« on: February 11, 2019, 11:23:03 pm »
is it possible to create a non power of two texture from a bitmap?

I have been trying for a few days now, but NPOTexture only has one constructor, which only allows for the creation of colour textures.

And the Texture object itself replaces my NPO Bitmaps with a square black bitmap to use as a texture instead.

Projects / Re: Conways Game of Life in JPCT
« on: October 22, 2018, 12:11:26 am »
Note for anyone running this.
It starts Paused.

you have to double tap to un-pause it.

Projects / Conways Game of Life in JPCT
« on: October 21, 2018, 10:58:59 pm »
Thought this might interest people here.  :)

It's an implementation of Conways Game of Life that i'm working on, i've done the computation in the shaders itself using the textures to store the state of the world, it runs very fast  if i do say so myself  8)

For anyone interested:

Projects / Re: Ireland from space live wallpaper
« on: October 24, 2016, 02:48:04 pm »
Nothing much else really. Depending on the  time of day and glint of the sun on the water will move accross the water.
It gets dark and City lights appear at night.

You also set a static  time you want, offset it's realtime to add hours  , adjust zoom, and move it horizontally or vertically.

I'm going to have to add more options.

Projects / Ireland from space live wallpaper
« on: October 24, 2016, 01:52:57 pm »
Made this live wallpaper here:

If anyone here would like to try it here are some codes  :) , some feed back would be great so i can be sure it
works on devices i could only emulate.  For the moment it doesn't work on tablets.


Support / Re: Correctly killing an application
« on: October 08, 2016, 01:29:09 am »
I found the issue: when i load the wallpaper in preview mode it creates an instance.

If i click "Set Wallpaper" android will try to carry to over the instance to the actual background , which is where it appears as just a black empty space and hangs.

what is do is in the onDestroy() method calll System.exit(0)  , which forces a new instance to be loaded.

It works for now , but i worry it is probably a hack.

Support / Correctly killing an application
« on: October 05, 2016, 01:23:48 pm »
Is there anything JPCT specific that needs to be done when closing/killing an application.

I'm trying out doing a livewallpaper but i'm finding if the wallpaper activity has already been launched once for example in preview mode then the next time i try to launch preview mode or set it as a wallpaper the application seems to hang and i'm left with just a black background.

However if i reset my phone the wallpaper will then switch on correctly.

Support / Re: rotations in jpct
« on: October 05, 2016, 01:21:13 pm »
Figured it out, required a few PolyLines  ;D

Support / rotations in jpct
« on: October 03, 2016, 01:07:35 am »
How do functions like rotations in JPCT work for example rotateAxis? does it use Radians or a regular angle?
and does it rotate in a clockwise or anti clockwise direction?

Support / Re: sharing textures accross multiple object3d's
« on: July 07, 2016, 06:36:05 pm »
Hmm no look yet. I used settexture to switch the object texture something that is not being rendered to but it was ineffective.

It's always which ever process is done 2nd that ends up not working and remaining unprocessed.

Support / Re: sharing textures accross multiple object3d's
« on: July 06, 2016, 10:56:18 am »
Should texture replace be enough to do this?

If I'm using a textureinfo as a texture do i have to redo those to? As they seem to rely on a retrieved texture id.

Support / Re: sharing textures accross multiple object3d's
« on: July 01, 2016, 04:46:02 pm »
Will try that, going to have to work it out with a pen and paper.

Support / Re: sharing textures accross multiple object3d's
« on: July 01, 2016, 02:47:36 am »
oh darn

Support / Re: sharing textures accross multiple object3d's
« on: June 30, 2016, 09:58:55 pm »
The result of rendering objA to to TextureA is then used by objectB rendering to textureB

        texinfo   =  new TextureInfo(TextureManager.getInstance().getTextureID("TextureA"));

        texinfo.add(TextureManager.getInstance().getTextureID("TextureB"), TextureInfo.MODE_ADD);

        objectB .setTexture(texinfo);

I'm picking up TextureA with a shader in objectB

TextureA is also used by object A, maybe that's the issue?

Pages: [1] 2 3 ... 7