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
1
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.

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


https://play.google.com/store/apps/details?id=com.lawless.satellite.ireland&hl=en_GB

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.

7WWMEFMH8R75R1LQGZMJH61
EY79EDFPJTNQQ6P5HYLMBNQ
JSKSR7WYTNZSHQ3KYBKZ8CU
RE2Z9C4BPMGSF3N0L0CGXZK
781T6KTPLUR9GYH3TQW3LES
H4S168EZPCKAP01PH4RBFK1
B53NMF7NXVPFD9AR4H8N20N
3TVYACQRNNBKQ49FD9GZDTC
L7E78PDFQCQ6UGLGU7GBHC7
DR0C7ERF3N26PXC70CY9NH8
J6531LXTMYARF9EHCK0QM91
PAYEJ2PZ5MDAEX0JLEGK1A5
JHGLH14SA6R5EC3HVS8QP7K
E7N4SA6F8HGV15WSXGDV7SV
7EHMC2VT4C53HGFM7ZC2GRE
58G2HC0TTZX2LU7WK68TCW1
S52D6J9AJ4WEAZ3HZDAM42S
2LQGGLVWJ9U4J0SVRNTJ6AC
J6GVU02DQQP6RRC10SM8702
9D9B2BW5EQADR8XCEMFLDH3
H2L7XW6M2SAULEXJ64JCNKD
1K6NVXLQ8UQGJL8SVWZH4D9
L54E1XK9RMACMPVUT1Y2N7X
B86K1LAPYEBSB57U23LALJR

3
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.

4
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.

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

6
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?

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

8
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.

9
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.

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

11
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?

12
Support / Re: sharing textures accross multiple object3d's
« on: June 30, 2016, 08:22:12 pm »
yeah should be two. Set it in the manifest and  set in the config on startup.

13
Support / sharing textures accross multiple object3d's
« on: June 30, 2016, 05:45:49 pm »
Are there any delays or locks in sending a framebuffer image to texture?

I'm trying to reuse the same texture across two object3d's , the texture is shared to both via Two texture info's

When i run this however , textureA isn't applied to objectB as it should be. Is it possible there is delay in the first render that locks  the texture? I found that if i reversed the order
i ran into the same issue but with the other object3d.


    fb.setRenderTarget(TextureA);
    objectA.setVisibility(true);
    fb.clear();
    displayWorld.renderScene(fb);
    displayWorld.draw(fb);
    fb.display();
    objectA.setVisibility(false);

    fb.setRenderTarget(TextureB);
    objectB.setVisibility(true);
    fb.clear();
    displayWorld.renderScene(fb);
    displayWorld.draw(fb);
    fb.display();
    objectB.setVisibility(false);

14
Support / Re: Texture switching
« on: June 20, 2016, 01:37:11 pm »
I'm an idiot  ;D .

I was using the texture swapping as i wanted to avoid writing to a texture while simultaneously reading from it... completely unnecessary as the frame-buffer does the drawing first then outputs the result to the texture..

swapping them was also a very slow operation

15
Support / Re: Texture switching
« on: June 17, 2016, 02:23:21 am »
 
Would something like this work? to swap between two textures every time the function is called?

<code>
  private void swapTexture()
    {

        Temp = texture;
        texture=texture2;
        texture2=Temp;
        tm.replaceTexture("my_little_texture", texture2);
    }

</code>

Pages: [1] 2 3 ... 7