Giter Club home page Giter Club logo

Comments (9)

Perksey avatar Perksey commented on June 4, 2024 1

Looks like the PreferredDepthBufferBits aren’t set.

from silk.net.

thenuts avatar thenuts commented on June 4, 2024

I manually set it with
options.PreferredDepthBufferBits = 24;
before the window.create with no change in behaviour. also, why is this not needed for Windows but would be needed for Mac?

from silk.net.

Perksey avatar Perksey commented on June 4, 2024

Oh, in which case I’ll put this down to Apple’s terrible OpenGL support. PreferredDepthBufferBits being null means that the depth buffer is in an entirely undefined state, which in my experience leads NVIDIA to set up a sensible depth buffer but AMD and other implementations tend to interpret this as “oh well we don’t need a depth buffer then”.

from silk.net.

tilkinsc avatar tilkinsc commented on June 4, 2024

I wonder if the depth function is inversed. OpenGL is probably in a weird state. (I know mac doesnt play nice from what I've seen in PPSSPP)

from silk.net.

MichaelMay81 avatar MichaelMay81 commented on June 4, 2024

Looks like the PreferredDepthBufferBits aren’t set.

I had the same problem on linux and this solved it. Thanks!!!

from silk.net.

WoozChucky avatar WoozChucky commented on June 4, 2024

Can confirm this also happened on MacOS M1 Pro. PreferredDepthBufferBits had to be set. Maybe the example should include the, or have some sort of comment regarding this weird behaviour.

from silk.net.

tvardero avatar tvardero commented on June 4, 2024

Can confirm this appears for Windows 11 Pro 22631.3296 with Silk.NET 2.20.0
Tutorial 2.1 Coordinate system

GPU is integrated AMD Radeon, CPU is Ryzen 5 5500U

image

from silk.net.

tvardero avatar tvardero commented on June 4, 2024

Also on Windows 10 Pro 19045.4046 (GPU integrated AMD Ryzen 7 4700U)
Also on Manjaro Linux x86_64 (GPU: Intel CometLake-H GT2 [UHD Graphics])

The problem is global

This fixes:

var windowOptions = WindowOptions.Default with
{
    // ...
    PreferredDepthBufferBits = 24,
};

from silk.net.

Perksey avatar Perksey commented on June 4, 2024

In response to user feedback we've changed the default behaviour to always use 24/8 if both preference properties are null (as they are by default), see #1991

from silk.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.