Jump to content

Josh

Staff
  • Posts

    22,901
  • Joined

  • Last visited

Posts posted by Josh

  1. It actually makes sense why your colors were flipping back and forth.

    The bindless texture override in the shader family was not being taken into account in the sorting, so it was just random. So sometimes your trees were being rendered with the more expensive terrain shader.

    • Thanks 1
  2. OpenGL 4.6 is the only renderer in version 0.9.5. I talked about it for an hour in this video:

    To support older hardware, I just need to write one alternative code path for systems that don't support bindless textures. OpenGL 4.6 support goes all the way back to:

    • Nvidia GEForce 420
    • AMD Radeon RX 5300M
    • Intel HD Graphics 520
    • Like 2
    • Thanks 1
  3. 7 minutes ago, CJO Games said:

    Thanks for the information - thought the texture file above was not being used on terrain - indeed I'm not even using terrain at the moment so, although useful information it's not really relevant to the issue - unless I'm missing something?

    I've attached again the grass floor material with the needed textures and the output from the material file in .txt format - hopefully that will be everything you need...

    Please note that these are proprietary assets and should be treated as such.

    1077302805_GrassFloorOne.zip 28.03 MB · 0 downloads

    Okay, it will work in the build that goes up later today.

    • Thanks 1
  4. 1 hour ago, CJO Games said:

    Josh, can you try the following steps with this .png file? To reproduce simply right click and create material and, hopefully, it will do what it does to me and create the .cpp error and crash to desktop. This has just occurred for me within the last few moments.

    Please note that the attached is a proprietary texture and should be treated as such.

    Screen_distortion.zip 424.39 kB · 1 download

     

    I added the missing format. However, there are a few rules for terrain textures in 0.9.5 to take note of:

    •  All textures on one terrain must be the same size. There is an additional argument in the CreateTerrain function that lets you specify this size. I have not added a control in the editor yet to let you adjust the size of a terrain that is being created. The default size is 1024.
    • Base color, metallic-roughness, and emission textures used in a terrain must be in format BC7.
    • Displacement textures used in a terrain must be Luminance format (single channel 8 bit grayscale).
    • Normal maps used in a terrain must be BC5 format.

    The reason for this is that array textures are now being used for terrain rendering. This solves the problems we were seeing with pixels on the borders invocation groups and will help make the engine runnable on a wider range of hardware.

    21 minutes ago, CJO Games said:

    here is another one to try - again from a proprietary pack - in this case its a material that was created previously  and worked previously but which now causes a hard crash when I try to view it in the preview.exe 

    Please note this is a proprietary texture and should be treated as such.

    Grass Floor 1.zip 418 B · 0 downloads

    This zip file does not include any textures.

     

  5. I found the cause.

    In the visibility list, meshes are grouped by pipeline settings. This is all the different rendering settings, plus the shader in use.

    The pipeline settings has a < operator for sorting. This is how the grouping is done.

    I added a setting in the shader family to force bindless textures off, but did not add any sorting for this in the < operator in the pipeline settings class.

    As a result, your sphere was probably getting rendered using the terrain shader. :D

    Once I added the needed fix the problem went away.

  6. If you scene has an IBL intensity of zero or no specular and diffuse reflection maps set, things will appear very dark.

    However, I did also notice that the light in the asset editor world was being hidden all the time, so I am fixing that.

    • Thanks 1
×
×
  • Create New...