Jump to content

Loading texture - what am I missing?


royibernthal
 Share

Recommended Posts

5 minutes ago, Nabroski said:

No i mean theirs a bug when i try to work with Canvas2D 

   $(document).ready( function () { Canvas2D with Textures})

its not working.

so you still have the issue, the sprite is not loading either locally or when served by a web server?

Link to comment
Share on other sites

7 minutes ago, royibernthal said:

@Nockawa The issue seems to be solved in the preview release as you suggested.

Now however, it seems a large white portion is being added to the top of the texture, I uploaded the images for you to compare.

 

Original image

original.png

 

Image inside babylonjs (blue color is stage)

babylon.png

raaaaaah, of course, it's taking the power of two size and not the original one! grrrrrrrrrrrrr. 1) I've no memory. 2) I get back from a break. Result: a PR fest is coming...sorry

Link to comment
Share on other sites

4 minutes ago, Nockawa said:

raaaaaah, of course, it's taking the power of two size and not the original one! grrrrrrrrrrrrr. 1) I've no memory. 2) I get back from a break. Result: a PR fest is coming...sorry

 

14 minutes ago, royibernthal said:

@Nockawa The issue seems to be solved in the preview release as you suggested.

Now however, it seems a large white portion is being added to the top of the texture, I uploaded the images for you to compare.

 

Original image

original.png

 

Image inside babylonjs (blue color is stage)

babylon.png

Ok, I've fixed the issue and it's working locally, I've submit the PR, I'll let you know when the PG will be update, it's on @Deltakosh hands now.

I think he's happy I'm back, his PR merging and PG updating is going to skyrocket from today... :/

 

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