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

Pages: 1 [2]
16
Support / Re: Merge Object3D with extends Object3D
« on: August 12, 2008, 03:10:22 pm »
Mmmm I was thinking in composition to solver my problem. But i think that make manually a object using addTriangle is a good solution. I was reading the post "Terrain support" and I think that is possible make something like that using vertexs sets to simulate tile style insead of heighmaps, and creating a unique Objec3D using this vertexs infomation. Whitout merging and without class composition.

I will post the results.

Thanks to all!!

;-)

17
Support / Re: Merge Object3D with extends Object3D
« on: August 12, 2008, 12:11:32 am »
When you talk about option number three, do you talk about make a only one 3ds model for whole terrain (bad for tile style)?

I can do with JPCT a unique object to make terrain adding one to one all vertexs with "addVertex" method? It sound crazy?

I have a map created with a semi-random function. Every cell or tile in map refers a unique model (small mountain, flat terrain, water, ect...). The "idea" was copy every one of this models and merge all them in map in a determinated position (cpoy of model "m" on position x,y world).

If i donīt merge all them objects as only one, lights do a bad effect on every edge model for every tile. I need make a unique object with all them models, and then lights go fine.

Thatīs my problem :S   otherwise, options three sound good.

Thanks very much!!

18
Support / Merge Object3D with extends Object3D
« on: August 11, 2008, 11:06:54 pm »
Hi!!

I have a new question! :D

I have a Terrain class defined as "Public class Terrain extends Objec3D" with constructor:

public TerrainObject3D(int numCellX, int numCellY, Object3D firstCell){
       
       super(firstCell);   
       cellsX = numCellX;
       cellsY = numCellY;
}

I need add more Object3Ds to this class to make a terrain tile style formed with individuals Objects3D merges.

If i do " Object3D.merge( <<Terrain instance >>, <<Object3D instance>>)" i recive a error! (Obviously)

there is another way to do it with Terrain class?? how works merge method??

Another question: If i merge two objects with some vertexs in same positions (x,y,z). Are itīs convertes as only one vertex, or all vertexs are stores in the returning Object3D?

Thanks very much!!!

(Sorry my english)

19
Support / Re: Timer in example "FPS"
« on: August 10, 2008, 05:34:52 pm »
Boooooooops!

My first question in the forum was a bad question!

Thanks very much for this faster answer!  ;D


20
Support / Timer in example "FPS"
« on: August 10, 2008, 02:46:53 am »
I canīt found the class "Timer" with constructor "Timer(int)" (or "Timer(long)", i not sure)  used in FPS example

I have find three types of "Timer" instances in Java 1.5.0 Doc API.

All thems donīt have the "Timer(25)" constructor from FPS example included in JPCT Downloads.

ŋwhere is this class imported to that example?

Where i can find it?

Thanks!

Pages: 1 [2]