Blax

Members
  • Content Count

    100
  • Joined

  • Last visited

About Blax

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  1. ))) i'm talk about server blocking, it is not browser's problem ))) i think problem get chance on dissolve, when many users say about, i can waiting with use VPN. I need PG some times. Anyway, i made sample in PG and get same result https://www.babylonjs-playground.com/#8W86ZM#2 Please, take a look.
  2. please, see on screenshots - Netlify only "face", "proxy", "agent", "frontside" (i can't find right word). Real network space used of DO. Anyway access problem is sad fact. Perhaps it make netlify who's know? I try enter from work place (one more another ISP) and get same result ((( nop. clear browsers and i try chrome, firefox and exotic falcon )) In weekend i'll try make PG sample. Thank you very much, man's!
  3. texture was empty, i only create DynamicTexture object (i think if it is a problem babylon throw any error). But we dont use this only declare it. And i think texture after creation has empty pixels. Not? (oops' sorry if it ))) While i dont know how i can attach shader files in PG.... use shaderStore? And one more...problem (perhaps it limits Babylon.js propagation not only for me) Digital Ocean hosting stable block PG for me (i use 2 ISP and it block both) and i forced use slow-slow VPN for see or make samples in PG. Use PG is hard for me. i'm simple harmless home user on Linux. No spam, viruses, bots and etc. One of my ISP set my IP dynamicly. But... Some times DOcean blocks API DOC too ((( It may be for many peoples? (
  4. thanks for interest! yes, is very simple and clear and i dont use this texture. Only use (shader.setTexture) dynamic texture bring problem. p. s. i found another way for do what i need, but perhaps it is a bug and Babylonjs community has the meaning cath it? VERTEX precision highp float; attribute vec3 position; attribute vec3 normal; attribute vec2 uv; // Uniforms uniform mat4 worldViewProjection; uniform mat4 world; uniform float time; uniform sampler2D hgTx; uniform sampler2D colorTx; uniform sampler2D dataTx; varying vec2 vUV; varying vec3 vPosition; void main(void) { vUV = uv; vPosition = position; gl_Position = worldViewProjection * vec4(vPosition, 1.); } FRAGMENT precision highp float; // Varying varying vec3 vPosition; varying vec3 vNormal; varying vec2 vUV; // Uniforms uniform sampler2D colorsTx; uniform sampler2D hgTx; uniform sampler2D dataTx; uniform float time; // ==================================================================================== // MAIN // ==================================================================================== void main(void) { vec3 height3 = texture2D(hgTx,vUV).rgb; float height = (height3.r + height3.g + height3.b) / 3.0; vec3 color = texture2D(colorsTx, vec2(0.999 - height,0.15)).rgb; gl_FragColor = vec4(color, 1.0); }
  5. Try RawTexture and get some shifts to positive
  6. Blax

    Create sphere from height map?

    Perhaps simple applyDisplacementMap can help? First create sphere, second apply displacement. No?
  7. Folks, hi, again!!! I trying use BJS.DynamicTexture for draw in and next use in custom shader, but shader ignore geometry with shader material if i try set that texture as samplier2D. And do not generate any Errors (( If we switch off DynamicTexture or use simple Texture - all is ok. Sorry, i can't make this case in PG. Try show situation here: // var dataTexture = new BJS.Texture('/accel/static/i/fx/.../name.jpg',scene,true,false,0,function(){loadedTextures--;}); // its work var dataTexture = new BJS.DynamicTexture("dataTx",{width:2048,height:2048}, scene,false,0); // its dosent work // later, when all textures is ready... var shader = new BABYLON.ShaderMaterial("myShader", scene, "/accel/static/js/...", { attributes: ["position", "normal","uv"], uniforms: ["world", "worldView", "worldViewProjection", "view", "projection"] }); shader.setTexture ("dataTx", dataTexture, scene ); myGeom.material = shader; in GLSL fragment uniform sampler2D dataTx; all is ok, if we change DynamicTexture to Texture. Where i make wrong turn? ))
  8. Hi, @klaude ! Perhaps i miss, but in you shader not used specular and emissive factors (some other's factors?), which used by default in Standard Material Shader and change color result for every pixel. M?
  9. yes, few shadowgens for one light will be useful. Separate settings for generators with different shadowcasters. As sample - we can emulate transparent shadow (more light shadow) for some objects without real transparency. But... we can use 2 similar or clone light - it can be made simple )
  10. Blax

    Is it possible to over crank a shadow.

    shadowGenerator.setDarkness(0); can make shadow lighter, but can not make more dark, if object get light from another lightsourcers 😕
  11. Hi! But.... but... i was try it! Oh... i'm sorry and thank you, @NasimiAsl! Now we need delete this post from forum, with my shame )))) How i can do this? )
  12. Hi! Please show direction in this problem: https://www.babylonjs-playground.com/#4VGW28#4 We have transparent plane and not transparent cube. In real shadows must be look like in attached picture. How we can get it? I trying: 1. find in forum )) 2. use two ShadowGenerator for one light (ha-ha) ) 3. use two identical lights and two ShadowGenerator for every light with one shadow reciever but I did not succeed ( How we can dispose this barrier? in ideas - use two light, shadowGen's, reciever's and mix computed texture from one recievers for other. But i think its wrong wrong and long decission )) i feel: must be simple right way!! )) Thank you for any ideas!
  13. Hi. Perhaps you need just shft UV coordinates for face with rune? This way must be worked (doc show as do it).
  14. YES!!! This is what was needed!!! Thank you very much!!!