jiandingzhe wrote:No, I want to make a 3D system. I just draw my question in 2D for simplicity.
I decide not to use Newton or any other ready-to-use physics engine, because my application will have very large outdoor scene.
That does no soudn liek a good reason for not usin an off the shell library.
Newton or any other engine do support outdoor scene, as a matter of fat physics engien do no make distintion between indorr or outdoor.
Beleive it is a huge mistake to start makin a physics library, or a graphics librar, if you want to make a game.
In general people who make technology libraries has a different set of skill, than than peopel how are motivate to make Games.
You can not simply read a Book, and go an try to implement that thonk that you will get a polish library.
It is a lot more than, that.
It takle many, many year in teh fiel of Mathematics an physics to be ablet to make your own algorithm and to undernat other people algorithm,
and also know when to apply heursitic, of analitical solution.
If you fell teh passion , go for it, you leran a lot in teh proccess, but do not make the mistake of tryi making aqn engine for a Game, because in teh end afte month and moth
of frustration you get neither, just frustration.
It is true using a physics libray you still have to put a lot of work, but there is a big difference betwen Physics modeling, and writing physics algorithm.
The best analogy I can provide to you is the roll ofa technical artish.
Thsi si a person that know how to use the funtionality on lot of reatore in a modeling package, but he is not an artish, and he is no a programmer.
he underand both bot do no excell at both.
I have being doing this for many many years and I am still learning.
jiandingzhe wrote:I want to make a grid of height field, which automatically unloads a tile when no moving object is beyond that tile. Moreover, I want to cope with ten thousands of physical objects, so I will use the power of GPU.
Gird fidl are standard solion gemeoety on every phsyics library.
Many physics libraries do use GPU, Physx one of them.
an with respect of eth many objects, bear in mind that Nvidai is teh make of one of eth most pweful GPU, they has information that teh public does not,
they alsop spend then fo million of dollar every years payn a staff of highlly professnilas to write sophsiticate code usin tha knwoledge.
I do not know why you want to complete with them. you are at extrem disavantage.
Havok has is own by intel, and they two have information we do no have, for example in they treading system they can use low letancy calls
that are no generally asessible to the people because they will risk other poperation of the operating system.
so there can make muticore funtionality better than an ordinary programmer. why woudl yo uane to competer with them?
I teh case of newton I do no compete wit teh in that area, I compelet in my graund with is Matahmatic and physics.
I provide an engien that is competitive with thsoe technology, but is ti no as \fast as theirs because beacus of the disavatage I have compere to them.
Bu newton is the most realistic physic engine and is very competive performance wise, why would you want to compete with me, when I have so much avatage over you now.
you do not have to use Newton, but if you want perfomace above all, you can use havok or Physx,
Newton is open source, you can learn from it, but tehr are oeteh open source solution you can try too. T teh very least you will learan wah no to do in short time than try to invent it yourself.