Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Draw 3d circles using Cloggy's D3Dfunc plugin

Author
Message
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 10th Mar 2006 01:03 Edited at: 10th Mar 2006 01:41
The subject line says it all.



This is a bit of a cheap hack until (I hope) Cloggy puts a 3d circle command directly into his wonderful plugin.

[edit]

Those of you with sharp eyes will also notice from the code within the for/next loop in the circle 3d function a simple way to rotate one vector around another arbitrary vector axis using the DBPro matrix commands.

Don't say I don't give value for money.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Morcilla
22
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 10th Mar 2006 12:36
Quite elegant indeed. Excellent job
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 10th Mar 2006 13:39
Yeah except that I forgot to scale the circular vector by the radius. So at the moment it only draws unit circles. My oversight. I'll amend this sometime later today or tomorrow.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 10th Mar 2006 22:39
Revised code to enable the radius parameter:



There is some kind of weird issue with the perpendicular vector. I'm reporting it to Lee.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Mar 2006 02:52
how about a link to this d3d plugin for those of us who've never heard of it


Essence
22
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 12th Mar 2006 14:03
It doesn't work for me...

Philip
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 12th Mar 2006 14:16
@Phaelax

Take a look on the programme announcement's board. Its the thread that reads d3dfunc.

Philip

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "

Login to post a reply

Server time is: 2025-05-15 06:22:32
Your offset time is: 2025-05-15 06:22:32