[QUOTE=Grayman;43837478]Ah. Already implemented in bullet in BulletDynamics/ConstraintSolver/btGearConstraint.cpp but it'll have to be exposed in the interface.[/QUOTE]
FUCK YES, now people can make a proper gearbox in gmod :D
Considering setting up automated builds soon using Jenkins.
Managed to get the module compiling alright.
Here is what ldd shows.
[code]
linux-gate.so.1 => (0xf77a4000)
libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf75ca000)
../gmod/bin/libvstdlib_srv.so => not found
../gmod/bin/libtier0_srv.so => not found
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf74dd000)
libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf74b7000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf749a000)
libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf7336000)
/lib/ld-linux.so.2 (0xf77a5000)
[/code]
The dynamic links to libvstdlib_srv.so and libtier0_srv.so don't seem correct?
[code]
SRCDS_BIN_DIR = ../gmod/bin
[/code]
Seems to have taken that from the make file.
If i try running the server then it instantly crashes with this error.
[code]
failed to dlopen vphysics_srv.so error=bin/vphysics_srv.so: undefined symbol: __pow_finite
AppFramework : Unable to load module vphysics_srv.so!
[/code]
Did someone say soft bodies?
[video=youtube;3t7QR0oqiHc]http://www.youtube.com/watch?v=3t7QR0oqiHc[/video]
P.S.: Please [url=https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3UA358MF6QLZE]donate[/url] if you can. Haven't received anything!
[QUOTE=BomBom;43942238]Considering setting up automated builds soon using Jenkins.
Managed to get the module compiling alright.
...
[code]
failed to dlopen vphysics_srv.so error=bin/vphysics_srv.so: undefined symbol: __pow_finite
AppFramework : Unable to load module vphysics_srv.so!
[/code][/QUOTE]
Might not be linking to a math lib maybe? I searched that symbol on google, it appears on forums that have nothing to do with source.
Those links in the gmod bin should be resolved at runtime.
You magnificent bastard
Why would we need a new Physics engine. Whats wrong with the one we have? :L
[QUOTE=Lolm4te;43946075]Why would we need a new Physics engine. Whats wrong with the one we have? :L[/QUOTE]
pretty much everything
Those ropes... Realistic winches that do what actual winches do now?
well I can't wait to see this to get put into Garry's Mod officially. Enjoy an extra 25$/month!
Also I should mention that soft bodies aren't limited to ropes, they can cover more advanced stuff such as object deformation, cloth, etc.
In fact, I already have cloth setup and it would've been in the video but I couldn't figure out lua's mesh library and why soft bodies fall through static objects.
I wonder if I can use this to make realistic rain. I know there are a few that already are pretty realistic, but I'm just trying to think how this would be able to change it.
[QUOTE=pilot;43947542]I wonder if I can use this to make realistic rain. I know there are a few that already are pretty realistic, but I'm just trying to think how this would be able to change it.[/QUOTE]
I don't think you need a physics engine to simulate rain. That's just total overkill.
Unless if you're talking about water physics, which bullet physics can't do.
I honestly hope this becomes so well done that Garry just officially replaces VPhysics with your version of Bullet. I mean, this could completely change everything. Hell, getting soft bodied physics in Source ALONE would be awesome as fuck.
More to the point I hope Gray gets paid a lot for this if it gets in GMod officially. It's a physics sandbox FFS, and someone external to Facepunch brings in a new physics engine with all the bells and whistles?
I really hope this succeeds. Best of luck mate, I'll try to donate something soon.
Yeah, you really should be being paid by garry for this. With garry and the team's attention currently on rust, you're probably the only one working on anything substantial for gmod.
Edit: Threw $20 your way. I'd give you more, but I'm a broke college student with not too much to spare, sorry.
Oh my jesus, those ropes
keep up the fricken amazing work, ive noticed that this project has REALLY taken off! Good luck and thanks!
Man this looks amazing, really great work keep it up <3
fuck yes, first gears, now soft body physics :D
[QUOTE=PelPix123;43978265]Eagerly awaiting callbacks. Anything I can do to help make it work? Gbombs missiles fly more stably, more predictably, and more accurately than they ever did on standard vphysics, but they don't explode when they get there. :v:[/QUOTE]
Well, I was going to type up a long explanation as to why they're disabled, but then that stimulated my mind, so I just had to fix them.
So they work now... ish. The delta collision time still isn't working.
Also, I'm sure loading a bunch of calculations into the constraint solver every iteration is fine for performance, right?
[QUOTE=viperfan7;43976587]fuck yes, first gears, now soft body physics :D[/QUOTE]
And also I've exposed gears in the public interface. Next up is the lua module.
I've got to hand it to you sir, you are really chugging away at this module! Will someone get this man some donations?!
Not sure if this question got asked already, but will walking on moving props not fling you or kill you?
[QUOTE=pilot;43984589]Not sure if this question got asked already, but will walking on moving props not fling you or kill you?[/QUOTE]
Well, the player controller is going to be rewritten.
I think I'm going to keep it as a kinematic object so I have full control over the collision response.
Where can I get the softbody ropes?
[QUOTE=erikpark;43986337]Where can I get the softbody ropes?[/QUOTE]
Already exposed in the public interface and the lua module, but I haven't written any user-friendly stuff yet.
I've written a lua entity to wrap the soft bodies and network them, but I'm not too sure where I'm going to stick that in the vphysics repository. Maybe create a new repository with all the gmod lua specific code?
Anyways, [url=https://dl.dropboxusercontent.com/u/5619434/Development/softbody.zip]here's[/url] a link to all the lua stuff as of now. Any lua scripters want to make a toolgun for soft body ropes?
How well will softbody ropes save? Will we be able to save the state they are in when duping/etc?
[QUOTE=Grayman;43987807]Already exposed in the public interface and the lua module, but I haven't written any user-friendly stuff yet.
I've written a lua entity to wrap the soft bodies and network them, but I'm not too sure where I'm going to stick that in the vphysics repository. Maybe create a new repository with all the gmod lua specific code?
Anyways, [url=https://dl.dropboxusercontent.com/u/5619434/Development/softbody.zip]here's[/url] a link to all the lua stuff as of now. Any lua scripters want to make a toolgun for soft body ropes?[/QUOTE]
I'll put something together, also when i tried out vphysicssoftbody.lua, removed the barrels with the toolgun and then spawned a bunch of new barrels, one of the barrels jumped back and reattached itself to the rope
[QUOTE=winsanity;43988349]How well will softbody ropes save? Will we be able to save the state they are in when duping/etc?[/QUOTE]
Pretty much the same as anything else, I'd imagine. They're just a bunch of nodes, attached by a bunch of links, and faces are thrown into the mix somehow.
But I don't know how the dupe tool saves items. Some code will probably have to be appended so it can support soft bodies.
[QUOTE=Goz3rr;43988470]I'll put something together, also when i tried out vphysicssoftbody.lua, removed the barrels with the toolgun and then spawned a bunch of new barrels, one of the barrels jumped back and reattached itself to the rope[/QUOTE]
Ah, don't delete the barrels with the remover because it doesn't actually delete the soft body attaching them. You can remove the soft body by removing its phys_softbody entity.
I just realized, gears + ropes = winches :D
[QUOTE=viperfan7;43989371]I just realized, gears + ropes = winches :D[/QUOTE]
Maybe it's just because vphysics has conditioned me to think like this, but would a moving barrel with rope spooled on it spazz out?
[QUOTE=winsanity;43989447]Maybe it's just because vphysics has conditioned me to think like this, but would a moving barrel with rope spooled on it spazz out?[/QUOTE]
Don't think so. However, you might have issues with the soft body rope passing through the rigid body.
I suppose a long term goal would be enabling CCD collision. The big showstopper is the fact that neither the compound collision algorithm nor the soft body collision algorithms have this implemented yet.