Skip to content
Sign UpLog In
Profile icon

Keegan Carey

@Keegan-PP
  • 3D Console Cube Java

    Cover page
    Made with Java

    Umm it makes a 3D Cube in the java console.

    Have fun with the numbers, it can technically be rescaled to any size.

    (if you get an array out of bounds that is negative, then you need to increase o (which is the Origin)) (if you get an array out of bounds that is positive, you need to increase the resize variable)

    Setting axis to 'p' will make the cube into a rotating plane

    //my code is 100% definitely not optimized, I only recently started Java// (basically don't look at my code as an example of how to write your own)

    If you have any ways to improve it that would be cool!

    Recent comments (0)
  • Rule 86

    Cover page
    Made with Java

    I made this replit to fulfill rule 86 of the Internet.

    You can also render your own videos by downloading them to the project files and running the render command on startup.

    (I made this in like 3 days so don't expect it to be super optimized)

    Recent comments (0)
  • 3D Cube Renderer

    Cover page
    Made with Java

    Use the Object class to create, manipulate, and render cubes!

    ---Create a new cube with--- Object cubeName = new Object();

    ---Manipulate it With--- cubeName.translate(xTrans, yTrans, zTrans);
    (0, 0, 0) is center of screen

    cubeName.scale(scale); (scale is multiplicative)

    cubeName.rotate(xAxis, yAxis, zAxis); (degrees around axis)

    ---Apppend Cube to Display--- (re append cubes every frame where a change is made)

    display.clear(); //clears display to prepare for drawing new frame

    displayName.append(cubeName.getDisplay()); //appends the cube to the display

    displayName.draw(); //draws entire display (do this after appending)

    Recent comments (3)
    Keegan-PP
    Keegan-PP
    22 days ago
    • better line drawing to the line algorithm that will allow it to implement \ and / characters to make better lines
    • added culling so that hidden lines will not be rendered
    • added faces so that you can make the block faces look different from the lines
    GavinKIRK2
    GavinKIRK2
    26 days ago

    this is cool, but more i think needs to be done

Repls
Community
Keegan-PP
Keegan-PP
published an Update
22 days ago
0
3D Cube Renderer
3D Cube RendererUse the Object class to create, manipulate, and render cubes! ---Create a new cube with--- Object cubeName = new Object(); ---Manipulate it With--- cubeName.translate(xTrans, yTrans, zTrans); (0, 0, 0) is center of screen cubeName.scale(scale); (scale is multiplicative) cubeName.rotate(xAxis, yAxis, zAxis); (degrees around axis) ---Apppend Cube to Display--- (re append cubes every frame where a change is made) display.clear(); //clears display to prepare for drawing new frame displayName.append(cubeName.getDisplay()); //appends the cube to the display displayName.draw(); //draws entire display (do this after appending)
Culling and better lines update
better line drawing to the line algorithm that will allow it to implement \ and / characters to make better lines added culling so that hidden lines will not be rendered added faces so that you can make the block faces look different from the lines
#Console
#3d
#math
+2
Keegan-PP
Keegan-PP
published a Repl
4 months ago
0
3D Cube Renderer
3D Cube RendererUse the Object class to create, manipulate, and render cubes! ---Create a new cube with--- Object cubeName = new Object(); ---Manipulate it With--- cubeName.translate(xTrans, yTrans, zTrans); (0, 0, 0) is center of screen cubeName.scale(scale); (scale is multiplicative) cubeName.rotate(xAxis, yAxis, zAxis); (degrees around axis) ---Apppend Cube to Display--- (re append cubes every frame where a change is made) display.clear(); //clears display to prepare for drawing new frame displayName.append(cubeName.getDisplay()); //appends the cube to the display displayName.draw(); //draws entire display (do this after appending)
GavinKIRK2
GavinKIRK2
this is cool, but more i think needs to be done26 days ago
Keegan-PP
Keegan-PP
- better line drawing to the line algorithm that will allow it to implement \ and / characters to make better lines - added culling so that hidden lines will not be rendered - added faces so that you can make the block faces look different from the lines22 days ago
Keegan-PP
Keegan-PP
published a Repl
5 months ago
0
Rule 86
Rule 86I made this replit to fulfill rule 86 of the Internet. You can also render your own videos by downloading them to the project files and running the render command on startup. (I made this in like 3 days so don't expect it to be super optimized)
Keegan-PP
Keegan-PP
published a Repl
5 months ago
3
3D Console Cube Java
3D Console Cube JavaUmm it makes a 3D Cube in the java console. Have fun with the numbers, it can technically be rescaled to any size. (if you get an array out of bounds that is negative, then you need to increase o (which is the Origin)) (if you get an array out of bounds that is positive, you need to increase the resize variable) Setting axis to 'p' will make the cube into a rotating plane //my code is 100% definitely not optimized, I only recently started Java// (basically don't look at my code as an example of how to write your own) If you have any ways to improve it that would be cool!