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

Pages: [1]
1
Support / Problem generating Texture
« on: September 08, 2006, 02:33:03 pm »
This is not a direct jpct related question, as I am missing an idea, how to handle this. I am going to create a map a similar way, helge is doing it for his game. I wrote a little editor (Screenshot of basic tool) to draw those maps.
The different colors define several textures and materials (green=grass, yellow=sand, red=stone, gray=wall, blue=water). Createing A World out of it isnt a big problem, but its ugly, at those party, where textures "meet". My idea is to generate border-textures, when I see, than some different textures meet, but I am missing an idea, how to do it.
How do I get a smooth AND good looking change from one texture to another? I have spend some time on google, but I seem to miss the correct keywords to find a solution =/ So perhaps someone here can help :)

2
Support / Featurerequest ;)
« on: November 27, 2005, 11:44:25 pm »
Is there a way to serialize OcTrees?
I currently have a converted heightmap with nearly 32k Triangles. Without an octree this isnt useable, but, construction the octree needs around 1 minute, that I don't want so spend everytime I start a new Map :P
I tested it against a smaller map, with and without octree, it doesn't make a too big difference in memoryuseage. (Small map (3200 triangles) without octree uses 104MB B RAM, Big Map (32k triangles) with octree uses 116 MB ram. I could split the map into several smaller parts and only display those, that I see, but the memoryuseage would be the same I think. So it would be realy cool, to save the OcTree into a file, or better, Build a containerobject, where you can add an Object3D and a OcTree and Serialize them together =)
Dunno if it is doable, but it would save alot of time doing the same thing over and over again.

3
Support / Another Problem, now with checkForCollision
« on: November 27, 2005, 01:23:33 am »
I have the following scenario:

Code: [Select]

     O


___________


I have a plane, that is more than big enough to fit the Object above it.
I place the Object around 300 points above the plane and do the following:

Code: [Select]

// Vector to define Ray
SimpleVector trans = new SimpleVector( 0, 1, 0);
// Check for other object
int id = object.checkForCollision( trans, 30);
// If no object, move
if( id == Object3D.NO_OBJECT)
{
   object.translate( trans);
}


I tried "every" setting with collisionstype (let plane check other, let plane check self let plane check both, same with object and both checking) and the objects falls through the plane all the time.

I am very new to the collision thing and red your documentation in the manual about it.
I wanted to use this type of collison-detecting, as the ellipsoid one let me flow down every floor that is not 100% straight.

Am I using the checkForCollision wrong?

4
Support / OutOfMemoryError
« on: November 25, 2005, 02:41:44 pm »
have a little test, where one md2 Model runs in circles.

I added a "Mob" Object to my system holding the object and a tick() function, where the animation and movement is done.
in my loop() I run through my List of Mobs and call .tick() on every mob.

I works perfectly until I add a 5th Mob to my list. While loading the Object3d with Loader.loadMd2() I get a:

Exception in thread "main" java.lang.OutOfMemoryError

when the engine is procressing the 5th Model while loading the animations.

Is there a way to stop this? Is md2 the wrong source to work with? I like them as there are alot to use in the net and I already have animations to use for running, idleing and fighting.

~Jens

5
Support / Object3D rotation problem
« on: July 24, 2005, 05:40:57 pm »
I have a Object3D.
When I move it forwards it moves to the north.
Now I rotateY() it, so it looks to the East.
When I now move it forwards it still moves to the north.
I found 2 threads about this, both seem to got it work with the mentioned methods but it didn't work for me.

6
Support / Problems with Texture
« on: July 24, 2005, 01:28:10 pm »
I did the following:
Code: [Select]

tex = TextureManager.getInstance();
Texture grass = new Texture( "grass2.png");
tex.addTexture( "grass", grass);

terra = Loader.loadASC( "terra02.asc", 1, false);
terra.setTexture( "grass");


The result can be found here
I have tried different sized of textures and got no result. Has that something to do with the U and V Data in the ASC file? I still have not found any informations about the fileformat, so I am learning it by try and error ;)

Perhaps anyone of you knows this and can tell me how to fix it ;)[/url][/code]

7
Bugs / ArrayIndexOutOfBoundsException in Loader.loadJAW
« on: July 22, 2005, 03:18:57 pm »
Hi there...
when I load a 100x100 big Terrain with Loader.loadJAW I get an Exception:
Code: [Select]

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10000
at com.threed.jpct.Loader.loadJAW(Unknown Source)
at com.threed.jpct.Loader.loadJAW(Unknown Source)
at client.Uija3d.<init>(Uija3d.java:67)
at client.Uija3d.main(Uija3d.java:175)

Output befor the Exception is:
Code: [Select]
Loading file map.jaw
Expanding buffers...1000000 bytes
File map.jaw loaded...568780 bytes
Parsing Objectfile!


Is this intended as it might be to slow with that many polygones or is it just an unknown error?

~Jens

Pages: [1]