Edge Lines

Everything related to 3D programming
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Edge Lines

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Edge Lines

Post 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.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Edge Lines

Post by IdeasVacuum »

Hi Samuel

Drawing on the material never occured to me -sounds more than a bit tricky though. Food for thought. :mrgreen:
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
idle
Always Here
Always Here
Posts: 6089
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Edge Lines

Post by idle »

try a cell shader djes did an example a while back
Windows 11, Manjaro, Raspberry Pi OS
Image
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Edge Lines

Post 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 :(
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Re: Edge Lines

Post 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 :)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Edge Lines

Post 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)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Re: Edge Lines

Post by LuCiFeR[SD] »

Oh well. I wish I had noticed that part in your posts above hehe :) It maybe useful to somebody.
Post Reply