-
Notifications
You must be signed in to change notification settings - Fork 17
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
some examples? #16
Comments
you're not passing in the context matrixstack correctly, the matrixstack holds all rotations and transformations, including camera rotation. where are you calling the renderer from? |
ok. u are right) thank you. But example will be helpful. Something like: Drawing cyan block overlay:
|
I recommend not using drawWithVBO() if you're just drawing it once, that's overkill. VBOs are designed to cache big render actions so they don't have to be regenerated each time. For quick renders, don't use VBOs. Example: |
Yeap. There is some javadoc.
For example will take Renderer3d#renderFilled
params:
start - The start coordinate of the block
dimensions - The dimensions of the block
color - The color of the filling
so I'm trying to call render by:
var filled = Renderer3d.renderFilled(new Vec3d(0 - .5, 0 - .5, 0 - .5), new Vec3d(1, 1, 1), Color.CYAN);
filled.drawWithVBO(Renderer3d.getEmptyMatrixStack());
and result is:
I know that my code is bad. Because I don't know how to use this method. Help me please :)
The text was updated successfully, but these errors were encountered: