EgorBo

Badges

Third Anniversary25 Likes25 Answers100 CommentsSecond Anniversary5 AnswersFirst AnniversaryName Dropper10 CommentsFirst Answer5 LikesFirst CommentPhotogenic

About

Username
EgorBo
Location
BY
Joined
Visits
2,069
Last Active
Roles
Xamarin Team
Points
354
Twitter
@https://twitter.com/EgorBo
Github URL
https://github.com/EgorBo
Badges
13

EgorBo ✭✭✭

About

Username
EgorBo
Location
BY
Joined
Visits
2,069
Last Active
Roles
Xamarin Team
Points
354
Twitter
@https://twitter.com/EgorBo
Github URL
https://github.com/EgorBo
Badges
13
  • Re: UrhoSharp - Sending events is only supported from the main thread (works on iOS , not Android)

    So it looks like addItem is called outside of the game thread (on some platforms it's not the main UI thread).
    You can switch to the game thread via this code:
    await Urho.Application.ToMainThreadAsync();
    //... your code

    or just

    Urho.Application.InvokeOnMain(() => your code);

  • Re: Take screenshot to bytes

    I've just added SavePNG that returns byte data. Will be available via nuget soon.

  • Re: Does UrhoSharp actually work with Xamarin.Forms multi-page app?

    Navigation issue has been fixed in master for iOS.
    I'll release an update once I fix Android UrhoSurface.

  • UrhoSharp 1.3.0 Released

    Bug-fixes:

    • #182 Polyhedron class missing
    • #181 IntRect marshalling
    • #151 missing XmlFile.GetRoot
    • #183 UwpSurfaceRenderer - NRE.
    • #172 Color and Material Anomalies
    • #193 NullReferenceException at Urho.Physics.CollisionData.FromContactData
    • FadeTo.ToOpacity return type (byte->float)
    • VS templates syntax error

    Features:

    • Node::RunActionsAsync can now throw an OperationCanceledException if the Urho window is closed befor actions are finished (usefull for Workbooks)
    • Bound Localization component, ChangeLanguage event
    • Bound GPUObject. Close #176
    • Bound File::Size, MemoryBuffer::Size, add File.Read() method.
    • Bound methods accepting XMLElement
    • Bound Frustum type
    • Added SetData(byte[]) to Texture2D
    • Added Mulitsampling property in ApplicationOptions
    • HoloLens x64 support
    • Predefined structs for VertexBuffer::SetData
    • AppOptions - set HighDpi to false for OSX by default
    • New ctors in Matrix3x4

    New package: UrhoSharp.Tools

    The package contains the following Urho3D native binaries:

    • AssetImporter (macOS, win64) See official docs.
    • PackageTool (macOS, win64)
      just add the package to any of your projects and the binaries will be automatically copied to output directories (or will be added as EmbeddedResource).

    I wrote a small GUI app over the AssetImporter tool in order to quickly preview well-known 3D formats and convert them to UrhoSharp Models/Prefabs;

    Roadmap for 1.4

    • Crashes (iOS, Android)
    • Better XForms support
    • Better UWP support
    • Documentation
  • Re: How to change background color

    @MdTahmidMozaffar said:
    Thank you for this solution. Actually I have tried this earlier but did not succeed. I have done this using another solution. Here is what I wrote to change the background of my urhosharp view.... This is working for me.

    var zone = Renderer.DefaultZone;
    zone.FogColor = new Color (0.65f, 0.8f, 0.6f, 0);

    With the latest version (1.0.410) you can use:

    var viewport = new Viewport(Context, Scene, Camera, null);
    Renderer.SetViewport(0, viewport);
    viewport.SetClearColor(Color.Yellow);