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

Pages: [1] 2 3
1
Support / Re: LensFlare hidding behind object
« on: February 28, 2014, 01:01:01 pm »
No errors in emulator log output   ???
in emulator work fine

curious

comment this line and works fine in htc wildfire s 

Code: [Select]
//fb.blit(cieloazul, 0, 0, 0, 0, 256, 256, fb.getWidth(), fb.getHeight(), 1000, false, null);
I have decided to remove this line.
--

is not possible to make a gradient code?

similar to css
background: -webkit-linear-gradient(#8BC0EE, #33BCEE);




2
Support / Re: LensFlare hidding behind object
« on: February 27, 2014, 05:45:07 pm »
in motorola moto g work fine

in htc wildfire s crash app

why?

3
Support / Re: LensFlare hidding behind object
« on: February 26, 2014, 10:58:00 pm »
put fixed background is the question

simple image backdrop screen

4
Support / Re: LensFlare hidding behind object
« on: February 26, 2014, 09:50:47 pm »
Maybe i forget change comments lines of LensFlares

i think other question

fixed background

for day sun, blue sky(texture gradient)
Code: [Select]
                                       world.renderScene(fb);
                                       fb.blit(this.background, 0, 0, 0, 0, 512, 256, width, height, -1, false);
world.draw(fb);
LensF.render(fb);
LensF.update(fb, world);
fb.display();


5
Support / Re: LensFlare hidding behind object
« on: February 26, 2014, 04:53:29 pm »
SOLVED!! :D
i dont undestand,
before work the other way

Here was the error

Code: [Select]
                                        world.renderScene(fb);
world.draw(fb);
LensF.render(fb);
LensF.update(fb, world);
fb.display();

6
Support / Re: LensFlare hidding behind object
« on: February 26, 2014, 04:32:59 pm »
a long time ago work in 1.24,
 
but now no work in jpct-ae 1.24


Code: [Select]
                                        fb.clear(back);

LensF.render(fb);
LensF.update(fb, world);

world.renderScene(fb);
world.draw(fb);

fb.display();


sorry, my English is not very good

7
Support / Re: LensFlare hidding behind object
« on: February 26, 2014, 04:19:28 pm »
Android 2.2

jpct-ae 1.24


8
Support / Re: LensFlare hidding behind object
« on: February 26, 2014, 03:55:55 pm »
jpct-ae 1.24 no work
jpct-ae 1.28 no work

without collision  and with collision

i don't know ???

this is my config
Code: [Select]
public MyRenderer() {
Config.maxPolysVisible = 500;
         Config.farPlane = 1500;
         Config.glTransparencyMul = 0.1f;
         Config.glTransparencyOffset = 0.1f;
         Config.useVBO=true;
         
         Texture.defaultToMipmapping(false);
         Texture.defaultTo4bpp(true);
}

There is some code example that works?

9
Support / LensFlare hidding behind object
« on: February 26, 2014, 12:44:28 pm »
The LensFlare hidding behind object
worked before, not now
why?

used jpct-ae 1.28

Code: [Select]
                        LensF=new LensFlare(sun.getPosition(), "burst", "halo1", "halo2", "halo3");
LensF.setHiding(true);
LensF.setMaximumDistance(-1f); // i have also tried that in case of distance pb ...
LensF.setTransparency(2);
LensF.setGlobalScale(1.0f);

10
Support / layout View.INVISIBLE
« on: February 19, 2014, 04:10:32 pm »
No hide joystick and label layout when show gui :-\

and
Code: [Select]
View v2 = this.findViewById(R.id.mylayout);no work

Code: [Select]
private void updateGameState() {
if (selected != -1) {
//loadSelectedLevel();
}
//showSelection();
                        //View v2 = this.findViewById(R.id.mylayout);
View v2 = (LinearLayout) findViewById(R.id.mylayout);

if (startTouch) {

showSelection();

startTouch = false;

v2.setVisibility(View.VISIBLE);

}else{
v2.setVisibility(View.INVISIBLE);


}
       ...

This is my xml
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <android.opengl.GLSurfaceView
        android:id="@+id/surface_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:visibility="visible" />

    <LinearLayout
        android:id="@+id/mylayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="horizontal"
        android:visibility="visible" >

        <LinearLayout
            android:id="@+id/mylayout2"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="horizontal" >

            <com.android.joystick.JoystickView
                android:id="@+id/joystickView"
                android:layout_width="100dip"
                android:layout_height="100dip"
                android:layout_gravity="bottom"
                android:layout_marginTop="20dip"
                android:color="#88000000" />

            <TableLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="10dip" >

                <TableRow>

                    <TextView
                        android:layout_width="50dip"
                        android:layout_height="wrap_content"
                        android:layout_gravity="bottom"
                        android:text="X" />

                    <TextView
                        android:id="@+id/TextViewX"
                        android:layout_width="100dip"
                        android:layout_height="wrap_content" />
                </TableRow>

                <TableRow>

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Y" />

                    <TextView
                        android:id="@+id/TextViewY"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content" />
                </TableRow>
            </TableLayout>
        </LinearLayout>
    </LinearLayout>

</FrameLayout>


11
Support / solved stop soundpool
« on: February 14, 2014, 01:06:50 pm »
I know isn't jpc-ae but it is helpful  :D

Add functions at class SoundManager

Code: [Select]
public synchronized int playID(int id) {
if (res == null || GameConfig.soundMul == 0) {
return 0;
}
times[id] = Ticker.getTime();
return soundPool.play(ids[id], 0.75f * GameConfig.soundMul, 0.75f * GameConfig.soundMul, 0, 0, 1);
}

public synchronized void stopID(int id) {
if (res == null || GameConfig.soundMul == 0) {
return;
}
soundPool.stop(id);

}


Code: [Select]

private int mStreamId;

//for play
mStreamId=SoundManager.getInstance().playID(SoundManager.COLLECTED);

//for stop
SoundManager.getInstance().stopID(mStreamId);


12
Support / Re: how to implement a start menu
« on: February 12, 2014, 10:09:54 pm »
i like gui Alien Runner

and understand the menu structure based in blit

typical gui
  mainmenu                 in a game
- load objects world1             -goto main menu
- load objects world2
- load objects world3
- settings
- exit
...




13
Support / Re: the source code projects links
« on: February 12, 2014, 09:38:44 pm »
Thank you :D :D

Now studing source code projects...

14
Support / the source code projects links
« on: February 12, 2014, 07:17:25 pm »
the source code projects links?

ej:Alien Runner and other proyects

   

15
Support / Re: error No free temp registers, and no hide object
« on: February 12, 2014, 05:30:54 pm »
Ok Thank you

sphere Object4 is ID=2 ::)

Pages: [1] 2 3