Jump to content

ShadersRepository


hw3web
 Share

Recommended Posts

I did try , still this same problem :(, I tried :

 

"../Shaders/";

"../Shaders";

"./Shaders";

".../Shaders";

 

but funny it dose say : [14:47:38.299] Error: 404 @ Unable to load ./Shaders/Water/water.vertex.fx:1  ----- why there is . when I try with many other .. ... 

 

It is working when folder Shaders is in this same folder

Link to comment
Share on other sites

Project

├── index.html

├── JS - Folder with jquary , babylon and others js files lib 

├── ALL

│   ├── sceneall.php - That where I call Shaders – there is script JS in file

│   └── Shaders - Just for now to work it is copy of folder (Shaders) from folder UP - that I want to remove and access ../Shaders

│   │   ├── default.fragment.fx

│   │   ├── default.vertex.fx

.....

│   │   ├── sprites.vertex.fx

│   │   └── Water

│   │   ├── bump.png

│   │   ├── water.fragment.fx

│   │   ├── waterMaterial.js

│   │   └── water.vertex.fx

├── Shaders

│   ├── default.fragment.fx

│   ├── default.vertex.fx

...

│   ├── sprites.fragment.fx

│   ├── sprites.vertex.fx

│   └── Water

│   ├── bump.png

│   ├── water.fragment.fx

│   ├── waterMaterial.js

│   └── water.vertex.fx

└── style.css 

Link to comment
Share on other sites

Hi , no I am using Linux base control by CPanel, but I authorize it in .htaccess

 

so it is working , it just don't want when I put "../Shaders/" , when I do "Shaders" is fine, that a reasons I copy all Shaders in to folder All that is on this same level but I would like to remove it as it is silly to have double copy of this same folder

Link to comment
Share on other sites

I did put before , try after still nothing .. any chance how code should like , i put:

 

 engine = new BABYLON.Engine(canvasp, true);
 scene = new BABYLON.Scene(engine);
BABYLON.Engine.ShadersRepository = "../Shaders/";
 
and tried :
 
BABYLON.Engine.ShadersRepository = "../Shaders/";
engine = new BABYLON.Engine(canvasp, true);
scene = new BABYLON.Scene(engine);

 

 

non of that work, but if folder Shaders is in this folder not folder higher is all fine !

 

:(

Link to comment
Share on other sites

BABYLON.Engine.ShadersRepository = "./../../Shaders/";engine = new BABYLON.Engine(canvasp, true);scene = new BABYLON.Scene(engine);

Or

 

BABYLON.Engine.ShadersRepository = "./../Shaders/";engine = new BABYLON.Engine(canvasp, true);scene = new BABYLON.Scene(engine);

Or

BABYLON.Engine.ShadersRepository = "http://127.0.0.1/Project/Shaders/"; //External linkengine = new BABYLON.Engine(canvasp, true);scene = new BABYLON.Scene(engine);
Link to comment
Share on other sites

why any of them don't work for me :(

 

I use local server address of mine , which I though it will be the best but No working !?

 

in lines above I got

<script src="../Shaders/Water/waterMaterial.js"></script> 

 

and if I put copy of Shaders folder in this folder all working but if I put to folder up just stop :(

Link to comment
Share on other sites

Now I totally misunderstand,

 

I put BABYLON.Engine.ShadersRepository = "blabla"; 

 

but as long folder Sheders is in this same folder is all fine !??! ?

 

anyone !? -- is there other super ShadersRepo address ?

Link to comment
Share on other sites

  • 2 weeks later...

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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...