largeDachshund

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. largeDachshund

    New PBR System Questions

    Hi @Sebavan, I have a .babylon file. So, I don't see how that works on playground. But, I have attached the materials portion, assuming this is the problem. I looked at the .babylon Materials reference here: Babylon Docs - Materials There's barely any resemblance between the reference and below?! Is there an integration with Unity? Did I miss something in the exporter configuration? How do I map this to the Materials reference? "materials" : [ { "customType" : "BABYLON.PBRMaterial", "directIntensity" : 1, "emissiveIntensity" : 1, "environmentIntensity" : 1, "specularIntensity" : 1, "cameraExposure" : 1, "cameraContrast" : 1, "microSurface" : 0, "overloadedShadowIntensity" : 1, "overloadedShadeIntensity" : 1, "overloadedAmbientIntensity" : 0, "overloadedAlbedoIntensity" : 0, "overloadedReflectivityIntensity" : 0, "overloadedEmissiveIntensity" : 0, "overloadedAmbient" : [ 0, 0, 0 ], "overloadedAlbedo" : [ 0, 0, 0 ], "overloadedReflectivity" : [ 0, 0, 0 ], "overloadedEmissive" : [ 0, 0, 0 ], "overloadedReflection" : [ 0, 0, 0 ], "overloadedMicroSurface" : 0, "overloadedMicroSurfaceIntensity" : 0, "overloadedReflectionIntensity" : 0, "albedoTexture" : { "name" : "SimpleBeagleExample1.png", "level" : 1, "hasAlpha" : false, "getAlphaFromRGB" : false, "coordinatesMode" : 0, "isCube" : false, "uOffset" : 0, "vOffset" : 0, "uScale" : 1, "vScale" : 1, "uAng" : 0, "vAng" : 0, "wAng" : 0, "wrapU" : 1, "wrapV" : 1, "coordinatesIndex" : 0, "isRenderTarget" : false, "renderTargetSize" : 0, "mirrorPlane" : null, "renderList" : null, "animations" : null, "extensions" : null }, "ambientTexture" : null, "opacityTexture" : null, "reflectionTexture" : null, "emissiveTexture" : null, "reflectivityTexture" : { "name" : "SimpleBeagleExample1_MetallicGlossMap.png", "level" : 1, "hasAlpha" : false, "getAlphaFromRGB" : false, "coordinatesMode" : 0, "isCube" : false, "uOffset" : 0, "vOffset" : 0, "uScale" : 1, "vScale" : 1, "uAng" : 0, "vAng" : 0, "wAng" : 0, "wrapU" : 1, "wrapV" : 1, "coordinatesIndex" : 0, "isRenderTarget" : false, "renderTargetSize" : 0, "mirrorPlane" : null, "renderList" : null, "animations" : null, "extensions" : null }, "bumpTexture" : null, "lightmapTexture" : null, "useLightmapAsShadowmap" : false, "refractionTexture" : null, "ambient" : [ 0, 0, 0 ], "albedo" : [ 1, 1, 1, 1 ], "reflectivity" : [ 0, 0, 0 ], "reflection" : [ 0, 0, 0 ], "emissive" : [ 0, 0, 0, 1 ], "roughness" : 1, "useRoughnessFromMetallicTextureAlpha" : false, "useRoughnessFromMetallicTextureGreen" : false, "useAlphaFromAlbedoTexture" : false, "useEmissiveAsIllumination" : true, "useMicroSurfaceFromReflectivityMapAlpha" : true, "useSpecularOverAlpha" : true, "useRadianceOverAlpha" : true, "indexOfRefraction" : 0, "invertRefractionY" : false, "emissiveFresnelParameters" : null, "opacityFresnelParameters" : null, "disableLighting" : false, "name" : "SimpleBeagle", "id" : "611ebefb-3866-4ab5-a7bd-e09a0be1c62b", "backFaceCulling" : true, "wireframe" : false, "alpha" : 1, "alphaMode" : 2 } ]
  2. largeDachshund

    New PBR System Questions

    @Sebavan, A beagle is a type of dog. Sorry! When I removed the overloadedAlbedo property, it fixed the "legacy PBR Material" error, but the 3D model disappeared. I also noticed in the console log that the submeshes and vertices were zero.
  3. @Deltakosh, Thanks, for the assistance!
  4. I'm new to BabylonJS. I've been successful at integrating the framework within an Angular 2 project. Now, I'm trying to integrate 3D models from the Unity Asset Store. I used the Unity exporter to generate a .babylon file. It rendered a gray beagle. The console complained about an old PBR Material version. I removed the albedo property and the error went away. So, did my beagle. I've attached my log from the console. I'm not sure where to start troubleshooting. What is the common approach to integrate 3D models into Babylonjs? Is there some linting tool to troubleshoot the .babylon file? Is my problem somewhere else? Thanks,
  5. largeDachshund

    New PBR System Questions

    @Sebavan, I removed this from .babylon file. Now, before excising this property, I had a little, gray beagle that appeared. But, I also had the LegacyPBRMaterial error, too. The error is gone and so too is the beagle! Where did the beagle go? "overloadedAlbedo" : [ 0, 0, 0 ], btw, I left this in json: "overloadedAlbedoIntensity" : 0, Should this get excised, too? Thanks,