Jump to content

HDRCubeTexture Flipped The Wrong Way


MackeyK24
 Share

Recommended Posts

Hey guys... When I load a texture using HDRCubeTexture as a reflectionTexture it is flipped the wrong way... Can I control that with some property that is serialized into the scene...

 

Note: the texture is loaded from a serialized scene json file... is there I property I can set to flip the HDRCubeTexture the right way :)

 

As Always pinging @Deltakosh and @Sebavan 

Link to comment
Share on other sites

Yo @Deltakosh ... Here is two scene shots... The BabylonsJS render of the reflected scenery is flipped. How can I I correct that?

 

The first is Unity Editor using a Custom .hdr for reflection probe

59ede3dc0b547_ScreenShot2017-10-23at2_39_06AM.thumb.png.59dedeb5138775dd64ad7bdb0b4e49fa.png

 

The second shot is my babylon render using a .hdr HDRCubeTexture as reflectionTexture (Note: Serialized To Scene Json)

 

59ede3f1a4de7_ScreenShot2017-10-23at2_40_07AM.thumb.png.453c6d11c16af15f2b89c378dd01e526.png

 

Any thoughts :)

 

 

Link to comment
Share on other sites

4 minutes ago, Deltakosh said:

Can you share the code used by the scene?

Ping @Sebavan

@Deltakosh and @Sebavan

 

There is no code. Its serialized in scene json:

"customType": "BABYLON.PBRMaterial",
      "directIntensity": 1.0,
      "emissiveIntensity": 1.0,
      "environmentIntensity": 1.0,
      "specularIntensity": 1.0,
      "cameraExposure": 1.0,
      "cameraContrast": 1.0,
      "microSurface": 1.0,
      "albedoTexture": null,
      "ambientTexture": null,
      "opacityTexture": null,
      "reflectionTexture": {
        "customType": "BABYLON.HDRCubeTexture",
        "size": 128,
        "useInGammaSpace": false,
        "generateHarmonics": true,
        "usePMREMGenerator": false,
        "isBABYLONPreprocessed": false,
        "name": "WTF_Reflection.hdr",
        "level": 1.0,
        "hasAlpha": false,
        "getAlphaFromRGB": false,
        "coordinatesMode": 3,
        "isCube": true,
        "uOffset": 0.0,
        "vOffset": 0.0,
        "uScale": 1.0,
        "vScale": 1.0,
        "uAng": 0.0,
        "vAng": 0.0,
        "wAng": 0.0,
        "wrapU": 1,
        "wrapV": 1,
        "coordinatesIndex": 0,
        "isRenderTarget": false,
        "renderTargetSize": 0,
        "mirrorPlane": null,
        "renderList": null,
        "animations": null,
        "extensions": null,
        "samplingMode": 3
      },

 

 

Link to comment
Share on other sites

9 hours ago, Deltakosh said:

ok I see. could you try to repro in the PG? will be far easier to help

I am trying... I am cleaning up all the 'hard coded - ill come back to that' areas I had... Working as fast as I an on it.

An pulling out all the LDRCubeTexture and trying to use a Spherical Map PNG as a regular skybox... Just keeping it simple using normal 6 sided for skyboxes.

I still support HDR - EXR - DDS for all other High Dynamic Range image usage (like reflections)

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