microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

Can't correctly load jpg image format #95

Closed nosy-b closed 7 years ago

nosy-b commented 7 years ago

Loading a jpg using three : new THREE.TextureLoader().load( "image.jpg" ) seems to mix rgba channels. (code works fine in Edge) bugjpg

Loading the same image in png works (colored image of the earth)

Almost-Done commented 7 years ago

75

Almost-Done commented 7 years ago

I'll try to fix the BGR to RGB conversion to unblock you.


From: Alexandre Devaux notifications@github.com Sent: Monday, September 18, 2017 8:51:53 AM To: Microsoft/HoloJS Cc: Cristian Petruta; Comment Subject: Re: [Microsoft/HoloJS] Can't correctly load jpg image format (#95)

Closed #95https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FHoloJS%2Fissues%2F95&data=02%7C01%7Ccrispet%40microsoft.com%7C768c8bd33d704ae4188008d4fead3045%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636413467176976525&sdata=oeJUwaWWyE%2FulVPwFMqBI%2FAf%2B8dkXWFOrFAUxYzOhnw%3D&reserved=0.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2FHoloJS%2Fissues%2F95%23event-1253737246&data=02%7C01%7Ccrispet%40microsoft.com%7C768c8bd33d704ae4188008d4fead3045%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636413467176976525&sdata=rimiOBo09TK1r%2BP85NrW22HllafccrioqSPauY0NnF0%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAVIoqlgMffG_kQ040NVHypZNcAHM2Y57ks5sjpGZgaJpZM4PaKgy&data=02%7C01%7Ccrispet%40microsoft.com%7C768c8bd33d704ae4188008d4fead3045%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636413467176976525&sdata=s92aoK62oh99k6saaoICs7U2MhHNx9uMnh1MSk6k6TU%3D&reserved=0.