PNS_PhysX [The only physX wrapper 4 linux] (QUAD/HEXO core)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

you are losing track of what is important in this world. this is not it.....and as for making something, lol.... you crack me up.
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

you are losing track of what is important in this world.
what? you? people on the internet?
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

you are losing track of what is important in this world.

what? you? people on the internet?
Not to start a fight, but i think he means everything but arguing and trying to show other people up. It seems all you care about is trying to be the best.
just go and make something... then we will talk
Not sure if you realized this, but everybody on this forum has made something. It is a programming forum, and that's what programmers do.

Cool project btw, but if you keep insulting people i doubt many people are going to use it.
multum in parvo
shadowslair
Posts: 758
Joined: Mon Mar 31, 2008 3:32 pm
Location: Bulgaria

Post by shadowslair »

Pals! Lol! We have a page and a half senseless fighting! Not the first time though. Maybe it`s not the greatest idea, but I`d suggest cleaning all the "off topic" (page 2 and 3) and let there be piece on earth. Let everyone live his life the way he likes, believing in whatever he wants...

I may be exaggerating, but I think this forum is for uniting people all over the world, different people from different countries and cultures, having one thing in common- programming. Let`s stop fighting and just keep talking about that. Shall we, brothers?! :wink:
"Although we walk on the ground and step in the mud... our dreams and endeavors reach the immense skies..."
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

all I am saying is that just because this is the internet, you shouldnt take liberties with your comments to the point where you are just putting someone down. I can appreciate that you are wanting to create something that others will like and use, and then maybe they will tell you that you did good and all that. Everyone likes that. The trouble here is that instead of making yourself look good, you tend to make others look bad, trying to rise in comparison. It's not life or death to me either way, as my ego is not dependent upon your opinion, but you could seriously improve your base if you would tell us what cool thing you did, instead of telling us how someone else did so badly. We are smart enough to decide these things for ourselves :)

last but not least, and I really will step out of this so it doesnt keep going, you shouldnt assume that you know the folks that you are talking to here. You might be surprised to find out the things that we have 'gone and made'. Just because you are new to all of this doesnt mean that we all are <wink>
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Guys if you have nothing useful to say but start a fight then just don't post anything. Unless you are just doing this because you're bored and want to fight with some 15 year old kid over the net, that's understandable. :P
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

I was having so much fun too. oh well, you are right of course. my apologies and back to work....
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

The trouble here is that instead of making yourself look good, you tend to make others look bad, trying to rise in comparison.
thats is not what i was doing here, the reason i started this off because irrphysX doesnt work on linux and wasnt made for it. I take that as a personal offence when something does not work on linux.
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

devsh wrote:
I take that as a personal offence when something does not work on linux.

wow, you are in for a difficult life then because nothing at all works well on ...... sorry, couldnt help myself :) lol
conallmmcg
Posts: 23
Joined: Sun Oct 19, 2008 2:35 pm

Post by conallmmcg »

hey i love linux as well , and i myself use it , but wtf, u take it as a personal offense when something doesnt work on linux, nobody has to make anything work on "your platform" of choice. someone can program for themselves or others , but its their choice to which platform they program it for , they dont have to make it work for mac or linux for you or anybody else, they have no obligation to do so. although it is nice if they do.

sorry i usually just view these forums , but having read one too many of devsh silly comments i had to post. i thought he had wised up a lot as his postings and comments had cleared up a lot and he had calmed down when people did not agree with him, but this :
"I take that as a personal offence when something does not work on linux.",
really annoyed me. :roll:
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

BLAH BLAH Blah.

</useless rant>

Glad to see the wrapper is moving forward, devsh.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

devsh wrote:I take that as a personal offence when something does not work on linux.
use windows then. woot. :twisted: just kiding
conallmmcg
Posts: 23
Joined: Sun Oct 19, 2008 2:35 pm

Post by conallmmcg »

yeah i think this topic has strayed a little bit lol, although i think its great he is making this wrapper , some people prob would rather hed just extend irrphysx, but i think its great hes making his own wrapper the way he likes it and seems to have a decent idea/plan of what he wants , and physx support on linux would be awesome so good luck devsh.
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

First off, I'd like to say it appears as though bitplane hit the nail right on the head.
BlindSide wrote:Another issue is of course the jp-sio2 incident which I would rather not get into. :P
I don't know if that was a joke...but there really is nothing to get into. sio2 simply released a modification of IrrPhysX branded as IrrPhysX without JP's approval. It could've been easily resolved, as JP had asked, by him submitting the changes to JP and allowing him to integrate them into his release schedule.

At any rate, I just don't think the philosophy was that big of a deviation away from IrrPhysX, which is why I don't believe it warranted another wrapper.

Either way, keep chugging along devsh; remember, it's not personal. (Well for me at least.)
TheQuestion = 2B || !2B
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

devsh wrote:There is a reason for reinventing the wheel

most people should see a rather big framerate drop on dual cores...

this is why:
NxScene* gScene;
NxReal myTimestep = 1.0f/60.0f;
...

void mySimulationStepFunction()
{

gScene->simulate(myTimestep);
gScene->flushStream();

//...perform useful work here using previous frame's state data

gScene->fetchResults(NX_RIGID_BODY_FINISHED, true);
}

There are several variations to the fetchResults() function call, selectable by the parameters of the function, or by using the function checkResults() in its place. The version illustrated above is a blocking function: the function will not return until the simulation thread has completed its calculations on all rigid bodies (i.e., NX_RIGID_BODY_FISHED == true).
irrPhysX does exactly that in its fetch() function, it will not return untill physics calculation is complete:

my syntax is as follows:

Code: Select all

//declare your game function -- as opposed to game loop

void render(UserData UD) {
   ...render ur stuff...
}

// UserData will be an abstract data type which will be declared by you to include all your data... i.e. smgr pointer, device, etc. , special nodes like water

physX_PNS->setGameFunctionLoop(&render, UD);

// the body of the fetch function
    void fetch(float Timestep)
    {
        gScene->simulate(myTimestep);
        gScene->flushStream();

        //...perform useful work here using previous frame's state data

        while(!gScene->fetchResults(NX_RIGID_BODY_FINISHED, false)
        { 
            GameFunctionLoop(userData);
        }

    }
That's exactly how IrrPhysx works too... The simulate and fetch functions are seperate... You can call simulate and then do some stuff and then call the fetch function... It can easily be done to run in parallel to your rendering... I don't think the examples are set up to run in parallel as an oversight when I published them but to fix it is almost as simple as flipping the order of the calls...

I don't think there's any harm in you doing a Physx wrapper too, it's got a different aim to it. IrrPhysx wraps up Physx completely so that the user doesn't have to worry about learning Physx in any way and so can just use familiar Irrlicht types and function styles. So IrrPhysx is more aimed at someone wanting quick and easy physics or someone not very confident with learning a new SDK and integrating it themselves. Yours is obviously more aimed at people who want more control over the use of Physx, giving a helping hand with the integration but leaving it wide open for using how they wish...

You do come across as rather aggressive in this, slagging off IrrPhysx quite a lot without ever really having come to me with any of the problems I don't think which seems rather unnecessary and something the forum could probably do without, but each to their own! :)
Image Image Image
Post Reply