This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi! what i need to know is, if there is some way to keep the 3d sprite size the same no matter how far is the camera.
I am doing an asteroid 3d game, and i have draw some red boxes in billboard mode to point where are the asteroids, but if the asteroids are far, the red boxes are tinny.

I know i could draw them in a canvas layer with the getglobaltransformwithcanvas(), but i really don't want to take that road.

thanks!

Godot version Godot 3-3
in Engine by (81 points)

1 Answer

+1 vote
Best answer

in the shader material properties, there is one flag called "fixed size", i think this is what you are looking for

by (1,514 points)
selected by

It's Fixed Size, not Fixed Side :)

Lol thank you

yes! this did the trick, i had to create a material, but it works! i was going to calculate the distant to the camera and then interpolate to fixe the size, but like every time things get complicate, it's because somewhere there is a unchecked chekbox. xD ! thanks a lot

yes! this did the trick, i had to create a material, but it works! i was going to calculate the distant to the camera and then interpolate to fix the size, but like every time things get complicate, it's because somewhere there is a unchecked chekbox. xD ! thanks a lot

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 Frequently asked questions and 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 [email protected] with your username.