Closed GoogleCodeExporter closed 9 years ago
I've attached a patch with the deltas from a recent sync of the svn source.
Original comment by astroboa...@gmail.com
on 28 Jan 2009 at 4:47
Attachments:
Original comment by john.mcc...@gmail.com
on 28 Jan 2009 at 6:06
Tom,
I took a look at the patch. First off, the height field shape should be within
the
shapes AABB so your fixes will be merged soon.
As for the character demo, I was able to get it to compile after I made some
changes
(M_PI -> SIMD_PI, no random() function being defined, and some macro problems -
how
did you even compile this demo?) Anyways, the demo is interesting and worth
adding.
But, why did the patch delete the dynamic character controller and the JAM and
CMake
build system files? Please don't submit patches that remove working code from
Bullet,
it just makes it harder for us to get things merged.
I'm going to continue cleaning up your patch and commit it soon.
Thanks,
John
Original comment by john.mcc...@gmail.com
on 28 Jan 2009 at 6:10
More feedback,
Bullet doesn't use STL, so the list and vector template classes are
unacceptable.
Please keep this in mind for future contributions.
Thanks,
John
Original comment by john.mcc...@gmail.com
on 28 Jan 2009 at 6:25
Tom,
Could you remove the usage of the list and vector template classes (Use
btAlignedObjectArray) and use SIMD_PI and the GEN_rand() function and resubmit
your
patch? Please make sure that it doesn't include the removal of the dynamic
character
controller, the jam or cmake build system.
Thanks,
John
Original comment by john.mcc...@gmail.com
on 28 Jan 2009 at 6:32
Thanks for the comments! Updated patch provided
Good to know about STL. I used std::list<> without thinking. I've changed
that and
removed the dependency.
I renamed the ASSERT() macro so there shouldn't be any macro problems.
I think my use of random() was an accident, but somehow it compiled on Linux. I
meant to use rand() throughout. Is that okay? Or should the rand() calls also
be
updated to be GEN_rand()? The updated patch uses rand().
DynamicCharacterController: these were #ifdef'd out of the code, as far as I
could
tell. The original and updated CharacterDemo doesn't use that class. But I
have
re-added it.
Removal of CMakeList.txt and Jamfile: unintentional! Sorry. I've readded
them. I
don't have MSVC, nor do I use Jam, so I haven't tested them. But they should
work (I
didn't add/remove any source files, and DynamicCharacterController still
compiles).
Build problems: funny, CharacterDemo didn't compile for me out-of-the-box, I
had to
create my own Makefile.am file so it would build.
Unfortunately, I forgot to include Makefile.am in my original patch! It is
there now.
But with that, everything compiled fine. I'm guessing many of the failures
were due
to different environments? I'm building on Fedora 10.
Original comment by astroboa...@gmail.com
on 29 Jan 2009 at 3:33
Attachments:
Tom,
Thanks for the update. I have one more request. Could you create a new demo
instead
of overwriting the existing character controller demo? Thanks.
John
Original comment by john.mcc...@gmail.com
on 9 Feb 2009 at 4:21
Will do! Any recommendation for a name?
CharacterDemo2 or KinematicControllerDemo are my two favorites right now. I'm
leaning towards the latter.
Original comment by astroboa...@gmail.com
on 9 Feb 2009 at 7:12
Also, I finally did some reading on cmake. Very cool! I had naively assumed
it was
VisualStudio only, obviously that is incorrect.
Has Bullet switched to use CMake exclusively? If so, I'll just create the
CMakeList.txt file for the new demo, and not create the older Makefile.am files.
Original comment by astroboa...@gmail.com
on 9 Feb 2009 at 7:13
Tom,
The name of the demo doesn't matter too much. I think CharacterControllerDemo2
would
be fine. No, Bullet isn't CMake only. Bullet supports CMake, automake, jam and
multiple visual studio versions.
Oh, I merged your height field terrain shape fixes this morning so you can drop
them
from your patches.
One last thing, I forgot to answer your question on rand() vs. GEN_rand(). You
should
be using GEN_rand() and not rand().
Thanks,
John
Original comment by john.mcc...@gmail.com
on 9 Feb 2009 at 9:13
Hello John-
Okay, updated patch submitted! I opted for "CharacterDemo2" just so it was
clear
what Demo it was the v2 of. btHeightfield changes removed, since you've
already got
them.
Summary of changes:
- updated btKinematicCharacterController.h with necessary #include
- updated top-level configure.ac to include CharacterDemos
- updated Demos/CMakeLists.txt to include CharacterDemo2, TerrainDemo
- updated Demos/Makefile.am to include CharacterDemos
- added CharacterDemo2 files
- updated BspDemo and CharacterDemo to fix build warnings
- added a Makefile.am to CharacterDemo so it would build under automake
For CharacterDemo2, I added an automake makefile (Makefile.am), a cmake file
(CMakeList.txt), and a Jamfile. I tested automake and cmake, but didn't test
Jam.
I also updated the CharacterDemo2 code to use GEN_rand().
One comment: the source tree apparently includes the top-level config.h.in,
which is
an automake-generated file. I recommend removing it.
I've become a big fan of cmake! It builds cleanly and let me spot warnings
that I
missed under automake. I'm sure Visual Studio support will be required for a
while,
but it is worth considering dropping automake and Jam in favor of cmake.
Thanks!
-Thomas
Original comment by astroboa...@gmail.com
on 11 Feb 2009 at 5:13
Attachments:
I'm closing old issues that are not going to be fixed. We focus on Bullet 3.x
now, at http://github.com/erwincoumans/bullet3
thanks for the old contribution anyway.
Erwin
Original comment by erwin.coumans
on 11 Sep 2013 at 12:04
Original issue reported on code.google.com by
astroboa...@gmail.com
on 28 Jan 2009 at 4:35