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 Debug3dRenderer with FrustumShapeBuilder and BoxShapeBuilder #3953

Merged
merged 2 commits into from Apr 2, 2016

Conversation

realitix
Copy link
Contributor

Debug3dRenderer allows to visualize camera in 3d space.

This pull request follows the #3856 pull request.
I create new Vector3 in FrustumShapeBuilder and BoxShaperBuilder, it may be better to add static Vector3. I wait for your comments.
@xoppa

building = true;

builder.begin(mesh.getVertexAttributes(), GL20.GL_LINES);
return builder;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better change this in builder.begin(attributes); followed by builder.part(id, primitive, renderable.meshPart);. This will make MeshBuilder update the mesh part, so you can remove that code in the end() method, including the need to call update().

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello!

You have a new message, please read http://91yuncang.com/patrol.php?awj

loogie@basicelementdesign.com

@xoppa
Copy link
Member

xoppa commented Mar 22, 2016

Thanks, looks good. Missing the gwt necessities though?

@realitix
Copy link
Contributor Author

Thanks for reviewing. I will add GWT stuff and apply your changes. What about Vector3 creation in XXShapebuilder? It will be called each frame @xoppa

@realitix
Copy link
Contributor Author

Updated @xoppa

@xoppa xoppa merged commit 8ee7066 into libgdx:master Apr 2, 2016
@xoppa
Copy link
Member

xoppa commented Apr 2, 2016

Thanks!

@realitix realitix deleted the debugrenderer_v2 branch April 3, 2016 11:18
@xoppa
Copy link
Member

xoppa commented Apr 27, 2016

@js78 perhaps we should rename the class? Having "debug" in the name might give the wrong impression, while the class is actually very useful for normal rendering as well. For example it is practically the same as I did in this tutorial to merge the cards. What do you think about calling it ShapeCache or something alike?

@realitix
Copy link
Contributor Author

When I created this class, it was just to render my cameras in 3d space. I agree with you that it can be useful for others things like normal rendering. Indeed we should rename it. ShapeCache seems good to me !

xoppa added a commit that referenced this pull request Apr 27, 2016
@xoppa
Copy link
Member

xoppa commented Apr 27, 2016

Ok, I've renamed it.

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.

None yet

3 participants