|
1 registered members (AndrewAMD),
599
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
visible traces
#391409
01/11/12 19:23
01/11/12 19:23
|
Joined: Feb 2010
Posts: 886
Random
OP
User
|
OP
User
Joined: Feb 2010
Posts: 886
|
I just wanted to ask: Is there a setting or something special to make all traces visible? If not, how can I do that?
Please answer, this would be a big help!
|
|
|
Re: visible traces
[Re: 3run]
#391414
01/11/12 20:12
01/11/12 20:12
|
Joined: Feb 2010
Posts: 886
Random
OP
User
|
OP
User
Joined: Feb 2010
Posts: 886
|
Ok, but I surely did something wrong: VECTOR trace_coords; vec_set(trace_coords.x,vector(100,0,0)); vec_rotate(trace_coords.x,my.pan); vec_add(trace_coords.x,my.x); c_trace(trace_coords.x,my.x, IGNORE_ME|IGNORE_PASSABLE); draw_line(trace_coords.x,vector(0,0,255),100); No line is showing up...
|
|
|
Re: visible traces
[Re: Random]
#391415
01/11/12 20:13
01/11/12 20:13
|
Joined: Feb 2009
Posts: 3,207 Germany, Magdeburg
Rei_Ayanami
Expert
|
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
draw_line(my.x,NULL,100); draw_line(trace_coords.x,vector(0,0,255),100);
|
|
|
Re: visible traces
[Re: Random]
#391456
01/12/12 14:07
01/12/12 14:07
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
User
|
User
Joined: Oct 2008
Posts: 513
|
-If you want it in 3d space, don't use draw_line, use draw_line3d -The color on the line start is the previous line color (not counting NULL), the end of the line will be the color of the current line color, the length of the line will be drawn as a mix of the previous and current line colors. keep in mind you might add other line functions and it will mess up your lines colors. I do it like this:
draw_line3d(my.x,NULL,100); //move to start position withought drawing
draw_line3d(my.x,vector(0,0,255),100); //make sure the start color is the correct one withought moving your line
draw_line3d(trace_coords.x,vector(0,0,255),100); //draw the full line with the correct end color
|
|
|
Re: visible traces
[Re: Carlos3DGS]
#391461
01/12/12 16:25
01/12/12 16:25
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
draw_line3d is already working with particles itself. Every 3D line is using a particle, so adjust max_particles if you need many lines.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: visible traces
[Re: Uhrwerk]
#391548
01/13/12 19:26
01/13/12 19:26
|
Joined: Feb 2010
Posts: 886
Random
OP
User
|
OP
User
Joined: Feb 2010
Posts: 886
|
Does somebody have any examples? Really nothing is happening... VECTOR trace_coords; vec_set(trace_coords.x,vector(1000,0,0)); vec_rotate(trace_coords.x,my.pan); vec_add(trace_coords.x,my.x); c_trace(my.x,trace_coords.x,IGNORE_ME|IGNORE_PASSABLE); if(trace_hit) { draw_line3d(my.x,NULL,100); draw_line3d(my.x,COLOR_RED,100); draw_line3d(target.x,COLOR_RED,100); draw_point3d(target.x,COLOR_RED,100,3); } else { if(!trace_hit) { draw_line3d(my.x,NULL,100); draw_line3d(my.x,COLOR_RED,100); draw_line3d(trace_coords.x,COLOR_RED,100); draw_point3d(trace_coords.x,COLOR_RED,100,3); } }
Last edited by Random; 01/13/12 19:31.
|
|
|
|