Archive 17/01/2023.

Urho - Place image on plane without rotating it

Jimmy781

Hey guys ,

I’ve just upgraded urhosharp and since then i have been facing an issue.

plane.SetMaterial(Material.FromImage(“image.png”));

It is placing the image on the plane sideways , I tried the new plane.mdl from the urho repo but the issue persists .

Is there any way to fix that ?

artgolf1000

Just checked the latest Plane.mdl, it is alright.
You may rotate the node 90 degrees around Y axes to fix the issue.

George1

I think it would be great if there is a function to change the orientation and translation of the origin coordinate or the Mesh in Urho3D. E.g. Change and save permanently. This would be a time saver.

SirNate0

It would be a nice feature for the editor, at least, though I’m not sure how useful it would be elsewhere, as most models are imported from a proper modelling software that can do more than simply adjust orientation and translation…

Eugene

Transfromation hierarchy is now implemented through nodes. So it would be duplicate functionality if additionally put the same logic in StaticModel.

There is such logic for collision shapes… But collision shapes need it much stronger than graphical components.