GithubHelp home page GithubHelp logo

Comments (6)

johansebastian avatar johansebastian commented on August 10, 2024

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.

NickHardeman avatar NickHardeman commented on August 10, 2024

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.

johansebastian avatar johansebastian commented on August 10, 2024

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.

johansebastian avatar johansebastian commented on August 10, 2024

anyway, the model that works returns 4k meshes with getNumMeshes, which doesn't make sense because it has two meshes.

from ofxbullet.

johansebastian avatar johansebastian commented on August 10, 2024

Hi!

i've figured out what was happening with Android and ofxBullet.

captura de pantalla 2013-10-11 a la s 13 31 44

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.

NickHardeman avatar NickHardeman commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.