UnrealSP.Org

The premier site for Unreal single player news
It is currently Fri Sep 03, 2010 12:38 am

All times are UTC [ DST ]



Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: Sat Apr 25, 2009 2:54 pm     Post subject: [C++] PhysX in Unreal / Unreal Tournament
Skaarj Warrior
Skaarj Warrior

Joined: Thu Dec 20, 2007 1:06 pm
Posts: 53
Location: Finland
I started with this project (later on to be implemented with Unreal 227 version) which uses NVidia PhysX in Unreal/UT.
I plan to add rigdi body (and ragdolls?) with hinges and joints support to make some actors with more advanced physics.
Currently all I have is a simple box rigdi body actor which only touches with a constant ground height plane (need to add support for it to collide with world BSP).
And before anyone asks, the reason why I chose PhysX over Havoc is because NVidia released headers and libaries for PhysX while Havoc is still all closed source unless you buy some license for them (and because PhysX is relatively easy to implement in Unreal Engine 1).

Heres a screen shot of a pile of boxes (forgive me of the lousy brightness) which definitly preforms a lot better than Karma physics in UT2004:
Image


Last edited by .:..: on Sun Dec 20, 2009 1:03 pm, edited 4 times in total.

Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 3:07 pm     Post subject:
Skaarj Warlord
Skaarj Warlord
User avatar

Joined: Mon Nov 12, 2007 9:43 am
Posts: 745
Sounds very promising. :o

Ok I know PhysX only through this "bonuspack" for ut3 with HeatRay, Tornado and Lighthouse.

Dont think that might be possible to shoot bsp / mover barricades as like on HeatRay PhysX?


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 4:24 pm     Post subject:
Skaarj Warrior
Skaarj Warrior

Joined: Thu Dec 20, 2007 1:06 pm
Posts: 53
Location: Finland
Creavion wrote:
Dont think that might be possible to shoot bsp / mover barricades as like on HeatRay PhysX?

Would be if I created second one extending Mover actor, but until then first I have to get mesh actors working properly.


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 4:55 pm     Post subject:
Skaarj Warlord
Skaarj Warlord
User avatar

Joined: Mon Nov 12, 2007 9:43 am
Posts: 745
would be really cool. :D


Top
 Profile  
 
PostPosted: Sat Apr 25, 2009 11:51 pm     Post subject:
Skaarj Warrior
Skaarj Warrior

Joined: Thu Dec 20, 2007 1:06 pm
Posts: 53
Location: Finland
Now added so that the collide with BSP walls (yet poorly as world was full of invisible collision surfs, but still a beginning).
And this time I filled the enitre Entry map with wooden boxes, yet no slowdowns noticed (apart from rendering slowdowns).


Last edited by .:..: on Sun Dec 20, 2009 1:03 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 4:59 am     Post subject:
Skaarj Warlord
Skaarj Warlord
User avatar

Joined: Sun Nov 11, 2007 9:23 pm
Posts: 799
wow.. thats awesome. Yes, I remember the UT2k4 version of these included in that one package U1Deco.u or somthing. This seems to proform alot better than that already (judging by the way the boxes are topped onto each other). What about player collision? I remember cratering inside one of those boxes in UT2k4.. does the same bug exist here?

_________________
Image


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 9:56 am     Post subject:
Skaarj Warlord
Skaarj Warlord
User avatar

Joined: Fri Nov 16, 2007 3:05 pm
Posts: 515
What are the chances of adding these to more complicated models?


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 11:56 am     Post subject:
Skaarj Berserker
Skaarj Berserker
User avatar

Joined: Tue Nov 13, 2007 4:18 pm
Posts: 271
any chance of having this as a mutator in unreal/ut? i would love to play the original maps with actual physics applied to decorations :o


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 12:16 pm     Post subject:
Skaarj Warlord
Skaarj Warlord
User avatar

Joined: Mon Nov 12, 2007 9:43 am
Posts: 745
Turboman wrote:
any chance of having this as a mutator in unreal/ut? i would love to play the original maps with actual physics applied to decorations :o

LOL lets kick those ugly unreal 1 palm trees away. :lol:


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 4:49 pm     Post subject:
Skaarj Warrior
Skaarj Warrior

Joined: Thu Dec 20, 2007 1:06 pm
Posts: 53
Location: Finland
Added alpha version download now, see first post.


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 8:40 pm     Post subject:
Skaarj Berserker
Skaarj Berserker
User avatar

Joined: Tue Nov 13, 2007 4:18 pm
Posts: 271
doesn't work in unreal 227e (crash upon summon), i assume thats what you meant with implenting it later.
will test other versions now

edit: works in UT 436, does not work in unreal gold 226b

i'm curious how this will exactly work, are physx drivers limited to nvidia users? or will anyone be able to download them?
would be pretty fun to make a map with physx objects and play online, unless someone without an nvidia won't be able to run it...


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 9:51 pm     Post subject:
Skaarj Warrior
Skaarj Warrior

Joined: Thu Dec 20, 2007 1:06 pm
Posts: 53
Location: Finland
Turboman wrote:
doesn't work in unreal 227e (crash upon summon), i assume thats what you meant with implenting it later.
will test other versions now

edit: works in UT 436, does not work in unreal gold 226b

i'm curious how this will exactly work, are physx drivers limited to nvidia users? or will anyone be able to download them?
would be pretty fun to make a map with physx objects and play online, unless someone without an nvidia won't be able to run it...

Forgot to mention, that's UT version only (those screen shots were taken in UT as well).
As for the Nvidia stuff, I have nothing in my computer that's Nvidia (nor any physics accelerator card), so I presume it works for everyone (however Nvidia users may gain better performance).


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 9:58 pm     Post subject:
Skaarj Warlord
Skaarj Warlord
User avatar

Joined: Mon Nov 12, 2007 9:43 am
Posts: 745
AFAIK I did read a longer time ago something from a PhysX Patch for ATI user and I am sure I also saw a download.


Top
 Profile  
 
PostPosted: Sun Apr 26, 2009 11:26 pm     Post subject:
Administrator
Administrator
User avatar

Joined: Mon Nov 12, 2007 9:39 am
Posts: 612
Location: Szczecin
Works on ATI just fine.

_________________
Madness, as you know, is like gravity…all it takes is a little push!
Image
http://turniej.unreal.pl/portfolio


Top
 Profile  
 
PostPosted: Mon Apr 27, 2009 4:42 am     Post subject:
Trustee Member
Trustee Member
User avatar

Joined: Mon Nov 12, 2007 12:10 am
Posts: 324
Until you start doing really busy things w/ physics (destructable environments, soft bodies, physics based particles, or hundreds of rigid bodies. eg- Cellfactor) it should work reasonably for anyone w/ a decent cpu.
Hardware support depends on how open nVidia made CUDA. If they actually allow you to take advantage of the hardware then there will be a performance increase for those that have it, but it will need to come in the form of a hw detect and enable flag. Like hw audio, it's not automatic, if it was it wouldn't work unless you had it (like several Cellfactor levels).

-btw, I think this is really cool. I tried to talk someone into integrating Open Dynamics Engine into UE1 but nothing even came out of it.

_________________
ಠ_ಠ
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group