0 votes

Hi, I have a project where a lot of the GUI will consist of lines drawn in 3D. These in include straight lines as well as elliptical and parabolic curves (think celestial orbits).

There will be lots of different lines so I don't want to have to differentiate them with color alone, but also be able to vary line thickness and use dashed/dotted lines.

I've looked into using Immediate Geometry to draw lines, but it seems very limited. For one, while I am able to change the emission color using a material, I cannot figure out a way to vary the length of the lines.

Furthermore, the only way to draw dashed lines with Immediate Geometry seems that you need to create an node for every single dash. I am worried that this will not scale, both in terms of performance, and literally, the dash pattern does not scale if the camera zooms out, instead becoming hard to see.

I need to use 3D curves as I want to render elliptical lines while allowing the user to orbit the camera around to see them from different angles. What is the right approach here? Is Godot the right tool for this job, or should I consider something else?

in Engine by (35 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.