Bullet & Bsp
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
Bullet & Bsp
Hi!
is it possible to implement Bullet in a system BSP as quake2?
Thanks!
is it possible to implement Bullet in a system BSP as quake2?
Thanks!
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Yes, but:
If you want to use Bullet with quake 2, you can best create a convex shape for each quake 'brush'. A quake brush is a convex shape bounded by a collection of planes. You can create a point representation, by calculating the intersection points of those planes.
See an explanation for "Turning a brush into a set of polygons" here:
http://folk.uio.no/stefanha/MAPFiles.pdf
Erwin
ps: i'm currently too busy, but if time allows, I might add some bullet demo that loads a quake2 bsp.
If you want to use Bullet with quake 2, you can best create a convex shape for each quake 'brush'. A quake brush is a convex shape bounded by a collection of planes. You can create a point representation, by calculating the intersection points of those planes.
See an explanation for "Turning a brush into a set of polygons" here:
http://folk.uio.no/stefanha/MAPFiles.pdf
Erwin
ps: i'm currently too busy, but if time allows, I might add some bullet demo that loads a quake2 bsp.
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
-
- Posts: 1
- Joined: Thu May 25, 2006 6:31 am
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
If someone can add a small BSP loader (preferably 1 or few files) to load the Quake 2 file, and add it to a current Bullet demo (using the existing OpenGL rendering, doesn't need to be textured).
So if you take care of the loading and rendering, I will add the collision detection part. Then this sample will be bundled with Bullet source code.
Thanks,
Erwin
So if you take care of the loading and rendering, I will add the collision detection part. Then this sample will be bundled with Bullet source code.
Thanks,
Erwin
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
this is the only one that I know simpler, even if it is for q3 but it varies of few....
http://www.paulsprojects.net/opengl/q3bsp/q3bsp.zip
bsp.cpp is the file core
http://www.paulsprojects.net/opengl/q3bsp/q3bsp.zip
bsp.cpp is the file core
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
Re: Bullet & Bsp
After several years of absence due to other passions, I resumed ...
I just started to implement Bullet Physics
but for this defect of the flickering I have to figure out if it's rendering engine or other (drivers?...)
I'm using now for test, the engine EGL modified by Paril, PhysGL --> http://youtu.be/lruTzz3iMh4
I would not want that after the implementation in my engine, I have the same defect.
the effort is not small.
Here my video with flickering ---> http://www.youtube.com/watch?v=wSClGb6nGh0
while my engine mE++(without Bullet) is normal http://www.youtube.com/watch?v=SNX73KpTvwI
Help me please!
Thanks
Frank - Italy.
I just started to implement Bullet Physics
but for this defect of the flickering I have to figure out if it's rendering engine or other (drivers?...)
I'm using now for test, the engine EGL modified by Paril, PhysGL --> http://youtu.be/lruTzz3iMh4
I would not want that after the implementation in my engine, I have the same defect.
the effort is not small.
Here my video with flickering ---> http://www.youtube.com/watch?v=wSClGb6nGh0
while my engine mE++(without Bullet) is normal http://www.youtube.com/watch?v=SNX73KpTvwI
Help me please!
Thanks
Frank - Italy.
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Bullet & Bsp
@Typhontaur
Beautiful piano background music
It seems like a problem with the rendering/visibility?
Beautiful piano background music
It seems like a problem with the rendering/visibility?
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
Re: Bullet & Bsp
Thank you Erwin! Maybe I was good with the physics as with the piano!Erwin Coumans wrote:@Typhontaur
Beautiful piano background music
It seems like a problem with the rendering/visibility?
I thought the culling of models by the rendering, but I have tried to
disable it for the type of model used, but I have not resolved anything.
Certainly I am using an engine that does not know in depth (quake2 modified) and do not know where to put their hands.
I will try to implement this great work (thanks Paril) in my engine.
I hope that I win in the end. After all Bullet is a great library, and for this
I thank you Erwin!
Meanwhile, someone in the forum found this defect in its development path, I'd love to hear his opinion.
Thank you again.
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
Re: Bullet & Bsp
I've tested:
1) Bullet 2.78 beta (svn trunk r2338)
2) Bullet-2.79-rev2440
Now I'm using these versions to avoid model flickering
new versions above these releases have this problems!
WHY Erwin? Help me!
Here a correct test: (WOW!)
YOUTUBE: Test Bullet 2.79
(Music by me for piano solo: "Simply You")
1) Bullet 2.78 beta (svn trunk r2338)
2) Bullet-2.79-rev2440
Now I'm using these versions to avoid model flickering
new versions above these releases have this problems!
WHY Erwin? Help me!
Here a correct test: (WOW!)
YOUTUBE: Test Bullet 2.79
(Music by me for piano solo: "Simply You")
-
- Posts: 135
- Joined: Fri Nov 04, 2005 2:22 pm
Re: Bullet & Bsp
First Test in mE++ on YT - Bullet-2.79-rev2440
Sorry for bad fps but fraps...
I tried to link it with the Bullet version 2.80.2535
but the program crashes calling btDiscreteDynamicsWorld ()
p.s. Happy Easter from the character of the demo!
Sorry for bad fps but fraps...
I tried to link it with the Bullet version 2.80.2535
but the program crashes calling btDiscreteDynamicsWorld ()
p.s. Happy Easter from the character of the demo!