Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
visible traces #391409
01/11/12 19:23
01/11/12 19:23
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline 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: Random] #391411
01/11/12 19:30
01/11/12 19:30
Joined: May 2009
Posts: 5,367
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
Just use "draw_line3d" my friend, take a look at the manual laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: visible traces [Re: 3run] #391414
01/11/12 20:12
01/11/12 20:12
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Ok, but I surely did something wrong:

Quote:
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 Offline
Expert
Rei_Ayanami  Offline
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: Rei_Ayanami] #391418
01/11/12 21:04
01/11/12 21:04
Joined: May 2009
Posts: 5,367
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
You need to define start and end positions of the line with help of two 'dram_line3d' calls. The first one is the start position, second one is end. Example, above.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: visible traces [Re: Random] #391456
01/12/12 14:07
01/12/12 14:07
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
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:
Code:
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




"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: visible traces [Re: Carlos3DGS] #391457
01/12/12 14:11
01/12/12 14:11
Joined: May 2009
Posts: 5,367
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
You can use "COLOR_" for defining line's color laugh
Code:
draw_line3d(start_pos, NULL, 100);   
draw_line3d(start_pos, COLOR_RED, 100); 
draw_line3d(end_pos, COLOR_RED, 100);




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: visible traces [Re: 3run] #391458
01/12/12 14:18
01/12/12 14:18
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline
User
Carlos3DGS  Offline
User

Joined: Oct 2008
Posts: 513
Also keep in mind, depending what you are using this for, you might want to use a particle instead.

Take a look in the manual for the BEAM and STREAK particle flags


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
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 Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
draw_line3d is already working with particles itself.
Originally Posted By: Manual
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 Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Does somebody have any examples?
Really nothing is happening...

Quote:
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.


Page 1 of 2 1 2

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