problem webplayer (windows) opengl

Hi everybody,

i am making a 2d game consisting only of opengl lines - resembling the old
1960s pdp1 spacewar game :wink:

however on windows (webplayer) it looks
like this:

anyone having an idea what could be causing this?

daniel

ps
basically (and for sake of simplicity) i am doing just what is described here:
(in Aras Pranckevicius post)
http://forum.unity3d.com/viewtopic.php?t=7883

i can post real code if that would help.

There’s one caveat with GL immediate mode rendering on Windows (which uses Direct3D behind the scenes): if you use per-vertex colors, then the shader has to indicate that it uses per-vertex colors.

My post you linked to was done long before there was Direct3D renderer in Unity, so it did not take that into account either.

I just edited that post and added BindChannels command to the shader. (Note: I did not actually try whether it works :roll:).

thank you aras!

i did use your changes but it still looks the same on my windows box. :frowning:

any more ideas?

ps

i does look a bit like an error i had when i was not having an even number of vertices to draw per object…
anyway here is the webplayer

Looks correct here (see attached).

I just noticed that the letters are weirdly distorted in your case, and the Unity watermark does not look good. What’s the graphics card in the computer, does it have any graphics driver, and what color depth is used (32 bit, 16 bit, 256 colors)?

Looks fine here (WinXP 64bit).

my (very old its of year 2004 i think) windowsbox has a
NVIDIA GeForce FX 5200 LE grafic card.
and a driver of 2004 (version 6.0.8.3)

color depth is 32bit. (well, windows claims that - but it does actaully look like that in the rest of the system)

funny that it looks correct at your place, because a friend of mine (not an apple user - which i presume has a newer windows box than mine) told me of that grafic problem.

It should work on your computer. Don’t know what is happening, in fact… perhaps try updating drivers from nvidia.com?

well i did update the driver. **cough
actually my windows was never updated and the 2008 nvidia drivers don’t run… (well they do but with 4-bit color and 800x600 resolution - har har har - so i have to update the whole system - which i do now - it will take some time)
i’ll let you know if did succeed… at all :wink:

but i am happy that there are win-boxes on which it seems to run well…

after updating windows and video drivers i sadly still have the drawing problem.
but the unity logo looks good now :wink:

look here:

any direction in which i could refactor my code??

daniel