Page 1 of 1

Edge Lines

Posted: Sat Feb 23, 2013 8:27 pm
by IdeasVacuum
I think the answer is going to be no, but has anybody been able to produce 3D Edge lines on a Shaded Mesh?
Image

Re: Edge Lines

Posted: Sat Feb 23, 2013 8:50 pm
by Samuel
You can, but it will take some work. I can't give you my code unfortunately because its in our engineering software. I can give
you some tips though. The easiest way would be CreateLine3D , but it wont look as nice that picture.

In order to make the entitys have nice smooth lines we had to draw directly on the material. It was a bit of a headache too. You have to map out the material
properly so that you know where the edges map put on the material. That way you can draw a line on the material and it will appear on
the entity.
Its not easy, but the result is very nice lines.

Hope that helps at least a little.

Re: Edge Lines

Posted: Sat Feb 23, 2013 8:56 pm
by IdeasVacuum
Hi Samuel

Drawing on the material never occured to me -sounds more than a bit tricky though. Food for thought. :mrgreen:

Re: Edge Lines

Posted: Sat Feb 23, 2013 9:00 pm
by idle
try a cell shader djes did an example a while back

Re: Edge Lines

Posted: Sun Feb 24, 2013 1:36 am
by IdeasVacuum
try a cell shader djes did an example a while back
Hi idle
... Looking at the example, it doesn't seem as though it can deliver the required effect. Unfortunately it's out of date with the current Ogre that PB is using too. The log reports a couple of Ogre exceptions and if you persevere, an Assertion failure awaits :(

Re: Edge Lines

Posted: Sun Feb 24, 2013 1:59 pm
by LuCiFeR[SD]
I've quickly updated it so it will run on PB5.10 and you can get it here there still maybe issues... but it should get you going :)

Re: Edge Lines

Posted: Sun Feb 24, 2013 2:40 pm
by IdeasVacuum
Ah, thanks for your efforts there LuCiFeR[SD], I did actually get that far myself before deciding it isn't the answer. 8)

Re: Edge Lines

Posted: Sun Feb 24, 2013 2:43 pm
by LuCiFeR[SD]
Oh well. I wish I had noticed that part in your posts above hehe :) It maybe useful to somebody.