
Edge Lines
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Edge Lines
I think the answer is going to be no, but has anybody been able to produce 3D Edge lines on a Shaded Mesh?


IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Edge Lines
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.
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

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Edge Lines
Hi Samuel
Drawing on the material never occured to me -sounds more than a bit tricky though. Food for thought.
Drawing on the material never occured to me -sounds more than a bit tricky though. Food for thought.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Edge Lines
try a cell shader djes did an example a while back
Windows 11, Manjaro, Raspberry Pi OS


-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Edge Lines
Hi idletry a cell shader djes did an example a while back
... 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.
If it sounds simple, you have not grasped the complexity.
-
LuCiFeR[SD]
- 666

- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
Re: Edge Lines
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

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Edge Lines
Ah, thanks for your efforts there LuCiFeR[SD], I did actually get that far myself before deciding it isn't the answer. 
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
LuCiFeR[SD]
- 666

- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
Re: Edge Lines
Oh well. I wish I had noticed that part in your posts above hehe
It maybe useful to somebody.
