Sign in to follow this  
Modos

Import meshes, scenes and texture failure

Recommended Posts

Hello forum!

I'm still new to babylon, but I want to go overboard and create a first-person-shooter with an AI and case-based reasoning (maybe with JADE and myCBR).
But that's just the intro, now to the important part:

For this goal I don't want to create everything by myself. I thought I could easily import a character model and a scene that fits as environment for a FPS.
For test purposes I tried to import some meshes - skull.babylon and dude.babylon:
https://www.babylonjs-playground.com/#JUKXQD (skull.babylon)
https://can't find dude.babylon anymore

I did it by searching in the example tab, opening the playground and downloading via Zip-Button.
Is there another way to look for scenes and meshes to import (except demos)? And maybe a better way to save them.
 

Bla bla bla here is my problem:

Unbenannt.PNG.0d85be322735bcd1c963ea8d815f51fc.PNG


As you can see in the picture, the dude-character doesn't has his texture. 
That happens to me for most textures I want to put on meshes. How can I add a texture properly to a mesh? Or why are some textures not shown right?
Another Example that isn't working with some links:

 

var ground = new BABYLON.Mesh.CreateGround("ground", 50, 50, 1, scene);
			ground.material = new BABYLON.StandardMaterial("groundMat", scene);
			ground.material.diffuseTexture = new BABYLON.Texture("https://previews.123rf.com/images/mansum007/mansum0071511/mansum007151100626/47766920-hei%C3%9Fe-lava-muster-illustration-hintergrund.jpg");


This is the primary the code I downloaded, i just repeated the import function for dude.babylon.
https://playground.babylonjs.com/#VKVHP6

 

As always, i thank you in advance for your solutions or advices.
 

 

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.