Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Opportunity to debug the Bullet Physics visually #618

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fodinabor
Copy link
Contributor

Requested by @MJ-meo-dmt - At the moment you only can view the wireframe of the collision shape of the entity - more modes to be implemented.

Warning: The extra wireframes are hurting the performance badly...

Joachim Meyer added 2 commits February 16, 2015 00:03
…nt it only shows the wireframe of the collision shape.
…x the wireframe to disappear when most of it is out of the camera's display by using this function.
@fodinabor
Copy link
Contributor Author

How can one color single lines in a line mesh with many lines? is there a way to do this? maybe using Vertex Colors? (I've tried this - but didn't work so hints would be appreciated :))

@ivansafrin
Copy link
Owner

Yea, you need to use vertex colors. There's a flag in Mesh called useVertexColors that you need to set to true as well as provide color info for each vertex.

@fodinabor
Copy link
Contributor Author

Hey, welcome back ;-)
oh.. well I tried that earlier as I stated but found the issue now I forgot the alpha:

    lineMesh->getMesh()->addVertex(from.getX(), from.getY(), from.getZ());
    lineMesh->getMesh()->vertexColorArray.data.push_back(color.getX());
    lineMesh->getMesh()->vertexColorArray.data.push_back(color.getY());
    lineMesh->getMesh()->vertexColorArray.data.push_back(color.getZ());
    lineMesh->getMesh()->vertexColorArray.data.push_back(1.0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants