Urho Plane - Vector3 size to px

Someone can help you.

Urho Plane - Vector3 size to px

PostPosted by Jimmy78 » 02 Jan 2017, 18:37

Hey guys ,

I created a plane :

_scene = new Scene();

var planeNode = _scene.CreateChild("Plane");
planeNode.Scale = new Vector3(500.0f, 1.0f, 500.0f);

I have an image 500px*500px which i set on the plane :


However , it seems the 1.0f is not equal to 1px of the image . (I wanted the plane and the image to have the same size or ratio - e.g : 1px of the image = 1.0f of the plane)

Is there any way to do that ?

and how much is 1.0f of Vector compared to 1px ?
User avatar
New user
New user
Posts: 10
Joined: 26 Nov 2016, 17:55

Re: Urho Plane - Vector3 size to px

PostPosted by Modanung » 02 Jan 2017, 20:42

for (Person* p : people)
User avatar
Active user
Active user
Posts: 171
Joined: 22 Jan 2015, 14:53
Location: The Netherlands

Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests