Sign in to follow this  
Dreik

Texture _isBlocking problem

Recommended Posts

Hi,

I encountered really weird situation with texture's property isBlocking. At start of the program everything works well but after I dispose enginge, scene...well everything and I start over and try to create texture again the property _isBlocking is always true so none of the meshes using that texture doesn't render. How does this property work, when does the engine should change this property to false ? (Texture constructor sets it to true).

Share this post


Link to post
Share on other sites

isBlocking is always true on texture expect if you manually put it to false.

isBlocking is used to prevent materials  to render during the download of textures. when set to true a default (0,0,0,0) texture is used while a texture download.

It needs to be used pretty cautiously as the visual result might not be the one looked after.

This should not impact anything with your dispose case would be cool to have more info about your repro.

Share this post


Link to post
Share on other sites

the function is isReadyOrNotBlocking:

It either checks for the flag to render before the texture has been loaded or for the fact that the texture is ready (fully downloaded and uploaded to the gpu).

This is the entire goal of isBlocking prevent to render if not ready when flagged has true.

Share this post


Link to post
Share on other sites

Here is what the function checks:

public isReadyOrNotBlocking(): boolean {
return !this.isBlocking || this.isReady();
}
 
So either not blocking or texture being ready (meaning downloaded and uploaded to the gpu).

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.