SiliconStudio / xenko

Old repo for Xenko Game Engine. Please use https://github.com/xenko3d/xenko instead.
http://xenko.com
1.54k stars 346 forks source link

HDR Skybox import #239

Open ShadowK12 opened 9 years ago

ShadowK12 commented 9 years ago

I was just messing around with the engine, tried to follow the artist introduction video. Imported a HDR as both a .JPG and .PSD format, created the Skylight / Skybox and imported / added the .HDR image to the Skybox (CubeMap section).

Nothing happens, just to check what was going on (looked for logs). Ran a build and for some reason it can't reference the skybox:

[]: Error: Unhandled exception: Could not find asset Skybox for bundle default Exception: Could not find asset Skybox for bundle default

xen2 commented 9 years ago

Thanks for the feedback.

Noticed that some software generate .dds that are texture arrays (6 textures) instead of a cubemap. Can you upload it somewhere (or we can give you an email if you prefer to keep it private) to make sure it's the issue there?

jmkinzer commented 9 years ago

Unclear if this is related (or simple user error)... using the sample skybox dds included in the "New Game" template, clearing the texture from the skybox asset and then reassigning it (or referencing it in a new skybox asset) yields this error in 1.2:

Location Skybox Texture does not exist currently and is required to compute the current command hash. The build cache will not work for this command!

xenux commented 8 years ago

I could not reproduce the issue. Do you have further details to reproduce or can I close the issue?

coshkun commented 8 years ago

it is quite simple to reproduce: just make a new project save to disk and build it.. wala!! i tried with different engine versions (1.7 / 1.6) and different targets like 10 / 10.1 / 11 / 9.1 all gives the same error.. only option to run is delete the default skybox :(

here is the full stack fm my Project (engine 1.7.6 / render target 10.1 and all settings are default)

[(0,0)]: Info: Assembly [SkyWall3D.Game, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null] has already been processed, skip it. [(0,0)]: Info: SkyWall3D.Game -> C:\GitHub\SkyWall3D\SkyWall3D\Bin\Windows\Debug\SkyWall3D.Game.dll [(0,0)]: Info: Patch for assembly [SkyWall3D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null] [(0,0)]: Info: SkyWall3D.Windows -> C:\GitHub\SkyWall3D\SkyWall3D\Bin\Windows\Debug\SkyWall3D.exe [(0,0)]: Info: Waiting 100ms for the proxy server to start and connect to it [(0,0)]: Info: Waiting 100ms for the proxy server to start and connect to it [(0,0)]: Info: Waiting 100ms for the proxy server to start and connect to it []: Info: BuildEngine arguments: --disable-auto-compile --project-configuration Debug --platform=Windows --profile=Windows --project-configuration=Debug --output-path=C:\GitHub\SkyWall3D\SkyWall3D\Bin\Windows\Debug\data --build-path=C:\GitHub\SkyWall3D\SkyWall3D\SkyWall3D.Windows\..\obj\data --package-file=C:\GitHub\SkyWall3D\SkyWall3D\SkyWall3D.Windows\..\SkyWall3D.xkpkg --log-pipe=net.pipe://localhost/SiliconStudio.Assets.Editor.03ae7403-d8ed-441f-b6ab-80b0ab1dd12d --verbose []: Info: Starting builder. []: Error: Exception in command SkyboxAsset: 1006dce9-e127-4dcb-9cb5-0efb3b96ba7a: System.ArgumentException: c:\program files\silicon studio\xenko\gamepackages\xenko.1.7.6-beta\assets\shared\ımages dizin adı geçersiz. konum: System.IO.FileSystemWatcher.set_Path(String value) konum: SiliconStudio.Core.IO.DirectoryWatcher.CreateFileSystemWatcher(String directory) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\core\SiliconStudio.Core.IO\DirectoryWatcher.Windows.cs içinde: satır 258 konum: SiliconStudio.Core.IO.DirectoryWatcher.Track(DirectoryInfo info, Boolean watcherNode) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\core\SiliconStudio.Core.IO\DirectoryWatcher.Windows.cs içinde: satır 208 konum: SiliconStudio.Core.IO.DirectoryWatcher.TrackInternal(String path) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\core\SiliconStudio.Core.IO\DirectoryWatcher.Windows.cs içinde: satır 58 konum: SiliconStudio.Xenko.Rendering.EffectSystem.CreateEffect(String effectName, EffectBytecodeCompilerResult effectBytecodeCompilerResult, CompilerResults compilerResult) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\EffectSystem.cs içinde: satır 237 konum: SiliconStudio.Xenko.Rendering.EffectSystem.LoadEffect(String effectName, CompilerParameters compilerParameters) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\EffectSystem.cs içinde: satır 0 konum: SiliconStudio.Xenko.Rendering.DynamicEffectInstance.ChooseEffect(GraphicsDevice graphicsDevice) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\DynamicEffectInstance.cs içinde: satır 51 konum: SiliconStudio.Xenko.Rendering.EffectInstance.UpdateEffect(GraphicsDevice graphicsDevice) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Graphics\Rendering\EffectInstance.cs içinde: satır 56 konum: SiliconStudio.Xenko.Rendering.Images.ImageEffectShader.DrawCore(RenderDrawContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\Images\ImageEffectShader.cs içinde: satır 118 konum: SiliconStudio.Xenko.Rendering.ComputeEffect.LambertianPrefiltering.LambertianPrefilteringSHNoCompute.DrawCore(RenderDrawContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\ComputeEffect\LambertianPrefiltering\LambertianPrefilteringNoCompute.cs içinde: satır 99 konum: SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderDrawContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\RendererBase.cs içinde: satır 48 konum: SiliconStudio.Xenko.Assets.Skyboxes.SkyboxGenerator.Compile(SkyboxAsset asset, SkyboxGeneratorContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Assets\Skyboxes\SkyboxGenerator.cs içinde: satır 107 konum: SiliconStudio.Xenko.Assets.Skyboxes.SkyboxAssetCompiler.SkyboxCompileCommand.DoCommandOverride(ICommandContext commandContext) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Assets\Skyboxes\SkyboxAssetCompiler.cs içinde: satır 92 konum: SiliconStudio.BuildEngine.Command.DoCommand(ICommandContext commandContext) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\buildengine\SiliconStudio.BuildEngine.Common\Command.cs içinde: satır 80 konum: SiliconStudio.BuildEngine.CommandBuildStep.<StartCommand>d__21.MoveNext() C:\TeamCity\work\d8c64cdc22790f8f\sources\common\buildengine\SiliconStudio.BuildEngine.Common\CommandBuildStep.cs içinde: satır 0 [C:/GitHub/SkyWall3D/SkyWall3D/Assets/Shared/Skybox.xksky(1,1)]: Error: BuildStep SkyboxAsset: 1006dce9-e127-4dcb-9cb5-0efb3b96ba7a failed. []: Error: Exception in command SkyboxAsset: 1006dce9-e127-4dcb-9cb5-0efb3b96ba7a: System.ArgumentException: c:\program files\silicon studio\xenko\gamepackages\xenko.1.7.6-beta\assets\shared\ımages dizin adı geçersiz. konum: System.IO.FileSystemWatcher.set_Path(String value) konum: SiliconStudio.Core.IO.DirectoryWatcher.CreateFileSystemWatcher(String directory) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\core\SiliconStudio.Core.IO\DirectoryWatcher.Windows.cs içinde: satır 258 konum: SiliconStudio.Core.IO.DirectoryWatcher.Track(DirectoryInfo info, Boolean watcherNode) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\core\SiliconStudio.Core.IO\DirectoryWatcher.Windows.cs içinde: satır 208 konum: SiliconStudio.Core.IO.DirectoryWatcher.TrackInternal(String path) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\core\SiliconStudio.Core.IO\DirectoryWatcher.Windows.cs içinde: satır 58 konum: SiliconStudio.Xenko.Rendering.EffectSystem.CreateEffect(String effectName, EffectBytecodeCompilerResult effectBytecodeCompilerResult, CompilerResults compilerResult) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\EffectSystem.cs içinde: satır 237 konum: SiliconStudio.Xenko.Rendering.EffectSystem.LoadEffect(String effectName, CompilerParameters compilerParameters) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\EffectSystem.cs içinde: satır 0 konum: SiliconStudio.Xenko.Rendering.DynamicEffectInstance.ChooseEffect(GraphicsDevice graphicsDevice) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\DynamicEffectInstance.cs içinde: satır 51 konum: SiliconStudio.Xenko.Rendering.EffectInstance.UpdateEffect(GraphicsDevice graphicsDevice) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Graphics\Rendering\EffectInstance.cs içinde: satır 56 konum: SiliconStudio.Xenko.Rendering.Images.ImageEffectShader.DrawCore(RenderDrawContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\Images\ImageEffectShader.cs içinde: satır 118 konum: SiliconStudio.Xenko.Rendering.ComputeEffect.LambertianPrefiltering.LambertianPrefilteringSHNoCompute.DrawCore(RenderDrawContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\ComputeEffect\LambertianPrefiltering\LambertianPrefilteringNoCompute.cs içinde: satır 99 konum: SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderDrawContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Engine\Rendering\RendererBase.cs içinde: satır 48 konum: SiliconStudio.Xenko.Assets.Skyboxes.SkyboxGenerator.Compile(SkyboxAsset asset, SkyboxGeneratorContext context) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Assets\Skyboxes\SkyboxGenerator.cs içinde: satır 107 konum: SiliconStudio.Xenko.Assets.Skyboxes.SkyboxAssetCompiler.SkyboxCompileCommand.DoCommandOverride(ICommandContext commandContext) C:\TeamCity\work\d8c64cdc22790f8f\sources\engine\SiliconStudio.Xenko.Assets\Skyboxes\SkyboxAssetCompiler.cs içinde: satır 92 konum: SiliconStudio.BuildEngine.Command.DoCommand(ICommandContext commandContext) C:\TeamCity\work\d8c64cdc22790f8f\sources\common\buildengine\SiliconStudio.BuildEngine.Common\Command.cs içinde: satır 80 konum: SiliconStudio.BuildEngine.CommandBuildStep.<StartCommand>d__21.MoveNext() C:\TeamCity\work\d8c64cdc22790f8f\sources\common\buildengine\SiliconStudio.BuildEngine.Common\CommandBuildStep.cs içinde: satır 0 []: Error: Asset [Skybox] failed to compile [C:/GitHub/SkyWall3D/SkyWall3D/Assets/Shared/Skybox.xksky(1,1)]: Error: BuildStep Asset build steps [SkyboxAsset:'Skybox'] (1 items) failed. []: Error: Asset [Skybox] failed to compile [C:/GitHub/SkyWall3D/SkyWall3D/Assets/Shared/Skybox.xksky(1,1)]: Error: BuildStep Build step list (2 items) failed. []: Error: BuildStep Build step list (312 items) failed. []: Error: BuildStep Build step list (1 items) failed. []: Error: Build finished in 624 steps. Command results: 619 succeeded, 0 up-to-date, 5 failed, 0 not triggered due to previous failure. []: Error: Build failed. []: Info: Generate bundles: Scan assets and their dependencies... []: Info: Generate bundles: Assign assets to bundles... []: Error: Unhandled exception: Could not find asset Skybox for bundle default Exception: Could not find asset Skybox for bundle default [C:\Program Files\Silicon Studio\Xenko\GamePackages\Xenko.1.7.6-beta\Targets\Xenko.targets(271,5)]: Error: The command ""C:\Program Files\Silicon Studio\Xenko\GamePackages\Xenko.1.7.6-beta\Bin\Windows-Direct3D11\SiliconStudio.Assets.CompilerClient.exe" --disable-auto-compile --project-configuration "Debug" --platform=Windows --profile=Windows --project-configuration=Debug --output-path="C:\GitHub\SkyWall3D\SkyWall3D\Bin\Windows\Debug\data" --build-path="C:\GitHub\SkyWall3D\SkyWall3D\SkyWall3D.Windows\..\obj\data" --package-file="C:\GitHub\SkyWall3D\SkyWall3D\SkyWall3D.Windows\..\SkyWall3D.xkpkg" --log-pipe="net.pipe://localhost/SiliconStudio.Assets.Editor.03ae7403-d8ed-441f-b6ab-80b0ab1dd12d" --verbose" exited with code 1.