Add the Opportunity to debug the Bullet Physics visually#618
Open
fodinabor wants to merge 3 commits intoivansafrin:masterfrom
Open
Add the Opportunity to debug the Bullet Physics visually#618fodinabor wants to merge 3 commits intoivansafrin:masterfrom
fodinabor wants to merge 3 commits intoivansafrin:masterfrom
Conversation
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.
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 :)) |
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. |
Contributor
Author
|
Hey, welcome back ;-) 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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...