reddozen Posted June 25, 2014 Share Posted June 25, 2014 It seems like my normals are all messed up. They look correct in 3DS Max. Was easy to fix in Blender, but I can't figure out what is wrong in 3DS. I'm pretty sure it's the normals, but I can't be certain especially since they appear correctly in the 3DS Max editor. The hidden rider... lolHe only appears when the base he stands on is out of the frame.... very strange.Any suggestion? Item in 3DS Max Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 25, 2014 Share Posted June 25, 2014 could reproduce this on a smaller scene? Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 25, 2014 Author Share Posted June 25, 2014 Sure, I'll put something smaller together tonight using just one of the known "not working" models. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 25, 2014 Share Posted June 25, 2014 I'll take care of finding the issue then:) Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 26, 2014 Author Share Posted June 26, 2014 Please see the first post. I updated it Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 26, 2014 Share Posted June 26, 2014 I check that Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 27, 2014 Author Share Posted June 27, 2014 Any thoughts on what could cause only part of the model to be visible, and only under specific situations? I was poking around with it more last night, and really couldn't find anything new. Weird stuff... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 Still working on it:) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2014 Share Posted June 27, 2014 I have the impression that the problem is the same what happens. Here: http://www.html5gamedevs.com/topic/7443-the-color-is-not-right/?p=44450 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 For you Reddozen, the problem comes from the camera frustum. Your object is far too huge (more than 10000x10000x10000) So you are going outsite the frustrum. to solve this:- scale your object down a lot - change camera.maxZ to a big value and set camera.minZ to something like 0.1 option 1 is far better (for avoiding precision issues) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2014 Share Posted June 27, 2014 Ah, this is what I had already said by MP has Rodozen the first time. Exactly the same thing, but were told that I was wrong.Therefore too large scale and maxZ of the camera to put 1000 rather than 15. edit the 2 options. Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 27, 2014 Author Share Posted June 27, 2014 The object is scaled down by 0.001 it should easily fit in the frame. Is it basing it's view limits on the original object and not it's modified scale?You can see this in the scene loader link. Dad,This looks just like the link you posted. Random parts of the model just don't show up.Prt_f01_prt_dongsang_inst++;objInstance = mapZone[0].createInstance("Prt_f01_prt_dongsang_inst_"+ Prt_f01_prt_dongsang_inst +"");objInstance.visible = true;objInstance.isVisible = true;objInstance.position = new BABYLON.Vector3(-101.492996, 2.988000, -19.001993);objInstance.scaling = new BABYLON.Vector3(0.001000, 0.001000, 0.001000);objInstance.rotation = new BABYLON.Vector3(0.000000, 4.712389, 0.000000); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2014 Share Posted June 27, 2014 Sounds like this is not enough. Object is still too far. you can play with camera.maxZ to make it appears Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 27, 2014 Author Share Posted June 27, 2014 I'm not sure what you mean by too far. The camera starting location isn't right next to the model, and even moving into scope of the object (arrow keys), only the pedestal appears unless you look up to the point that the pedestal is out of frame, then the rider appears. I'll modify the scene to put the camera right in front of the model when I get home so you don't have to "walk" up to him. Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 27, 2014 Author Share Posted June 27, 2014 Scene in first post updated. camera moved to in front of the model. You'll notice that the rider is not there unless you move the camera to look up. He will appear as soon as the pedestal is out of the frame. The Z max in my scene is dynamic to maintain 30 FPS with a max of 100 and min of 5. I don't see how this could be a Zmin / zMax issue as the pedestal wouldn't be shown either. They are both parts of the same model, so there's really no reason why only half of it would show up. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2014 Share Posted June 27, 2014 Use you octree on your scene? I have noted that sometimes, with models that on several objects, sometimes disappears. Type a character's head, disappears suddenly and it is when I'm using the Octree optimization. It may be the problem. It can give a search for deltakosh track Quote Link to comment Share on other sites More sharing options...
reddozen Posted June 27, 2014 Author Share Posted June 27, 2014 No octrees for the same reason that I cannot call models outside of the BABYLON.SceneLoader.ImportMesh() function. The octree function scene.createOrUpdateSelectionOctree() can cause a race condition with models still loading async from import mesh, but that is a different issue from this one though... Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2014 Share Posted June 27, 2014 On my editor I was able to do what you say. You can put the models charged by importMesh in a table and use this table for brushcutter your models outside the importMesh function. It works for me. var meshPerso = [];BABYLON.SceneLoader.ImportMesh("", "./","mesh.babylon", scene, function (newMeshes) { newMeshes[0].rotationQuaternion = null; meshPerso.push(newMeshes[0]); }); for octree, you can use if (scene.isReady) in the render loop and use octree in this condition. scene.registerBeforeRender(function(){ if(sceneload == false && scene.isReady()) { if(scene._activeMeshes.length > 10) scene.createOrUpdateSelectionOctree(); sceneload = true; } } Quote Link to comment Share on other sites More sharing options...
reddozen Posted July 1, 2014 Author Share Posted July 1, 2014 Sooo...I played with scaling the parent object... nothing.Cloning instead of instancing... nothing. Updated to Babylon.1.13-beta.... fixed!? For whatever reason, something in babylon.1.12-rc was causing this graphical issue... The model displays like it's supposed to now. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 1, 2014 Share Posted July 1, 2014 I did some fixes on the exporter as well Quote Link to comment Share on other sites More sharing options...
reddozen Posted July 1, 2014 Author Share Posted July 1, 2014 cool, I'll update that too. Quote Link to comment Share on other sites More sharing options...
reddozen Posted July 1, 2014 Author Share Posted July 1, 2014 I spoke too soon... It's not fixed. The scene loads correctly in Android kitkat on a Galexy Note2 with the default Samsung browser.It does not load in FF30, FF31, Chrome, or IE11. The rider is not displayed unless the pedestal is out of the frame (looking up with the camera). Notes, the 6321 active vertices. That tells me that Babylon sees the whole model in the scope of the frame. The pedestal is 318 verts, and the rider is 6003. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 1, 2014 Share Posted July 1, 2014 did you try with the latest exporter? Quote Link to comment Share on other sites More sharing options...
reddozen Posted July 2, 2014 Author Share Posted July 2, 2014 Same with the latest exporter. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 2, 2014 Share Posted July 2, 2014 Damned!! could you share a really simple 3dsmax file so that I can try to figure out your problem? 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.