0 votes

I've written a simple fov algorithm using raycas and updating a polygon in a separate viewport which i then use as a lightmask in a TextureRect.

However while testing the algorithm i noticed that sometimes i get an error and the polygon isn't drawn.

The error message is:
ERROR: VisualServerCanvas::canvasitemaddtrianglearray: Condition ' ps % 3 != 0 ' is true.
At: servers\visual\visualservercanvas.cpp:714

Is it the same as 'Bad Polygon'?

Just setting the polygon works fine and also drawing the polygon to the current viewport instead of a separate one, so i think it's an issue with rendering the viewport.
I'm currently using a 3.1 nightly build.

Appreciate any help.

Edit: Nevermind i'm just stupid and ended up adding the same vertex to the polygon multiple times. Disregard question.

in Engine by (65 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.