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.


Topics - Thomas.

Pages: 1 2 3 [4] 5 6
46
Support / different texture on shared mesh
« on: April 05, 2012, 09:57:09 pm »
Can by set different textures on shared mesh? I tried it but texture is same on all objects (or maybe I have something wrong)...

47
Support / Sorting of objects
« on: March 23, 2012, 08:45:41 pm »
Is possible for sorting of objects before rendering? frustum culling -> sorting (maybe getter for boolean, be rendered?) -> render
If no, is possible for implement it? :)

48
Support / Serialized objects
« on: March 17, 2012, 11:19:49 am »
What exactly mean reduced in serialize method?

49
Projects / Physics example
« on: March 10, 2012, 10:29:28 pm »
Some people are asking for physics on Android devices. Maybe you found my test app and tried how fast is calculated physics on your device. In my opinion, jBullet is slow for games on mobile devices, but if you want to play with it, there are source codes and application. By slide you change height and camera angle, by tap is fired sphere and by long tap you can moving with objects, pinch to zoom.

sources - http://dl.dropbox.com/u/26148874/PhysicsTest.zip
application - http://dl.dropbox.com/u/26148874/PhysicsTest.apk


50
Support / Number of existing lights in shader
« on: March 05, 2012, 01:26:36 pm »
How can I find how much lights exists in fragment shader?

51
Support / Modifying the mesh during drawing process
« on: February 25, 2012, 01:00:13 am »
I have problem with GenericVertexController. I use these parts of code, but nothing happened, what magic is for modify of objects mesh? :)

I create object by this
Code: [Select]
build();
compile(true);
waterMesh = this.getMesh();
waterMesh.setVertexController(new Modificator(), false);

modify
Code: [Select]
public void apply() {
     SimpleVector[] s = getSourceMesh();
     SimpleVector[] d = getDestinationMesh();
     for (int i = 0; i < polyCount; i++) {
   SimpleVector cd = d[i];
   SimpleVector cs = s[i];
   cd.x = cs.x;
   cd.y = height[i];
   cd.z = cs.z;
     }
}

and in every frame is caled
Code: [Select]
waterMesh.applyVertexController();

52
Support / Delayed start apps
« on: February 11, 2012, 01:38:57 pm »
Please Egon, when is started an application, some normals are calculated, it takes about 300-400ms. Is it static calculating normals of Primitives? Anyway, could you call this method later? Maybe when is first call of get something... Thanks :)

53
Support / Disable checking camera view for Object3D
« on: February 06, 2012, 11:30:48 pm »
Please, could you add two methods for Object3D to enable and disable (default is enable) checking models when are in camera view? (so everytime Object3D will be send to GPU without checking) I think, that could be very helpful for very simple objects like particles or light halo.
And does jPCT-AE support multithreading for this? Galaxy S2 has almost same result as Galaxy S...

Sorry for my English, I do not how better explain it...

54
Support / physics test help
« on: January 22, 2012, 12:40:50 am »
I created simple application with using jPCT-AE and jBullet, before implementation physics into my game. But it is very, very slow on my Galaxy S calculations only 6 boxes take 11ms. I wonder how fast it runs on other devices. Could you send me your result?




You can download test app here.

results:
Hummingbird - 11.3ms (Galaxy S 4.0.3)
Ti Omap 4430 - 8.5ms (? 2.3.x)
Nvidia Tegra 2 - 9.6ms (? 3.x)
Qualcomm MSM8255 - 12.5ms (Xperia Neo 2.3.4), 12.4ms (Xperia Neo ?)
Qualcomm QSD8250 - 16.8ms (Desire 2.2.x)
Qualcomm MSM8260 - 14.7ms (Sensation 2.3.x)
Qualcomm MSM7227 - 28.5ms (Galaxy Mini 2.2), 23.4 ms (? ?)
Exynos 4210 - 9.1ms (Galaxy S2 ?)
Nvidia Tegra 3 - 8.6ms (Transformer Prime 3.x)
Qualcomm MSM8260 - 15.2ms (Evo 3D 2.3.x), 13ms (Evo 3D ?)

55
Support / OutOfMemoryError on ICS
« on: November 30, 2011, 11:16:57 am »
Application crashes during the loading with this error log. On gingerbread without any problem.

Code: [Select]
11-30 11:09:33.691: W/dalvikvm(21679): threadid=14: thread exiting with uncaught exception (group=0x40a321f8)
11-30 11:09:33.695: E/AndroidRuntime(21679): FATAL EXCEPTION: Thread-7392
11-30 11:09:33.695: E/AndroidRuntime(21679): java.lang.OutOfMemoryError
11-30 11:09:33.695: E/AndroidRuntime(21679): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
11-30 11:09:33.695: E/AndroidRuntime(21679): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:493)
11-30 11:09:33.695: E/AndroidRuntime(21679): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:549)
11-30 11:09:33.695: E/AndroidRuntime(21679): at com.threed.jpct.util.BitmapHelper.loadImage(BitmapHelper.java:32)
11-30 11:09:33.695: E/AndroidRuntime(21679): at com.threed.jpct.Texture.loadTexture(Texture.java:715)
11-30 11:09:33.695: E/AndroidRuntime(21679): at com.threed.jpct.Texture.loadTexture(Texture.java:703)
11-30 11:09:33.695: E/AndroidRuntime(21679): at com.threed.jpct.Texture.<init>(Texture.java:135)
11-30 11:09:33.695: E/AndroidRuntime(21679): at cz.game.util.ObjectLoader.loadValuesOfObjects(ObjectLoader.java:471)
11-30 11:09:33.695: E/AndroidRuntime(21679): at cz.game.util.ObjectLoader.loadLevel(ObjectLoader.java:314)
11-30 11:09:33.695: E/AndroidRuntime(21679): at cz.game.util.ObjectLoader.load(ObjectLoader.java:203)
11-30 11:09:33.695: E/AndroidRuntime(21679): at cz.game.util.ObjectLoader.run(ObjectLoader.java:116)
11-30 11:09:33.703: W/ActivityManager(188):   Force finishing activity com.main/cz.game.main.Demo

56
Support / data from depth buffer
« on: August 23, 2011, 06:48:44 pm »
I think, that Egon somewhere wrote something about it, but is possible get data from depth buffer on open gl es?

edit: yes http://blog.shayanjaved.com/2011/05/20/android-opengl-es-2-0-shadow-mapping/#more-97

57
Support / performance question
« on: August 20, 2011, 06:42:18 pm »
I need plane visible from both side, what is faster 2 triangles or one but without backface culling?

58
Support / keyframe and bones in 3ds max
« on: August 20, 2011, 02:09:42 pm »
I have made animation of shooting using this tutorial, but animation is not in hand and gun mesh, but in some bones help objects... could anyone advise how to save the animation in to the mesh of animated objects?

59
Support / dummy
« on: August 05, 2011, 07:25:03 pm »
Hi Egon, I have problem with dummy. I need add dummy to another dummy, but when I do this, object (from code) is not visible. Any idea?

Code: [Select]
for (int i = 0; i < moveMergeIds.size(); i += 2) { // sjednoceni pohybu definovanych objektu (f -> s)
int idf = moveMergeIds.get(i);
int ids = moveMergeIds.get(i + 1);
Object3D object = objectManager.getObject(idf).getDummy();
Object3D dummy = objectManager.getObject(ids).getDummy();
dummy.addChild(object);
}

60
Support / object pivot
« on: July 26, 2011, 08:04:49 pm »
I set the object's pivot in 3ds max and when I rotate object in engine pivot is in the center of this object... Is it normal?

Pages: 1 2 3 [4] 5 6