World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-25-2012, 08:05 PM   #1
Kashank
Senior Member
 
Join Date: Jun 2009
Posts: 128
Kashank is on a distinguished road
Default Drawing a Doughnut/Torus

I'm trying to properly draw a doughnut in worldwind, when I use

glut.glutSolidTorus(.5,1,50,50);

EDIT: Removed the question about a yellow circle

Is there a proper way to use GLUT or am I okay to just instantiate a GLUT object, and reference it? (which is what I'm doing)

Also is there another/better way to draw a doughnut object?

Thanks

Last edited by Kashank; 07-25-2012 at 09:18 PM. Reason: removed references to the yellow circle
Kashank is offline   Reply With Quote
Old 07-26-2012, 04:54 PM   #2
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,027
tag is on a distinguished road
Default

See the tutorial on creating custom renderables: http://goworldwind.org/developers-gu...om-renderable/
tag is offline   Reply With Quote
Old 07-26-2012, 10:55 PM   #3
Kashank
Senior Member
 
Join Date: Jun 2009
Posts: 128
Kashank is on a distinguished road
Default

hmm interesting, I've been doing it a similar way

I actually draw custom renderables using a different method (using glLists, etc.) but not implementing Renderable/orderedRenderable...

I've solved the OP question; however, I might try to rewrite my code using your link

Thanks
Kashank is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing order of layers BuM Development Help 10 03-06-2012 11:25 AM
Problems Drawing Polygons Bob0 Development Help 2 05-28-2010 02:50 PM
Free Hand Drawing Polygons, Arcs, Circles thomlep WorldWind General 16 03-02-2010 01:29 PM
FalconView drawing files Jekyll Development Help 5 04-14-2009 04:05 PM
DirectX clipping seems to fix all drawing bugs millka Developers' Corner 7 04-05-2005 11:14 PM


All times are GMT +1. The time now is 01:21 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.