Michael Ilyin Posted February 13, 2017 Share Posted February 13, 2017 Hello. Is it possible by default to render sprite instead mesh at some LOD level? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 13, 2017 Share Posted February 13, 2017 Hello unfortunately this is not supported now. But....you can define a quad mesh at desired LOD level and set it to use Billboard. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted February 14, 2017 Share Posted February 14, 2017 @Michael Ilyin you can use a custom shader https://www.khronos.org/opengles/sdk/docs/reference_cards/OpenGL-ES-2_0-Reference-card.pdf vec4 texture2D(sampler2D sampler, vec2 coord, float bias) Combined If you have less idea how to handel shaders. We can ask @NasimiAsl he probability can write you a nice wrapper function. But it also depends on what you need, as a trigger for LOD hard coded or distance related. ect. http://www.babylonjs.com/cyos/#1XWASD#1 Good Luck Quote Link to comment Share on other sites More sharing options...
Michael Ilyin Posted February 14, 2017 Author Share Posted February 14, 2017 12 hours ago, Deltakosh said: Hello unfortunately this is not supported now. But....you can define a quad mesh at desired LOD level and set it to use Billboard. Unfortunately, LOD mesh inherits transformation from main and billboard not working for it. Quote Link to comment Share on other sites More sharing options...
Michael Ilyin Posted February 14, 2017 Author Share Posted February 14, 2017 4 hours ago, Nabroski said: @Michael Ilyin you can use a custom shader https://www.khronos.org/opengles/sdk/docs/reference_cards/OpenGL-ES-2_0-Reference-card.pdf vec4 texture2D(sampler2D sampler, vec2 coord, float bias) Combined If you have less idea how to handel shaders. We can ask @NasimiAsl he probability can write you a nice wrapper function. But it also depends on what you need, as a trigger for LOD hard coded or distance related. ect. http://www.babylonjs.com/cyos/#1XWASD#1 Good Luck I don't understand, shader for what? I mean I think about rendering 2D image (sprite is first I think about) instead of 3D mesh when camera is far away from some object. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted February 14, 2017 Share Posted February 14, 2017 @Michael Ilyin https://en.wikipedia.org/wiki/Shading What you are request is not implemented yet. You have to find a creative workaround. @Michael Ilyin it would help the community if you make a little playground http://www.babylonjs-playground.com/ so your request / the missing feature would become more clearer and its highly that you will find support, probably a working example that you can use in a real world project Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 14, 2017 Share Posted February 14, 2017 Challenge is Accepted Nabroski 1 Quote Link to comment Share on other sites More sharing options...
Nabroski Posted February 14, 2017 Share Posted February 14, 2017 @Michael Ilyin Hello. Is it possible by default to render sprite instead mesh at some LOD level? I'm sorry, i kind of misunderstand your request. The Keywords are: render sprite mesh LOD level Deltakosh understand it, so you got your answer And i got i wrong. NasimiAsl seems already have a prototype in his head. I need break. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 14, 2017 Share Posted February 14, 2017 Actually i don't try fix LOD for sprite i try to make new sprite in GeometryBuilder with LOD system but i see some limitation how many face we can make in sprite system? any one try 100K ? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 14, 2017 Share Posted February 14, 2017 step 1: make geometry http://www.babylonjs-playground.com/#1QC9DP#80 300*300 = 90k(face) - animation+ rotation in GPU side without LOD (yet ) http://www.babylonjs-playground.com/#1QC9DP#82 600*600 = 360k jerome 1 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.