PDA

View Full Version : A problem with cubes...



CyBBe
03-15-2000, 02:07 AM
I've done a "worm" that U control with the arrow-keys, but between the cubes (glutSolidCube) I get a "crack", and it dosn't look good at all, what can I do about this, some kind of smooth or something, anyone???

dmy
03-15-2000, 04:43 AM
why don't implement something like an arc fillet ?

Dolo/\/\ightY

CyBBe
03-15-2000, 10:03 AM
Arc fillet, what's that?

dmy
03-16-2000, 01:00 AM
suppose you have two unconnected lines:




/ \
/ \
/ \
/ \


you can create an arc fillet by joining these two lines:




______
/ \
/ \
/ \
/ \


or maybe with more than one segment, to make it appear smoother:




__
.' '.
/ \
/ \
/ \
/ \


the revenge of ascii art http://www.opengl.org/discussion_boards/ubb/smile.gif

with your cubes, you can extend the concept to surfaces easily: you just have to retrieve the needed vertices, and connect them with strips.

Dolo/\/\ightY

[This message has been edited by dmy (edited 03-16-2000).]

[This message has been edited by dmy (edited 03-16-2000).]

CyBBe
03-16-2000, 10:45 AM
And how do I do that??? Any example or piece of code???