I have several simple models (3D primitives for the most part) that I need to have an "outline" on. Basically just lines that connect the outer most vertices together. I have A8 free so shaders are not an option, hence the problem. I am almost 100 percent sure I could just use the draw3dline (sorry, I don't remember the exact function) command to connect the vertices but that will require hard programming the individual vertex numbers in an array in order so I could read them ad connect them. Again it's possible, but it doesn't seem sensible. Any hints or ideas that might be a better approach?
Re: fake an outline shader
[Re: xbox]
#441790 06/03/1404:0606/03/1404:06
You can do this in a modeling program: Duplicate your model, scale it a little (by normals, which is not possible in MED), invert the normals and apply a black skin. Now render both entities at the same time and position (you can scale the black model depending on object-camera distance to keep the outline at the same thickness).
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual
I did this before, only I scaled it using MED which then ran into problems as you said. I just downloaded Blender to try this, imported the model, selected scale and changed to normals, set it to about 1.5 just to see the result, exported it and merged with original model in MED to see the size, and the imported model is half of it's original size. I'm not sure what I'm doing wrong.
Re: fake an outline shader
[Re: xbox]
#441820 06/03/1420:2306/03/1420:23
@Superku - That's exactly what I'm doing. It seems no matter how big I scale the new inverted one, when I export it from blender and import it back to MED and merge with the original to check sizes, the new one is always about half of the size, even if I scale it to 50 times larger in blender.
@Ch40zzC0d3r - Yeah, you really should. What are you waiting for?? hahaha just kidding with you. I'd have no clue where to even begin with that
Re: fake an outline shader
[Re: xbox]
#441838 06/04/1414:2906/04/1414:29
What I tried so say was the following: Take a cylinder for example. Now create a copy of the object in Blender so you have two cylinders in one file. Try to only scale one of them and keep the other object/ mesh unchanged. That should help.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual