Skip to main content
gamedev.net
🔒 Locked

Generating ice cube.

Started by rohitgonsalves 1 reply 1k views
Original Post
rohitgonsalves
rohitgonsalves
I have to generate a cube structure. But this cube structure sholud resemble the ice cube. That means the cube corners sholud be rounded and soft corners like an ice cube. I just need to have such a simple implementation algorithm to actually start with the coding. Any references or description or code will work for me.
MOV AL, 0x00MOV AL, ME
relsoft
relsoft
You could google "superellipse" or "supershape" by Paul Bourke.

Here's what I have done with the article(source included):

http://rel.betterwebber.com/junk.php?id=61
Hi.
rohitgonsalves
rohitgonsalves
Thanks man. You took me to the next planet. I really liked the interpolations.

Thanks from Rohit.
MOV AL, 0x00MOV AL, ME

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.