Gamerazor Posted March 25, 2014 Share Posted March 25, 2014 I have a problem with babylon.js. I can't load the texture ground in this scene: and I get this error in Firefox and Midory:[23:24:40.378] "Valid manifest file not found. Scene & textures will be loaded directly from the web server." This is my code html5 :<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" lang="es"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Using babylon.js - How to load a scene</title> <script src="babylon.1.9.0.js"></script> <script src="hand-1.3.7.js"></script> <style> html, body { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden; } #renderCanvas { width: 100%; height: 100%; } </style></head><body> <canvas id="renderCanvas"></canvas> </body></html> <script> if (BABYLON.Engine.isSupported()) { var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); BABYLON.SceneLoader.Load("", "/scenes/suelo.babylon", engine, function (newScene) { // Wait for textures and shaders to be ready newScene.executeWhenReady(function () { // Attach camera to canvas inputs newScene.activeCamera.attachControl(canvas); // Once the scene is loaded, just register a render loop to render it engine.runRenderLoop(function() { newScene.render(); }); }); }, function (progress) { // To do: give progress feedback to user }); }</script>and this an image of my scene in blender: Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 25, 2014 Share Posted March 25, 2014 I think your problem come from the load order. Could you try with this one:BABYLON.SceneLoader.Load("/scenes/", "suelo.babylon", engine, function (newScene) { Quote Link to comment Share on other sites More sharing options...
Gamerazor Posted March 26, 2014 Author Share Posted March 26, 2014 Babylon.js I already resolved my problem. Before I wasn't able to render the texture because I didn't use UVmap in blender. Now I use UVmap and babylon.js render the texture: Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.