MegaGlest Forum

MegaGlest => Bug reports => Topic started by: tomreyn on 5 January 2012, 02:39:54

Title: 3.6.0.2: G3DViewer creates incorrect images
Post by: tomreyn 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:

(http://freeit.org/glest/screens/weird-pyramid.png)

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:

(http://freeit.org/glest/screens/standard-pyramid.png)

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.
Title: Re: 3.6.0.2: G3DViewer creates incorrect images
Post by: Psychedelic_hands 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.
Title: Re: 3.6.0.2: G3DViewer creates incorrect images
Post by: will 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.
Title: Re: 3.6.0.2: G3DViewer creates incorrect images
Post by: tomreyn 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.