Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: ImmediateGeometry3D is not visible #39451

Closed
nightrobin opened this issue Jun 11, 2020 · 10 comments
Closed

Vulkan: ImmediateGeometry3D is not visible #39451

nightrobin opened this issue Jun 11, 2020 · 10 comments

Comments

@nightrobin
Copy link

nightrobin commented Jun 11, 2020

Godot version:
4.0.dev Commit: ffbea8a

OS/device including version:
Windows 10 - 64 Bit

Issue description:
ImmediateGeometry3D is not visible when I try to draw a line
I haven't encoutered this issue on Version 3.2.1 stable

Steps to reproduce:
On function _ready()

$ImmediateGeometry3D.clear()
$ImmediateGeometry3D.begin(Mesh.PRIMITIVE_LINES, null)
$ImmediateGeometry3D.add_vertex(Vector3(1, 2, 1))
$ImmediateGeometry3D.add_vertex(Vector3(3, 2, 3))
$ImmediateGeometry3D.end()

Minimal reproduction project:
Draw.zip

@clayjohn
Copy link
Member

ImmediateGeometry probably hasn't been implemented yet.

@clayjohn clayjohn added this to the 4.0 milestone Jun 11, 2020
@nightrobin
Copy link
Author

@clayjohn What class/object I can use as a workaround for the meantime that I can use to draw lines? :)

@clayjohn
Copy link
Member

You may be able to use ArrayMesh. Take a look at this doc for alternatives.

Keep in mind that 4.0 is unstable and isn't even in an alpha stage yet. You can't expect to be able to do everything in it yet.

You really should be using 3.2 if you want to work on any projects.

@nightrobin
Copy link
Author

Thanks!

@Calinou Calinou changed the title ImmediateGeometry3D is not visible Vulkan: ImmediateGeometry3D is not visible Jun 11, 2020
@nightrobin
Copy link
Author

@Calinou I encounter this error even when I choose GLES2 in the Project Settings.

@akien-mga
Copy link
Member

There's no GLES2 backend in the current master branch.

Again, if you're not familiar with the current state of the development branch, it's is strongly recommended that you stick to the stable 3.2 branch. Godot 4.0 is under heavy development and definitely not usable in production, nor supported as such.

@nightrobin
Copy link
Author

Noted on this! 😅

@Calinou
Copy link
Member

Calinou commented Jun 11, 2020

This issue is still relevant - we should reimplement ImmediateGeometry3D in Vulkan.

@Calinou Calinou reopened this Jun 11, 2020
@TokageItLab
Copy link
Member

Ah, I was looking for this issue and it has caused some similar issues to be posted. Some classes are using ImmediateGeometry and all of them do not work correctly in 4.0.

@akien-mga
Copy link
Member

Fixed by #50014.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants