0 votes

So I`m trying to figure out how to make a texture editor for meshes and to do this I gotta get the 2D pixel position on the texture of the mesh that the mouse is hovering over so I can then edit it and such.
In other words like the Human fall flat character editor where you can draw on the mesh and edit its texture.

Godot version 3.5
in Engine by (16 points)

You can use a raycast3D to get the global 3d position of where the mouse hovering. I feel like that's a start. You'd probably have to read up on geometry to figure out the rest.

for 3d
example : Statickbody , use signal

func _on_Statickbody_input_event(camera, event, position, normal, shape_idx):
  pass

or
as SweetPie said
https://godotengine.org/qa/25922/how-to-get-3d-position-of-the-mouse-cursor

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 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.