Author Topic: 3.6.0.2: G3DViewer creates incorrect images  (Read 952 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
3.6.0.2: G3DViewer creates incorrect images
« on: 5 January 2012, 02:39:54 »
Running this...
Code: [Select]
./megaglest_g3dviewer --load-unit="../../data/glest_game/techs/megapack/factions/egypt/units/pyramid",stop_skill,attack_skill --load-model-animation-value=0.5 --load-particle-loop-value=8 --zoom-value=0.33 --rotate-x-value=20 --rotate-y-value=20 --auto-screenshot=disable_grid,saveas-weird-pyramid.png
...gives me this image:



Also, running this:

Code: [Select]
./megaglest_g3dviewer --load-unit="../../data/glest_game/techs/megapack/factions/egypt/units/pyramid",stop_skill --auto-screenshot=saveas-standard-pyramid.png
...gives me this image:



On both images the layering seems to be wrong. This happens on both my ATI (r300 driver) and Intel (i915) GPUs with open source drivers.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Psychedelic_hands

  • Guest
Re: 3.6.0.2: G3DViewer creates incorrect images
« Reply #1 on: 5 January 2012, 11:48:34 »
Is this happening with just that one model? or Every model? If it's just that model, then probably the normals are screwed up.
I've had models before look fine ingame, but terrible in the g3d viewer.

Even if it's not just that model then it's the Viewer not rendering normals properly.

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: 3.6.0.2: G3DViewer creates incorrect images
« Reply #2 on: 5 January 2012, 11:53:20 »
I have often had the same problem, whereas the exact same model looks fine on someone else's PC.

Myself, I tried tracking the bug down - was it wrong winding, or cull face or something?  But no luck.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: 3.6.0.2: G3DViewer creates incorrect images
« Reply #3 on: 6 January 2012, 05:37:35 »
Is this happening with just that one model? or Every model?

The same effect is visible with every model, I only chose these for an example.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything