Jump to content

The 2D Coordinates of a 3D Position


Shard
 Share

Recommended Posts

Hey everyone.

 

I'm trying to draw 3D lines in my game world but I don't know if Leadwerks can support that so I was contemplating drawing 2D lines based off of the 3D positions.

 

Does anyone know if I can just draw a 3D line or if I have to take some alternate approach?

 

 

Also, the reason I'm doing this is to debug my A* grid, which I want to draw on the screen and be able to see the placement and shape of the grid and the block off areas and whatnot by rendering them.

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

Masterxilo has written a function to make it possible to draw 3D lines (and other 3D shapes) mixed with LE's 3D shapes:

http://leadwerks.com/werkspace/index.php?/page/resources?record=19

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...