In order to understand better how things work, I am trying to learn the Engine by rebuilding a project from the Editor. I also plan on having my students do this with a project they just did, to better appreciate what is going on. They used the WebXR Starter project, so I’m trying to replicate that.
I’ve got most of it working, but the colors are off. For example, I have almost entirely black cubes. Beyond that, I think most of my colors are off. In the image on the left below, the window on the left is the Playcanvas Editor launched project, and the one or the right is my Engine project.
I think I’ve replicated most of the objects, and I’ve looked at the Scene settings and (I think) got those in the project too.
Is there anything known that would cause this? I could upload this to github and post a link, if that would help. But I suspect I’m just doing “something dumb”.
Hmm, I am not sure what exactly is missing, from the shadows I can tell you got all lights in place (and that template has a lot!). Are you generating lightmaps in your engine-only example?
Most of the lights in that example are set to bake lightmaps on runtime:
Yay, glad you managed to get the two scenes rendering identically.
I’m not sure what the issue is when gamma values in the scene JSON though. I just created a vanilla blank project and exported with both gamma 1 and 2.2. I then diffed the JSON:
Right, as @will pointed out and you’ve found out by trial and error gamma correction requires using the engine constants instead of setting a number dirrectly:
Aha! That makes total sense. By and large I clicked through to the docs in the editor before creating the corresponding code for the engine, but I carelessly assumed gamma correction was a number, not a constant! Mystery solved.