Questions tagged [urho3d]

Use this tag for questions about the Urho3D game engine.

Use this tag for questions about the Urho3D game engine.

Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++.

21 questions
4
votes
1 answer

Spatial Anchor with Urho on HoloLens

Does anybody know how to use Spatial Anchors with Urho? I've looked at all the samples, didn't find anything. Nothing in the documentation either. I tried using regular Holographic API: var store = await…
Franck Jeannin
  • 6,107
  • 3
  • 21
  • 33
3
votes
1 answer

How to visualize PhysicsWorld / CollisionShape with debug renderer?

My test scene for Urho3D/Urhosharp contains two boxes (see screenshot). For both, the red and the green box I added a RigidBody and a CollisionShape. The shape for the red box is a sphere and for the blue one a box. I've enabled debug visualisation…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
2
votes
0 answers

How can I make urho3d background become transparent in Xamarin form?

I use Urhosharp to display a 3D model on the Xamarin form, and I want to make the Urhosharp view become transparent so the 3D model can overlay(above) the Xamarin form content. However, it does not work if I set the background color of UrhoSurface…
Developer
  • 133
  • 2
  • 10
2
votes
0 answers

Urho.Forms Transparent Background

Using a Urho.Forms UrhoSurface View in a Xamarin.Forms ContentPage, is it possible to make the background texture on the UrhoSurface View transparent so that the ContentPage contents shows through? i.e. Overlay the UrhoSurface on the ContentPage…
Vincil Bishop
  • 1,594
  • 17
  • 21
1
vote
1 answer

How can I render .obj model in Xamarin.Forms?

I have a .obj file that has a 3D body in it and I want to render it in a Xamarin.Forms app that already exists(made with MvvmCross), so I just want to create a new ContentPage that has the rendered body. The user should be able to view the body from…
bogdanbujdea
  • 594
  • 8
  • 22
1
vote
2 answers

How to reset / restart a Urho3D application scene to its initial state?

I want to reset my scene to its original state when the user presses a key, to facilitate testing or allow users to restart the game. More precisely, how to organize my code, and what do I have to put into: void HandleKeyDown(StringHash…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
1
vote
1 answer

How to detect collision events and run a callback in Urho3D in a 2D world?

I have managed to detect collisions in 3D, but the "analogous" 2D did not work. For the 3D, I do: SubscribeToEvent(E_NODECOLLISION, URHO3D_HANDLER(Main, HandleNodeCollision)); and the callback gets called whenever there is a collision: void…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
1
vote
1 answer

Saving an image from UrhoSharp in headless mode

I'd like to use UrhoSharp to build a command-line tool that draws some stuff and saves the output to a PNG file. I've figured out how to draw what I want in a window, and I can save it (after waiting for a couple of updates) with…
0
votes
0 answers

How to get nearest point on scene mesh to playerr mesh in urho3d?

How to get nearest point on scene model mesh to player model mesh in urho3d? I want to make gravity like in mario galaxy. I tried to get direction to mesh center, but if I have complicated geometry, I think I need closest point on mesh and get…
JustOneMan
  • 231
  • 1
  • 9
  • 34
0
votes
1 answer

How to attach UrhoSharp Surface to LinearLayout in ViewGroup class

I'm trying to add a UrohSharp Surface to a LinearLayout in a class inheriting from ViewGroup (to place in in the left hand corner of another view). Most examples showing UrhoSharp implemented in Android is done directly in the main activity like…
amosti
  • 75
  • 1
  • 6
0
votes
1 answer

Urho3D Sharp DropDownList Popup issue

I am trying to create a DropDownList in Urho3D Sharp. For some reason unknown to me I cannot get the popup to appear from the DropDownList. Does anyone have any tips for creating drop downs in Urho3D Sharp? I have tried calling ShowPopup when the…
Travis Pettry
  • 1,220
  • 1
  • 14
  • 35
0
votes
1 answer

Urho Node Rotate Around

I am trying to rotate an object around a point in UrhoSharp. I have done a lot of learning on how Quaternions work but he node.RotateAround method dosn't seem to follow the rules. When w = 0 or PI I seem to get the correct rotation. However, if I…
Travis Pettry
  • 1,220
  • 1
  • 14
  • 35
0
votes
1 answer

how can i implement drag and drop in urho 3d view?

I have added 3d view objects using urhosharp for my xamarin uwp/ios/android project . The only event that work is touch event, but i also want to use drag and drop so that the objects can move to different locations within the 3D view. Any…
0
votes
1 answer

How to create 2D compound body shapes with offset and rotation in Urho3D?

I want to attach two shapes together so that their relative position stays always constant. The shapes must be placed at specific offsets relative to the center of the node. In Box2D, this can be achieved by making multiple fixtures as mentioned at:…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
0
votes
1 answer

How to scale a Sprite2D in Urho3D without rescaling the entire node?

I want to scale a 2D sprite to be as large as the collision box for the node. I have only managed to do it using Node::SetScale and some manual scaling calculation, but I would rather not do it with this method as it is convoluted, since I have to…
Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
1
2