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
6 registered members (AndrewAMD, Quad, soulman3, Ayumi, steyr, 3run), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Some help with "draw_line3d" #332203
07/08/10 03:45
07/08/10 03:45
Joined: May 2009
Posts: 5,367
Caucasus
3run Online OP
Senior Expert
3run  Online OP
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
I've made three traces, from players center, head and feet.
I tried to draw lines (my first time with draw_line3d), but I failed I guess... grin
Code:
result = c_trace(my.x,vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z),IGNORE_ME|IGNORE_SPRITES|IGNORE_MODELS|SCAN_TEXTURE); 
draw_line3d(vector(my.x,my.y,my.z),COLOR_GREEN,100);  
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z),COLOR_GREEN,100);
///
result = c_trace(my.x,vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z + 50),IGNORE_ME|IGNORE_SPRITES|IGNORE_MODELS|SCAN_TEXTURE); 
draw_line3d(vector(my.x,my.y,my.z + 50),COLOR_RED,100);  
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z + 50),COLOR_RED,100);
//
result = c_trace(my.x,vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z - 50),IGNORE_ME|IGNORE_SPRITES|IGNORE_MODELS|SCAN_TEXTURE); 
draw_line3d(vector(my.x,my.y,my.z - 50),COLOR_BLUE,100);  
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z - 50),COLOR_BLUE,100);

Here is a crazy picture grin grin grin grin grin



Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Some help with "draw_line3d" [Re: 3run] #332211
07/08/10 07:13
07/08/10 07:13
Joined: Apr 2005
Posts: 274
austria
Ascalon Offline
Member
Ascalon  Offline
Member

Joined: Apr 2005
Posts: 274
austria
the problem is, that draw_line connect all drawpoints ! so, if you want to start a new line, you have to set a invisible line from the last drawing-point to the new start drawing-point. i hope, you understand me, sorry for my bad english


my webside : www.ascalon.jimdo.de
Re: Some help with "draw_line3d" [Re: Ascalon] #332219
07/08/10 07:57
07/08/10 07:57
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
Ascalon is right... to fix that, do it like this:

Code:
result = c_trace(my.x,vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z),IGNORE_ME|IGNORE_SPRITES|IGNORE_MODELS|SCAN_TEXTURE); 
draw_line3d(vector(my.x,my.y,my.z),COLOR_GREEN,0);  
draw_line3d(vector(my.x,my.y,my.z),COLOR_GREEN,100);  
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z),COLOR_GREEN,100);
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z),COLOR_GREEN,0);
///
result = c_trace(my.x,vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z + 50),IGNORE_ME|IGNORE_SPRITES|IGNORE_MODELS|SCAN_TEXTURE); 
draw_line3d(vector(my.x,my.y,my.z + 50),COLOR_RED,0);  
draw_line3d(vector(my.x,my.y,my.z + 50),COLOR_RED,100);  
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z + 50),COLOR_RED,100);
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z + 50),COLOR_RED,0);
//
result = c_trace(my.x,vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z - 50),IGNORE_ME|IGNORE_SPRITES|IGNORE_MODELS|SCAN_TEXTURE); 
draw_line3d(vector(my.x,my.y,my.z - 50),COLOR_BLUE,0);  
draw_line3d(vector(my.x,my.y,my.z - 50),COLOR_BLUE,100);  
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z - 50),COLOR_BLUE,100);
draw_line3d(vector(my.x + 30 * cos(my.pan), my.y + 30 * sin(my.pan), my.z - 50),COLOR_BLUE,0);



regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Some help with "draw_line3d" [Re: Helghast] #332299
07/08/10 16:16
07/08/10 16:16
Joined: May 2009
Posts: 5,367
Caucasus
3run Online OP
Senior Expert
3run  Online OP
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
OK, now it's clear for me laugh Thank you all for your help.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

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