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

Pages: 1 ... 7 8 [9] 10 11 12
121
Support / Re: How to improve the jpct lib load speed?
« on: September 26, 2014, 11:20:54 am »
Here is the log,  Loading default shaders  take long time

09-26 17:17:16.046: D/libEGL(15801): loaded /system/lib/egl/libGLES_android.so
09-26 17:17:16.066: D/libEGL(15801): loaded /system/lib/egl/libEGL_adreno200.so
09-26 17:17:16.076: D/libEGL(15801): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
09-26 17:17:16.106: D/libEGL(15801): loaded /system/lib/egl/libGLESv2_adreno200.so
09-26 17:17:16.206: D/dalvikvm(15801): GC_EXTERNAL_ALLOC freed 64K, 48% free 2813K/5379K, external 0K/0K, paused 40ms
09-26 17:17:16.236: I/jPCT-AE(15801): GL context is 1079226696
09-26 17:17:16.236: I/jPCT-AE(15801): Initializing GL20 render pipeline...
09-26 17:17:16.236: I/jPCT-AE(15801): Accessing shaders via JAR!
09-26 17:17:16.236: I/jPCT-AE(15801): Loading default shaders !
09-26 17:17:16.236: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:16.236: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:16.386: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:16.396: I/jPCT-AE(15801): Text file from InputStream loaded...2416 bytes
09-26 17:17:16.396: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:16.396: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:16.446: D/dalvikvm(15801): GC_CONCURRENT freed 169K, 46% free 3076K/5639K, external 0K/512K, paused 2ms+17ms
09-26 17:17:16.446: I/jPCT-AE(15801): Text file from InputStream loaded...4496 bytes
09-26 17:17:16.446: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:18.858: I/jPCT-AE(15801): Handles of 3: 2/36/1
09-26 17:17:18.858: I/jPCT-AE(15801): Loading default shaders (Tex0Amb)!
09-26 17:17:18.858: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:18.858: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:18.868: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:18.868: I/jPCT-AE(15801): Text file from InputStream loaded...199 bytes
09-26 17:17:18.868: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:18.868: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:18.868: I/jPCT-AE(15801): Text file from InputStream loaded...757 bytes
09-26 17:17:18.868: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:18.898: I/jPCT-AE(15801): Handles of 6: 2/3/1
09-26 17:17:18.898: I/jPCT-AE(15801): Loading default shaders (Tex0)!
09-26 17:17:18.898: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:18.898: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:18.908: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:18.908: I/jPCT-AE(15801): Text file from InputStream loaded...201 bytes
09-26 17:17:18.908: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:18.908: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:18.908: I/jPCT-AE(15801): Text file from InputStream loaded...4020 bytes
09-26 17:17:18.908: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:21.181: I/jPCT-AE(15801): Handles of 9: 2/29/1
09-26 17:17:21.181: I/jPCT-AE(15801): Loading default shaders (Tex1)!
09-26 17:17:21.191: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:21.191: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:21.191: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:21.191: I/jPCT-AE(15801): Text file from InputStream loaded...997 bytes
09-26 17:17:21.191: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:21.191: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:21.191: I/jPCT-AE(15801): Text file from InputStream loaded...4390 bytes
09-26 17:17:21.191: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:23.313: I/jPCT-AE(15801): Handles of 12: 2/34/1
09-26 17:17:23.313: I/jPCT-AE(15801): Loading default shaders (Tex0Light0)!
09-26 17:17:23.313: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:23.313: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:23.313: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:23.313: I/jPCT-AE(15801): Text file from InputStream loaded...201 bytes
09-26 17:17:23.313: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:23.313: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:23.313: I/jPCT-AE(15801): Text file from InputStream loaded...1293 bytes
09-26 17:17:23.313: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:23.363: I/jPCT-AE(15801): Handles of 15: 2/7/1
09-26 17:17:23.363: I/jPCT-AE(15801): Loading default shaders (Fog)!
09-26 17:17:23.363: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:23.363: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:23.363: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:23.363: I/jPCT-AE(15801): Text file from InputStream loaded...328 bytes
09-26 17:17:23.363: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:23.373: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:23.373: I/jPCT-AE(15801): Text file from InputStream loaded...4267 bytes
09-26 17:17:23.373: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:25.455: I/jPCT-AE(15801): Handles of 18: 2/32/1
09-26 17:17:25.455: I/jPCT-AE(15801): Loading default shaders (FogLight0)!
09-26 17:17:25.455: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:25.455: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:25.455: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:25.455: I/jPCT-AE(15801): Text file from InputStream loaded...328 bytes
09-26 17:17:25.455: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:25.465: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:25.465: I/jPCT-AE(15801): Text file from InputStream loaded...1608 bytes
09-26 17:17:25.465: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:25.515: I/jPCT-AE(15801): Handles of 21: 2/10/1
09-26 17:17:25.515: I/jPCT-AE(15801): Loading default shaders (Depth)!
09-26 17:17:25.515: I/jPCT-AE(15801): 0 shaders in replacement map!
09-26 17:17:25.515: I/jPCT-AE(15801): Default fragment shader is: /defaultFragmentShader.src
09-26 17:17:25.515: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:25.515: I/jPCT-AE(15801): Text file from InputStream loaded...745 bytes
09-26 17:17:25.515: I/jPCT-AE(15801): Default vertex shader is: /defaultVertexShader.src
09-26 17:17:25.515: I/jPCT-AE(15801): Loading file from InputStream
09-26 17:17:25.515: I/jPCT-AE(15801): Text file from InputStream loaded...248 bytes
09-26 17:17:25.515: I/jPCT-AE(15801): Compiling shader program!
09-26 17:17:25.545: I/jPCT-AE(15801): Handles of 24: 0/0/-1
09-26 17:17:25.545: I/jPCT-AE(15801): GL20 render pipeline initialized!
09-26 17:17:25.555: I/jPCT-AE(15801): OpenGL vendor:     Qualcomm
09-26 17:17:25.555: I/jPCT-AE(15801): OpenGL renderer:   Adreno 200
09-26 17:17:25.555: I/jPCT-AE(15801): OpenGL version:    OpenGL ES 2.0 1044053
09-26 17:17:25.555: I/jPCT-AE(15801): OpenGL renderer initialized (using 2/4 texture stages)

122
Support / How to improve the jpct lib load speed?
« on: September 25, 2014, 12:31:57 pm »
Hello,   I  do a test  for load jpct lib speed,  only I do is  init framebuffer  and show  red color , it will take about  8 ~ 10 second , I noticed that the log print  jpct load the default shader  .  If  this is the reason cause the load time long ?  and How to improve the jpct lib load speed ?

Thanks very much ! :)

123
Thanks  ! I will  try that your method. Infact  the real effect is very cool, but I can't  show it to you.  I create some  thin Cylinder  to following the car
, the effect is not satisfied :)

124
three picture

125
second picture

126
Hello ,  how to realize the car fast speed wind effect? like this attachment picture. draw line or use Particle or other way ?  I have no idea. Please tell me the method

thanks  :)

127
Support / Re: How to change the plane size
« on: September 20, 2014, 12:34:27 pm »
mmm, add    obj.invert();  and set  correct u v  . It seems ok!  :)



128
Support / Re: How to change the plane size
« on: September 20, 2014, 10:31:06 am »
I use this  code:

       Object3D obj = new Object3D(2);
            float x = 64;
            float y = 128;
       SimpleVector s1 = new SimpleVector(-x/2,y/2,0);
       SimpleVector s2 = new SimpleVector(-x/2,-y/2,0);
       SimpleVector s3 = new SimpleVector(x/2,-y/2,0);
       SimpleVector s4 = new SimpleVector(x/2,y/2,0);
      
       obj.addTriangle(s1,s2,s3);
       obj.addTriangle(s1,s3,s4);

and set texture  , but  see nothing  ~~~ :(  what's wrong ?

129
Support / How to change the plane size
« on: September 20, 2014, 07:45:47 am »
Hello ,  I use Primitives.getPlane to create a plane to show texture ,  bu t how can I change the create plane size ? for e.g  set x = 128  and set y =  256  so  plane can fit to show image? thanks

130
Support / Re: Hello , About Fog question
« on: September 16, 2014, 04:55:20 pm »
Thanks,  It's my mistake , I render the skybox cause this problem :P

131
Support / Hello , About Fog question
« on: September 16, 2014, 12:05:26 pm »
Hello , Egon , I'm back .  I use the code as following , but no effect, I can't see any fog. Could you help me? Thanks a lot.


            RGBColor fadeColor = new RGBColor(192, 135, 46);
            world.setFogging(World.FOGGING_ENABLED);
            world.setFogParameters(600, 1000, fadeColor.getRed(), fadeColor.getGreen(), fadeColor.getBlue());

132
Support / Re: About the object "LookAt" , need help
« on: June 20, 2014, 02:09:54 am »
Oh,It's my  mistake,    I  should  get the car Y rotation and let carmera do a smooth Y rotation by car.   I fixed distance between  car and carmera,  and  plan camera smooth rotation by car.
so . I search the forum  and write the code like this:

float carangle = car.getTransformedCenter().calcAngle(car.getXAxis());       
float cameraangle = camera.getPosition().calcAngle(camera.getXAxis());
      
cameraangle = slerp(cameraangle,carangle,0.01f);               
camera.rotateCameraAxis(camera.getYAxis(),cameraangle);

but it works   wrong . I guess the camera lookat do a rotation action , I want this rotation action smooth,  damping effect . How can I do this? thank you

133
Support / Re: About the object "LookAt" , need help
« on: June 19, 2014, 12:43:03 pm »
Ok,thanks for your help , I will do this by another way later.

Now, I want   carmera to do a smooth  rotation with car , I write the code like this,

Matrix  carmx = car.getRotationMatrix();
Matrix  cameramx= camera.getBack();
cameramx.interpolate(cameramx,carmx ,0.25f);
camera.setBack(cameramx);

Is it ok ? thanks a lot :)

134
Support / Re: About the object "LookAt" , need help
« on: June 17, 2014, 08:48:05 am »
Thanks for reply , I try many times , It's hard to tweak   following code.

oldCamPos.scalarMul(9f);
camPos.scalarMul(0.1f);


I read another topic , but I'm  still  not understand how to limit the distance between camera and car to a constant  by:
oldCamPos.scalarMul(9f);camPos.scalarMul(0.1f);

In other words , I want the camera behind the car   about  60(+-)m  far , How can I set the  parameter scalarMul(9f) ?

Note, the car speed is vary in my game.

Could you give me some advise? thank you .

(I try  increase and deincrease the  scalarMul  and divid (mul+1) , but the distance still can't contral  to a suitabe,  car still far and far away camera  and out of view at last)

135
Support / Re: About the object "LookAt" , need help
« on: June 16, 2014, 05:36:12 am »
Sorry  , infact  the cube is the car (I use the example hellow jpact-ae and not change the name ;))  . 

I set the carmera position by car   offset Z and offsetY  ,  the camera works  no problem, It can follow the car always .    but the game looks very bad , the car looks static always  even though  the road is  moving.  So  must let camera does smooth following.

The distance between camera and the car becomes biger and biger   , because set camera position by use the new position between camera old position  and the wanted position,so  when times go and go the camera position becomes far and far from the car... 

I reomve  this line world.checkCameraCollisionEllipsoid(delta.normalize(), new SimpleVector(10, 10, 10), len, 3);   because I'm l not sure  if this may cause issue, so I use camera.setPosition(camPos); instead. but it's the same  effect.

BTW: I only take moveCamera function from the car example .

Pages: 1 ... 7 8 [9] 10 11 12