Page 1 of 1

Pixel Perfect Wireframe -setting?

Posted: Sat Jul 05, 2008 2:50 pm
by jph_wacheski
I really like the wireframe mode in the editor,. AND I also do like the current wireframe mode in the engine wirth its thicker lines,. however the Pixel Perfect editor mode is something I would quite like to use in game,. perhaps a PPwireframe mode could be added to the materials pulldown or perhaps (even better) a Wire Thickness Value could be added somewhere,. I could use a whole range of thinknesses really. A global would be useable however, a per-material value would be much nicer!
I realise this is likely possible to achieve this with pixel shaders,. however since I can see it done right now in the editor I know it is possible to do with out them,. just a tought. obviously not a priority.

Posted: Sat Jul 05, 2008 3:03 pm
by Kjell
Hej jph,

I actually changed this in my personal ZGE build already :) But it should be a piece of cake to add a WireframeWidth property to the Material component. The default wireframe width is set to 4 right now ( if I recall correctly ). Why? Ask Ville :P

K

drat,. I should set that up here. ,

Posted: Sat Jul 05, 2008 3:08 pm
by jph_wacheski
hummm,. guess I have to stop building games for a bit and get the source setup on my system,. eh. Perhaps I would be able to make heads or tails of some of it,. . and make little test changes like that one.
Thanks Kjell,. some times I need a good kick in the arse I suppose.

Posted: Sat Jul 05, 2008 4:14 pm
by VilleK
I don't remember why I set it to 4 :) . But sure a WireframeWidth property is easy to add so I will make it for next release.

The trouble with wireframe in general is that (at least earlier) some graphics drivers do not accelerate wireframe at all (because it is so rarely used in games, the mainstream user wants photorealism), instead they fall back to slow software mode.

Posted: Sat Jul 05, 2008 4:29 pm
by jph_wacheski
oh really? that is a drag, . is limited use ok? how slow would that b? guess its just a cmpatability issue and like most things some folks would get bad performance,. . I'll run some tests here to see if i notice a drop in performance,. although my card is relativly new,. but middle of the road.

Posted: Sat Jul 05, 2008 4:59 pm
by VilleK
It was my friend Peter the graphics card expert who told me this a year ago, and he said that wireframe should be made with shaders instead. But I'm not sure how the situation is today. Performance of wireframe seems good enough on my two computers (nvidia and intel onboard).