UnrealSP.Org Forum Index UnrealSP.Org
The premier site for Unreal single player news
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[C++] PhysX in Unreal / Unreal Tournament
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    UnrealSP.Org Forum Index -> Content Creation
View previous topic :: View next topic  
Author Message
.:..:
Skaarj Scout
Skaarj Scout


Joined: 20 Dec 2007
Posts: 45
Location: Finland

PostPosted: Sat Apr 25, 2009 1:54 pm    Post subject: [C++] PhysX in Unreal / Unreal Tournament Reply with quote

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:


Last edited by .:..: on Sun Dec 20, 2009 12:03 pm; edited 4 times in total
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Creavion
Skaarj Warlord
Skaarj Warlord


Joined: 12 Nov 2007
Posts: 745

PostPosted: Sat Apr 25, 2009 2:07 pm    Post subject: Reply with quote

Sounds very promising. Surprised

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?
Back to top
View user's profile Send private message
.:..:
Skaarj Scout
Skaarj Scout


Joined: 20 Dec 2007
Posts: 45
Location: Finland

PostPosted: Sat Apr 25, 2009 3:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Creavion
Skaarj Warlord
Skaarj Warlord


Joined: 12 Nov 2007
Posts: 745

PostPosted: Sat Apr 25, 2009 3:55 pm    Post subject: Reply with quote

would be really cool. Very Happy
Back to top
View user's profile Send private message
.:..:
Skaarj Scout
Skaarj Scout


Joined: 20 Dec 2007
Posts: 45
Location: Finland

PostPosted: Sat Apr 25, 2009 10:51 pm    Post subject: Reply with quote

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 12:03 pm; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
jackrabbit
Skaarj Warlord
Skaarj Warlord


Joined: 11 Nov 2007
Posts: 617

PostPosted: Sun Apr 26, 2009 3:59 am    Post subject: Reply with quote

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?
_________________
Call me conservative....but I'm sticking with 226b from now on. Its the only real version that I feel captures the humble center of what is Unreal.
Back to top
View user's profile Send private message
Frieza
Skaarj Berserker
Skaarj Berserker


Joined: 16 Nov 2007
Posts: 486

PostPosted: Sun Apr 26, 2009 8:56 am    Post subject: Reply with quote

What are the chances of adding these to more complicated models?
Back to top
View user's profile Send private message
Turboman
Skaarj Berserker
Skaarj Berserker


Joined: 13 Nov 2007
Posts: 251

PostPosted: Sun Apr 26, 2009 10:56 am    Post subject: Reply with quote

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 Surprised
Back to top
View user's profile Send private message MSN Messenger
Creavion
Skaarj Warlord
Skaarj Warlord


Joined: 12 Nov 2007
Posts: 745

PostPosted: Sun Apr 26, 2009 11:16 am    Post subject: Reply with quote

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 Surprised

LOL lets kick those ugly unreal 1 palm trees away. Laughing
Back to top
View user's profile Send private message
.:..:
Skaarj Scout
Skaarj Scout


Joined: 20 Dec 2007
Posts: 45
Location: Finland

PostPosted: Sun Apr 26, 2009 3:49 pm    Post subject: Reply with quote

Added alpha version download now, see first post.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Turboman
Skaarj Berserker
Skaarj Berserker


Joined: 13 Nov 2007
Posts: 251

PostPosted: Sun Apr 26, 2009 7:40 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message MSN Messenger
.:..:
Skaarj Scout
Skaarj Scout


Joined: 20 Dec 2007
Posts: 45
Location: Finland

PostPosted: Sun Apr 26, 2009 8:51 pm    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Creavion
Skaarj Warlord
Skaarj Warlord


Joined: 12 Nov 2007
Posts: 745

PostPosted: Sun Apr 26, 2009 8:58 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Raven
Skaarj Berserker
Skaarj Berserker


Joined: 12 Nov 2007
Posts: 496
Location: Szczecin

PostPosted: Sun Apr 26, 2009 10:26 pm    Post subject: Reply with quote

Works on ATI just fine.
_________________
Madness, as you know, is like gravity…all it takes is a little push!

http://turniej.unreal.pl/rp
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zYnthetic
Trustee Member
Trustee Member


Joined: 11 Nov 2007
Posts: 288

PostPosted: Mon Apr 27, 2009 3:42 am    Post subject: Reply with quote

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.
_________________
ಠ_ಠ

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    UnrealSP.Org Forum Index -> Content Creation All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group