Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Robert Walter  
#1 Posted : Tuesday, January 17, 2012 10:11:24 PM(UTC)
Robert Walter

Joined: 8/24/2011(UTC)
Posts: 68

Thanks: 4 times
Recently I got the following problem. All content files are loaded correctly from the server. When I start the program, everything flickers for a milisecond and then all my object on the screen have the same image as texture.

This is the logfile:

Code:

01.298 Warning: Unable to set DiffuseMap to 'OpenTKTexture, image=ImageData Name=desk, PixelSize=(1024, 768), BlendMode=Opaque, UV=(Position=(0.000, 0.000), Size=(1, 1)), PixelSize=(1024, 768), UV=(Position=(0.000, 0.000), Size=(1, 1))', shader 'Shader TexturedColoredShader3D (ColoredVertices)' has no diffuseMapHandle!
	at Delta.Graphics.BaseShader.amUKK0vKZHvbleWynhs(System.Object )
	at Delta.Graphics.BaseShader.set_DiffuseMap(Delta.Graphics.BaseTexture value)
	at Delta.Rendering.BaseMaterial.ApplyShaderParameters()
	at Delta.Rendering.MaterialManager+Layer+<>c__DisplayClass1.<Render>b__0()
	at Delta.Graphics.OpenTK.OpenTKShader.FBUvukVQM6ftXl8GGYx(System.Object )
	at Delta.Graphics.OpenTK.OpenTKShader.Render(Delta.Engine.Dynamic.RunDelegate renderDelegate)
	at Delta.Rendering.MaterialManager+Layer.Render()
	at Delta.Rendering.MaterialManager.j9gqCaBR873a4g0SO71(System.Object )
	at Delta.Rendering.MaterialManager.Run()
	at Delta.Engine.Dynamic.DynamicModule.xhIR4iMHib8PH6XhMc(System.Object )
	at Delta.Engine.Dynamic.DynamicModule.RunWithChildrenFirst()
	at Delta.Graphics.Graphic.vosoP6XZOC0l9Id2nc(System.Object )
	at Delta.Graphics.Graphic.Run()
	at Delta.Engine.Application.S1V0pMcn9iUOrTRWQKA(System.Object )
	at Delta.Engine.Application.Run()
	at Delta.Engine.Application.DewV9rZ0Dxp3HS0e75(System.Object )
	at Delta.Engine.Application.StartExecutionLoop()
	at Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
	at Delta.Engine.Application.Start(Delta.Engine.Dynamic.RunDelegate setOptionalRunCode)
	C:\Users\gringlas\Documents\Visual Studio 2010\Projects\DeltaFindIt\DeltaFindIt\Program.cs(19,13): at DeltaFindIt.Program.Main()

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Tuesday, January 17, 2012 11:23:19 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Sounds bad, but I need the project name and maybe a little more information. The error you have described usually only happens when there was an error before that that loading the texture failed (thus no handle, thus the problem with the shader).

Tomorrow a new version of the ContentManager and some ContentSystem fixes are coming anyway, so this issue might be resolved then.
Offline Robert Walter  
#3 Posted : Wednesday, January 18, 2012 12:50:14 AM(UTC)
Robert Walter

Joined: 8/24/2011(UTC)
Posts: 68

Thanks: 4 times
Project name is diplom.

When the program starts, all textures are drawn for maybe a few miliseconds and then there is only drawn a texture called floor.

This is what it looks like:

MaterialColored Error

All Content looks okay in the Debug/Content folder.
When I try to compile a Release version or a new Debug version, the little login window appears and after entering my data the content manager asks for the corresponding content project. It offers DeltaFrindIt - as this is my VS project name -, but the project is called diplom. So I enter it and diplom appears in green letters, but when clicking on ok I recieve an error message, telling me, that there is no content project diplom or that I don't have any rights for it.
When I access the content with the content manager tool, everything looks fine and in place.

Any more informations I could provide?
Offline Benjamin  
#4 Posted : Wednesday, January 18, 2012 2:12:59 AM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Nope, that helps for testing. Hopefully I can reproduce this or it won't appear in v0.9.2.11 anymore because some things have changed ..
Offline Robert Walter  
#5 Posted : Friday, January 20, 2012 3:20:01 PM(UTC)
Robert Walter

Joined: 8/24/2011(UTC)
Posts: 68

Thanks: 4 times
Even with the latest nightly release 0.9.12 I still recieve the
Code:
Unable to set DiffuseMap to 'OpenTKTexture
warning.
I deleted my debug folder and downloaded all stuff again, after setting my content project to version 0.9.2, but still get the error. Everything shows up correctly for a few miliseconds and after that my textures used on billboards won't work anymore Crying
I only revieve thise error for textures used on billboards, for example like:

Code:
BillboardManager.Instance.Draw(new MaterialColored("desk"), new Vector(15.0f, 0.0f, -1.01f), new Size(40.0f, 20.0f), 0.0f, new Vector(0.0f, 1.0f, 0.0f));


All those billboards get the texture I use for a simple Material2D background:

Code:

background = new Material2D("floor");
background.Draw(Rectangle.One);


Hope this new infos might help to track down the error. As I have to finish my thesis on monday it would be cool to have the textures working again. ^^

Edited by user Friday, January 20, 2012 3:27:08 PM(UTC)  | Reason: Not specified

Offline Benjamin  
#6 Posted : Thursday, January 26, 2012 2:35:47 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Dunno if this still helps, but I was only able to track down the issue by looking at earlier errors with the same message. In all cases the shader was messed up (which is actually what the message is saying, diffuseMapHandle is missing). Since the content on the server is using the fallback content project 'Engine', which has correct shaders for OpenTK, your local shader files must be corrupt. Can you check the \Content directory for the TexturedColoredShader3D.DeltaShader file and look into it, it should contain 'diffuseMapHandle'. Try deleting that file .. or send it to me so I can see if it is corrupt.

If the file is okay you must have an issue in the OpenTK Shader loading code, which you can debug locally. Create a breakpoint in the GetUniformHandle method and see what happens when the ShaderUniformNames.DiffuseMap is requested.

Hope that helps. Maybe this issue does not happen in v0.9.2.13 for you anymore ..
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2022, Yet Another Forum.NET
This page was generated in 0.059 seconds.