Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenGL VS CAD
#1
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)

[Image: 11895-r.png]
Reply
#2
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"]
[Image: yagl1.png]
[/quote]
Reply
#3
Smile 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)

[Image: 11895-r.png]
Reply
#4
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. Smile

-shiftLynx
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Reply
#5
: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)

[Image: 11895-r.png]
Reply
#6
Yeah, you can with the gluSphere function. Wink

Heh, I didn't see Marzec's post... :lol:
Reply
#7
: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)

[Image: 11895-r.png]
Reply
#8
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:
Reply
#9
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]
Reply
#10
Big Grin 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)

[Image: 11895-r.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)