Re: [Unity] v1.2 Preview
x64 is not included in the current beta. What is happening is that it is using the dll from the v1.1 version because you probably upgraded from that version.I'm getting the following exception on x64 build but it does not occur on x86 build. Here is the exception
Thanks for reporting!
Re: [Unity] v1.2 Preview
Sorry I didn't understand your question. I said that whenever the v1.2 becomes stable the update cycle will be the same as in v1.1 (2-4 weeks). But in the beta phase, we will update more frequently. At least, right now, that we are providing only x86 binaries. In fact, we are preparing a new version for today.Thank you for your answer but I wanted to know the update cycle of the 1.2 beta version. 2-4 weeks appear to be a bit long for that, especially as there could be breaking bugs in there. If that's the case I don't think testing it would be really feasible.
Re: [Unity] v1.2 Preview
Great!We fixed both issues. We are going to release a new beta in the next 24h.After attaching unity vs and debugging this is where the issue is. http://gyazo.com/d6852b027c55857d7b28912f234a9c33 System.InvalidOperationException: Native type is not registered. Hopefully you guys can help me out with this.
Thanks for reporting!
Re: [Unity] v1.2 Preview
New version available with the problems reported here (and a lot more) fixed!
Re: [Unity] v1.2 Preview
So with the new version I am getting a new error with my RenderTexture code.
Also when i debug this using unity vs I get the same error as before http://gyazo.com/2e5058edfdcf7804a3636dd7293ea18c
Code: Select all
renderTexture = gameManager.GetComponent<Minimap>().Output; //render texture
Noesis.ImageBrush texBrush = new Noesis.ImageBrush();
texBrush.ImageSource = new Noesis.TextureSource(renderTexture);
MinimapRenderGrid.Background = texBrush;
Code: Select all
Exception: device->CreateShaderResourceView(mTexture, 0, &mView)[0x80070057]
Noesis.Error.Check () (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisError.cs:60)
Noesis.UIRenderer.Noesis_UpdateRenderer (Int32 rendererId, Double timeInSeconds) (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisUIRendererImports.cs:141)
Noesis.UIRenderer.Update (Double timeInSeconds, AntialiasingMode aaMode, TessellationMode tessMode, TessellationQuality tessQuality, RendererFlags flags, Boolean enableMouse, Boolean enableTouch, Boolean enablePostProcess, Boolean flipVertically) (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisUIRenderer.cs:87)
NoesisGUIPanel.LateUpdate () (at Assets/Plugins/NoesisGUI/Scripts/NoesisGUIPanel.cs:179)
Last edited by kayrk on 02 Oct 2014, 18:44, edited 1 time in total.
Re: [Unity] v1.2 Preview
Could you please this minimal sample and tell me if it works?
Attach the script to a camera, copy the xaml to the camera also and copy a texture to /Assets/Resources/cat.jpg.
Thanks!
Code: Select all
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
</Grid>
Code: Select all
using UnityEngine;
using System.Collections;
using Noesis;
public class Test : MonoBehaviour {
// Use this for initialization
void Start ()
{
UnityEngine.Texture2D texture = Resources.Load("cat", typeof(Texture2D)) as Texture2D;
Noesis.ImageBrush brush = new Noesis.ImageBrush();
brush.ImageSource = new Noesis.TextureSource(texture);
var noesisGUI = GetComponent<NoesisGUIPanel>();
var grid = noesisGUI.GetRoot<Grid>();
grid.Background = brush;
}
// Update is called once per frame
void Update ()
{
}
}
Thanks!
Re: [Unity] v1.2 Preview
So if you change in your code this line
to
does it work?
If affirmative, what kind of object is the render texture stored inside the minimap component.
Code: Select all
renderTexture = gameManager.GetComponent<Minimap>().Output; //render texture
Code: Select all
renderTexture = Resources.Load("cat", typeof(Texture2D)) as Texture2D;
If affirmative, what kind of object is the render texture stored inside the minimap component.
Re: [Unity] v1.2 Preview
I can't do that cause renderTexture is a RenderTexture not a Texture2D. Output type is RenderTexture. If you need me to post my Minimap class I can.
Re: [Unity] v1.2 Preview
My fault... We only tried with normal textures, no render textures in DX11. I am getting the same error here now. Let me see how to solve it and generate a new version of the Beta.
Who is online
Users browsing this forum: No registered users and 0 guests