huxingyi / dust3d

Dust3D is a cross-platform 3D modeling software that makes it easy to create low poly 3D models for video games, 3D printing, and more.
https://dust3d.org/
MIT License
2.98k stars 222 forks source link

Model appears black #141

Open worsas opened 1 year ago

worsas commented 1 year ago

Hello.

I've downloaded the compiled 1.0.0.rc7 - version for windows. When I use the application, the mesh appears completely black, which makes it difficult to properly work with it.

blackmodel

I'm using Windows 10 GPU: Radeon RX 570 Series

I hope, it can be helped.

huxingyi commented 1 year ago

Hi @worsas are you able to open this example file: https://dust3d.org/model-complete/examples/banana.ds3 ? Or could you provide your model file?

worsas commented 1 year ago

Hello again.

Yes, I'm able to open the banana.ds3 file just fine, but the model appears black in it aswell. It doesn't seem to have to do with any particular file. When I create a new file, the model is black. When I open an existing file, it's the same.

I've just switched to a new PC with Windows 11 and "installed" the same pre-compiled program and it's exactly the same thing as in Windows 10. However, I'm using the same graphics card, which I had in my previous PC with up-to-date drivers.

I'm including the file seen in the screenshot above, just in case: HorseTest.zip

huxingyi commented 1 year ago

Thanks @worsas I tried your model on my machine, it renders fine, so it should be issue related with OpenGL environment. If possible could you provide the debug info(Menu -> Window -> Debug -> Select All -> Copy) and version info(Menu -> About -> Select All -> Copy).

worsas commented 1 year ago

Thanks for the quick reply. Here is the requested output (I did open the Horsetest.ds3 in that session):

— WARNING: QFSFileEngine::open: No file name specified - :0 — WARNING: Cannot open file '', because: No file name specified - :0 — WARNING: QFSFileEngine::open: No file name specified - :0 — WARNING: Cannot open file '', because: No file name specified - :0 — WARNING: QFSFileEngine::open: No file name specified - :0 — WARNING: Cannot open file '', because: No file name specified - :0 — WARNING: QFSFileEngine::open: No file name specified - :0 — WARNING: Cannot open file '', because: No file name specified - :0 — DEBUG: uiReady - sources\document.cc:1557 — DEBUG: Mesh generating.. - sources\document.cc:2296 — DEBUG: The mesh generation took 0 milliseconds - sources\mesh_generator.cc:100 — DEBUG: [ 0 ]item.name: model.xml item.type: model - sources\document_window.cc:876 — DEBUG: Mesh generation done - sources\document.cc:2245 — DEBUG: UV mapping generating.. - sources\document.cc:2336 — DEBUG: Mesh generating.. - sources\document.cc:2296 — DEBUG: UV mapping generation done(meshId: 0 ) - sources\document.cc:2375 — DEBUG: The mesh generation took 39 milliseconds - sources\mesh_generator.cc:100 — DEBUG: Mesh generation done - sources\document.cc:2245 — DEBUG: UV mapping generating.. - sources\document.cc:2336 — DEBUG: UV mapping generation done(meshId: 1 ) - sources\document.cc:2375

Dust3D 1.0.0-rc.7 (version: 1.0.0.37 build: Feb 21 2023 09:56:13) opengl: 3.3.0 Core Profile Context 23.4.3.230420 shader: 4.60 core: true

huxingyi commented 1 year ago

@worsas Is there a graphics processer control panel which you can select integrated graphics for specified application? If so you can force it to use integrated graphics for Dust3D. Sorry, I don't have Radeon RX 570 Series to debug this issue at the moment.

worsas commented 1 year ago

That's fine.

I just tested the app on a different windows pc with a Geforce GTX 960M and there the model appears fine. So it seems to be related to the Radeon Graphics Card indeed.

Dhelio commented 1 year ago

I can confirm that. On my desktop with a 6800xt the model is all black, while on my laptop with an RTX 3060 it is viewed correctly.

luzpaz commented 1 year ago

So this is a Graphics card issue ?

Dhelio commented 1 year ago

@luzpaz Pretty much. Until the rendering is fixed there's little we can do, I guess.