Posts: 2,404
Threads: 153
Joined: Jan 2005
I was playing with my CAD to get the feel of the 3rd dimension drawing stuff "Z",. and well I created the body of the Blue Gumball (Space Warp Main Ship),. and my CAD can generate Torus's, Cylinders, Speres on quick vertex comands...
Does OpenGL has this? or do you have to have several "GL_TRIANGLES" or "GL_QUADS" to do this???? :???:
Kevin (
x.t.r.GRAPHICS)
Posts: 602
Threads: 27
Joined: Oct 2004
glu the gl utitlity lib provides you with some functions to generate basic shapes like spheres, cubes and even teapots ( uhm wait or was it glut? ). well one of those.
but in general you want to use vertex arrays ( objects ) or displaylists or for starters glBegin( GL_WHATEVER ).
quote="NecrosIhsan"]
[/quote]
Posts: 2,404
Threads: 153
Joined: Jan 2005
Eh, I was just curious.. Like in CAD for say a sphere, I'd hit the sphere tool.. then put a center vertex & radius,.. instant shpere.. :wink:
I was just thinking it suck if OGL lacked this ability.. And others for other shapes.. :roll: :wink:
Kevin (
x.t.r.GRAPHICS)
Posts: 320
Threads: 9
Joined: Dec 2004
I have a feeling that OpenGL can't draw spheres... it's very hard to draw a sphere in realtime (raytracing gives really nice results, but that is not designed for real-time, high-fps rendering anyway).
I'm not entirely sure.
-shiftLynx
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Posts: 2,404
Threads: 153
Joined: Jan 2005
:lol: I didn't mean a sphere in particular.. but :???: my CAD is realtime, handles 'em nicely.. :???: oh well..
A cylinder func would be all I might use.. in the case where I was drawing that ship in CAD.. it helped very nicly in making perfect rockets where I might have missed a few degrees...
But, all in all,. OGL is like CAD with the QUADS,. which would be a 3D_MESH,.. :wink:
Kevin (
x.t.r.GRAPHICS)
Posts: 1,774
Threads: 62
Joined: Aug 2003
Yeah, you can with the gluSphere function.
Heh, I didn't see Marzec's post... :lol:
Posts: 2,404
Threads: 153
Joined: Jan 2005
:lol: Heh, but he wasn't sure if it was glu or glut that preformed that..
Nice Avatar,. looks like a dinosure head at one glance, then you see its a boot..... heh, how you rip it like that? There is little tread wear, so it doesn't seem from usage.. :roll:
Kevin (
x.t.r.GRAPHICS)
Posts: 1,774
Threads: 62
Joined: Aug 2003
I have no idea. I just saw it when I was searching Google for an image of leather that I could use for a texture. I thought it would be pretty funny to have an old torn up boot for an avatar. :???:
:lol:
Posts: 1,080
Threads: 87
Joined: Feb 2002
1) Take a cube made of six polygons.
2) Cut off the corners.
3) Put new polygons to cover the holes.
4) If sphere <> smooth then goto 2
The point being: a sphere in OGL is just a bunch of polygons,
that's probably also how your cad program works when in realtime,
when/if it renders a final image It is possible that it uses raytracing,
or whatever, special methods for surfaces that can
be "mathematically defined" ...or something...
/post]
Posts: 2,404
Threads: 153
Joined: Jan 2005
To Dr_D: Its cool, he he,.. looks weird at first glance, but cool...
To Red Marvin: He he, make like a PSET circle style routine with the vertexs in 3d... that might be slow tho :lol: ,. hmm,.... :wink:
Kevin (
x.t.r.GRAPHICS)