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.

DarkBASIC Professional Discussion / 3d Lines with thickness?

Author
Message
JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 13th Dec 2012 16:30
I know that cloggy's dll does 3D lines, and does them quite well. Is there a way to make that line a little thicker for better visibility?

Thanks

Home is where my souped-up computer is...
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 13th Dec 2012 16:40
The first thing that comes to mind would be to draw multiple 3D lines, spaced a bit from each other so the line appears to look thicker. You'd have to change the distance of the lines according from one another according to the camera's distance, which could get a bit dirty.

The other option you have is to use a cylinder object between the two coordinates, and change the XZ scale of the cylinder according to the distance of the camera (presuming you want to keep the thickness of the line, regardless of camera distance). You'd need to set the object to not accept lighting (set object light obj,0) for its colour to look clear enough.

TheComet

JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 13th Dec 2012 17:42
the cylinder solution is a bit of overkill for me. I have the 3d line command from Cloggy's dll. I just need to know how to transform the positions of the other 2 lines next to the central 3d line.

All I need is 3 lines to work for what I want. I can adjust the spacing between the lines just fine. I just have to figure out how to place the 2 outside lines parallel to the middle one no matter how the middle one is angled in 3d space.

Home is where my souped-up computer is...
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 13th Dec 2012 18:31
MAKE OBJECT PLANE
MAKE OBJECT PLAIN

?

TheComet, that banner made me laugh hahahha it's cute and caught my attention for a good 20 seconds lol the forum ads barely catch my attention for more than a fraction of a second lol

JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 13th Dec 2012 19:02
The reason I would like to use Cloggy's 3d line function is that it's line can start off one color and end up another on the fly. It's what I need for my current project. using objects and texturing them with every possible color would be impractical to say the least.

Home is where my souped-up computer is...
thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 14th Dec 2012 00:02
Here's a quick function I made to generate a plain that starts off one color and ends another color. It just uses a diffuse value stored in the object's vertexdata. I don't know if this is what you want, but I hope this helps


Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 14th Dec 2012 07:30
Here is a simple way of doing it...

Login to post a reply

Server time is: 2026-07-08 03:49:14
Your offset time is: 2026-07-08 03:49:14