Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
change linewidth at draw_line3d? #402092
05/29/12 22:29
05/29/12 22:29
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

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 Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
by placing a few lines beside each other laugh

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


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Or make it yourself:

Code:
///////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////
// 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: fogman] #402154
05/30/12 18:04
05/30/12 18:04
Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
G
gameplan Offline OP
Member
gameplan  Offline OP
Member
G

Joined: Aug 2011
Posts: 133
Germany, Supergeheimes Hinter-...
Thank you for answering. I am useing the free version of A8. So i am unable to use beams.

Last edited by gameplan; 05/30/12 18:04.

Version: A8 free
OS: Windows 10
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
W
Wjbender Offline
User
Wjbender  Offline
User
W

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

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1