Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / make a 3d line

Author
Message
Prime_8
22
Years of Service
User Offline
Joined: 10th Apr 2003
Location: Canada
Posted: 21st Apr 2005 05:30
this will draw a 3d line from point a to point b in 3d space ..

it will be 1 pixel wide over the whole lenght

to color it you may have to texture the object

each line requires one tri and that you have upgraded to U58(final pref) ( sounds like a sub designation ) ;D

don't know if anyone else finds this usefull .. but i need it for displaying waypoints and movements for my 3d space thing (nice name eh!) 8)
many uses abound.. and when textured and no wire frame good beam weapons can be made . "real" looking lazers LOL

you can do this with out U58 ..but you have to use mesh / memblock commands or DKshop.dll or .. yuck .. deleting the tri every call for dbc users.

Old coder, returning to DB (DBP)
The Goldorak
20
Years of Service
User Offline
Joined: 29th Aug 2004
Location:
Posted: 1st May 2005 23:15
I read this post only now but it's interesting.
I've got db pro ver 5.2 and it will not run so is it possible to
make a 3d line without memblock ? thanks.

Darkbasic is great !
Prime_8
22
Years of Service
User Offline
Joined: 10th Apr 2003
Location: Canada
Posted: 9th May 2005 12:57
yah if you use DKshop.dll .. it will give you acces to low level poly data.

the original version of my 3d line was built that way.

and the earlier version slow but worked was to delete and recreat a tri every call to same line, when you want to move it ..

just set the last two point of the tri to the same place and it becomes a line

Old coder, returning to DB (DBP)
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 25th May 2005 22:33
it should be

should it not? vertex index starts at 0, not 1, so you moved a non existant vertex and didn't move vertex 0

http://www.larinar.tk
AMD athlon 64 3000+, 512mb ddr400, abit kv8, 160gb hdd, gigabit lan, ati radeon 9800se 128mb.
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 27th May 2005 08:47
Why not just delete the object?


"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 2nd Jul 2005 15:18
ill be using this kthxbye

If you want anything DB related hosted, log in (with ws ftp or something) www.lysergium.net with username [email protected] and password public. you'll be directed to lysergium.net/public
aks74u
20
Years of Service
User Offline
Joined: 2nd Jun 2004
Location: arizona
Posted: 14th Jul 2005 03:49
very coo thx

Over And Out.
Prime_8
22
Years of Service
User Offline
Joined: 10th Apr 2003
Location: Canada
Posted: 13th Oct 2005 09:31
RiiDii :

i know it has been a long time for reply ..

Because it is slow as hell.

2 + 2 = 5 (for extreamly large values of 2)

Login to post a reply

Server time is: 2025-05-15 23:23:08
Your offset time is: 2025-05-15 23:23:08