Jump to content

Rendering sprite in LOD


Michael Ilyin
 Share

Recommended Posts

@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 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

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

:)

Link to comment
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...
 Share

  • Recently Browsing   0 members

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