Comments (6)
by the way. This version of ofxBullet was adapted to work in Android:
https://dl.dropboxusercontent.com/u/14347919/ofxBullet.zip
basically, incompatibilities with openGl and openGL ES were deleted and then everythink worked.
from ofxbullet.
HI, Thank you for pointing this out. It looks like it might be an issue with Assimp. If you set i < 1 in the for loop does that work? I don't have an Android device, so I can't test for it. Thanks for the link to the Android compatible version, checking it out now.
from ofxbullet.
well... that doesn't seem to work.
i've tried with 10 diferent models and things work fine with one, and goes completely messy with the other 9.
things are really not making sense right now.
we'll keep trying and post if we find some solution.
from ofxbullet.
anyway, the model that works returns 4k meshes with getNumMeshes, which doesn't make sense because it has two meshes.
from ofxbullet.
Hi!
i've figured out what was happening with Android and ofxBullet.
You'll see one of these shapes is centered. That was working properly. Other shapes whose center is not (0,0,0) don't draw properly. The ofXBulletcustomShape stays in the right place, but invisible. The drown element, the Assimp translated gl matrix or whatever is drown, behaves as if it's centroid was located in the center of the 3Ds scene, not the object's center.
conclusion: assimp "drown" object's anchor point is not it's own but the scene one.
to use 3ds models then, i just created a 3ds project for each object and placed them in the (0,0,0).
does this behaviour make sense for you?
thanks for the add-on by the way!
from ofxbullet.
That makes sense. Maybe there is a way to offset the shape by the scene center pt? Glad you found a solution that works.
Nick
from ofxbullet.
Related Issues (20)
- gl matrix function in new oF Version( 0.8.0 ) HOT 1
- raycastTest error in iOS HOT 3
- issue building on ios HOT 5
- TODO - GLDebugDrawer::drawLine should draw using VBO HOT 2
- won't compile with of_v0.8.0 xcode3.26 / gcc-4.2 HOT 3
- Potential Visual Studio Change/Fix HOT 2
- Doesn't compile on OF0.8.0 HOT 4
- Doesn't compile with xcode 6 HOT 20
- XCode6 iOS8 compile issue of 0.8.4 HOT 2
- Xcode 6.1 "EXC_BAD_ACCESS" with ofxBulletSimpleExample and others HOT 3
- OF 0.9.0 will require rebuilding the bullet library HOT 10
- SoftBodyMeshExample is missing data folder and model HOT 1
- Loss of object color between oF 0.9 RC1 and latest build HOT 1
- Unknown Error 0x800700c1, Visual Studio 2015 HOT 5
- softbody texture on to mesh HOT 7
- Quaternion problem at create function of shapes HOT 2
- Not compiling OF098 Ubuntu 16.04 HOT 1
- Bullet3? HOT 12
- Compiling for windows/code::blocks, but crashing at startup HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxbullet.