Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1075423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:16:15+00:00 2026-05-16T21:16:15+00:00

Always in the context of a Rubik’s cube app in Java/Opengl with lwjgl, i

  • 0

Always in the context of a Rubik’s cube app in Java/Opengl with lwjgl, i want to improve my drawing (http://manuelselva.files.wordpress.com/2010/09/cube.gif) in order to have rounded edges for each one of the 27 small cube ? What i would like to acheive at the end is the same as the wikipedia cube picture: http://fr.wikipedia.org/wiki/Fichier:Rubik%27s_cube.svg

What is the easiest solution to do that ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:16:16+00:00Added an answer on May 16, 2026 at 9:16 pm

    The easiest is probably to draw a model of a rounded cube in one of the many 3D modeling programs around (e.g., Maya, Blender), and load 27 instances of the model in your code. Learning to use a program like one of these isn’t trivial though, so even though this is the general approach used in most games and such, for something this simple it may be kind of overkill — it may take longer to figure out how to accomplish anything in the program, than it would have to do things a different way.

    The obvious alternative would be to generate a the model in your code. The basic idea is fairly simple, though getting it all put together may be somewhat non-trivial. You start by picking the radius you want to use for the corners. When you generate your faces, you leave enough space between them to fit in a quadrant of a circle with that radius (i.e., each face ends one radius short of where they two would intersect). You connect them with a set of vertex coordinates/normals that follow a quadrant of a circle — basically, write a small loop that generates a few dozen points (or so) at evenly spaced angles. The angle at each point will be the normal, and the sine/cosine will give the coordinates. At the corners (as opposed to the edges) you need to generate points on a sphere, with one quadrant of a sphere for each corner.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is getContext() method and what is drawing context exactly? why we always pass
In the context of a web application, my old boss always said put a
I have an app where there is always a current contest (defined by start_date
I have followed the Local Service example provided by Google, but my Context::bindService(...) always
I have a web application, which was designed and always worked under root context
May I know, is it safe for me to always cast Context to Activity
Context Menu always appear at the center of the screen. Is it possible to
I always assumed that if I was using Select(x=> ...) in the context of
I am always bad in java. Could please give me any idea about the
I expose my context : I have two Java programs that run on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.