|
change linewidth at draw_line3d?
#402092
05/29/12 22:29
05/29/12 22:29
|
Joined: Aug 2011
Posts: 133 Germany, Supergeheimes Hinter-...
gameplan
OP
Member
|
OP
Member
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
|
Hi,
how can I get a stronger line with draw_line3d() ? At the moment, the line uses just 1 px for its width.
Thanks
Last edited by gameplan; 05/29/12 22:42.
Version: A8 free OS: Windows 10
|
|
|
Re: change linewidth at draw_line3d?
[Re: gameplan]
#402099
05/30/12 03:13
05/30/12 03:13
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
by placing a few lines beside each other f.e.: You place a line straight downwards from 0,0,0 -> 0,0,-100 to give this line a strenght of 3: 0,0,0 -> 0,0,-100 1,0,0 -> 1,0,-100 -1,0,0 -> -1,0,-100
|
|
|
Re: change linewidth at draw_line3d?
[Re: Espér]
#402103
05/30/12 03:44
05/30/12 03:44
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
Or make it yourself:
///////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////
// Draw Line particle line drawing
// Lines
function pLineFade(PARTICLE* p)
{
p.size = 5;
}
function pLine(PARTICLE* p)
{
p.size = 5;
set(p, BEAM);
p.lifespan = 0.01;
p.event = pLineFade;
}
function DrawLine(VECTOR* v1, VECTOR* v2) // draw a particle line
{
VECTOR vTemp;
VECTOR vPartPos1;
VECTOR vPartPos2;
vec_set(vPartPos1, v1); // calculate the velocity vector out of the positions
vec_set(vPartPos2, v2);
vec_diff(vTemp, vPartPos2, vPartPos1);
effect(pLine, 1, vPartPos1, vTemp);
}
no science involved
|
|
|
Re: change linewidth at draw_line3d?
[Re: gameplan]
#402231
05/31/12 19:25
05/31/12 19:25
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
User
|
User
Joined: Mar 2012
Posts: 927
cyberspace
|
It would be overkill but maby stretched boxes or flat meshes to form the thickness you desire ... Anyway i remember d3d having thickness functions can't remember if they were particle related ,also what if you could use opengl for it perhaps
Compulsive compiler
|
|
|
|