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

Pages: [1]
Bones / frames
« on: July 03, 2013, 11:55:35 pm »
How do i get the total frames and how do i get what frame is currently displayed?

Support / FOG and transparent plane with water texture
« on: April 21, 2013, 11:14:55 pm »
Hi there,

I have a terrain with a 50% transparent plane and a water texture.

Without using fog the water looks as it should, but when using fog the water texture changes all the time.

See screenshot.

[attachment deleted by admin]

Support / Terrain and GenericVertexController..
« on: March 21, 2013, 05:33:23 pm »
I'm playing a bit with the terrain example (found on wiki) using a (heightmap) image. I added a cube and simple collisiondetection. It all works ok. Now i wanted to change the height of the terrain in realtime and i added a GenericVertexController, wich also works well. Now i like to change the height of the terrain only arround the location of the cube. The height of the terrain is stored in a float array terrain[][] and the height of the terrain in the GenericVertexController apply method is stored in a Mesh (SimpleVector[].y).

This is what i do now in my apply method:
Code: [Select]
SimpleVector[] d = getDestinationMesh();
int tx = (int) (Cube.getTranslation().x + 640) / 10;  //The + 640, terrain starts at -640 ends at 640
int tz = (int) (Cube.getTranslation().z + 640) / 10;  //In reality it was -560 to 560.. very strange also
int i = 0;
for (int x = 0; x < X_SIZE ; x++) {
for (int z = 0; z < Z_SIZE ; z++) {
d[i].y = terrain[x][z];

The above code does change the height on a certain location on the terrain, but not on the location of the cube. And i tried all kind of things. I must be doing something wrong..

Support / Random crash
« on: March 17, 2013, 02:07:42 am »
Hi There i'm new to this forum, i have some experience in 3d libs on other platforms for few years.
I like this lib a lot, but the documentation and examples could be a lot better..

My problem, i am playing around extending the hello world example, now add a terrain and fog and parent some primitives nothing more nothing less, when i start the app using eclipse and debugging it runs fine, when i start the app on the phone it runs fine also but when i quit and start it again it mostly crashes. After that it runs fine again for mostly 1 time and then crashes again etc .....

There's something i prob. have to unload or clear or something on exit. Hope someone can help me out here ..

Pages: [1]