Converting a mesh to mesh+wireframe in blender
category: general [glöplog]
Sooo. I have this 3DS mesh (e.g. this bust) and want additional wireframe lines in it. How would I do it. I need LINES, not polygons looking like lines, or solid line (as in tubes) etc. What I need is "LineSet" or something in a VRML97 file...
Ideas anyone?
Ideas anyone?
to clarify. I do NOT want another/additional mesh, but a set of lines.
just use linux lol
Use a PNG texture with solid lines, transparency gaps and fake it. :)
It's been done before.
It's been done before.
like this ?
;)
I don't even need to render it. Getting the effect with blender is no problem. I need the freakin lines...
Oh yeah, and fuckings to the Blender GUI!
I don't even need to render it. Getting the effect with blender is no problem. I need the freakin lines...
Oh yeah, and fuckings to the Blender GUI!
Code:
lines = empty
for each triangle t in mesh
line l1 = line(f.vertex1, f.vertex2)
line l2 = line(f.vertex2, f.vertex3)
line l3 = line(f.vertex3, f.vertex1)
if not exists l1 in lines
add l1 to lines
if not exists l2 in lines
add l2 to lines
if not exists l3 in lines
add l3 to lines
end for
http://blenderartists.org/forum/showthread.php?t=91730
this is what google says!
this is what google says!
okay I got it.
00 Select Orthographic View (so that everything is level, even the faces in the back) and Edit Mode.
10 Select Side View (1,4, or 7 in your numpad).
20 Press A to deselect everything. (your mesh is now pink)
30 Press B to get the selection box.
40 Select a slice on your model. (you get a line of "same altitude" points selected in yellow)
50 Press S
60 Scale the disk to the required radius. (in your case, a small scale since you want it close to the model)
70 You got your line, dude.
80 Profit.
90 Goto 20
This way you're going to add altitude lines to your model.
00 Select Orthographic View (so that everything is level, even the faces in the back) and Edit Mode.
10 Select Side View (1,4, or 7 in your numpad).
20 Press A to deselect everything. (your mesh is now pink)
30 Press B to get the selection box.
40 Select a slice on your model. (you get a line of "same altitude" points selected in yellow)
50 Press S
60 Scale the disk to the required radius. (in your case, a small scale since you want it close to the model)
70 You got your line, dude.
80 Profit.
90 Goto 20
This way you're going to add altitude lines to your model.
lazy-san: Found this, but the script creates an actual mesh, no lines, at least when I save it to a VRML97/.WRL file.
Please don't feed the Kusmas:
Oh man, I forgot to tell you the line 45, which is :
45 Duplicate your selection using the "duplicate" option before scaling it. (Otherwise you'll simply scale one line still connected to your initial mesh, hence deforming it badly).
My bad. :)
45 Duplicate your selection using the "duplicate" option before scaling it. (Otherwise you'll simply scale one line still connected to your initial mesh, hence deforming it badly).
My bad. :)
Will try it sawyer, thanks!
Quote:
but the script creates an actual mesh, no lines, at least when I save it to a VRML97/.WRL
Please be a bit more specific about what you want to achieve.
Why do you need an additional set of edges to be stored in your vrml file?
Because I wrote an import filter for our software that removes lines and points from 3D WRL-files and uses VBOs to render the objects. This is important for large (1M Polygons / 300k Lines) files, as they render very slowly. The lines aren't needed anyway. We only have those shitty NDA files I'm testing this on, but I can't do a presentation with them...
I managed to get the wireframe in Blender, but the import filter strips the lines and there are no options I can set to avoid this...
I managed to get the wireframe in Blender, but the import filter strips the lines and there are no options I can set to avoid this...
Quote:
I wrote an import filter that removes lines and points from 3D WRL-files
Eh... and now you're trying to get them back?
And why don't you just extract the "wireframe" from the polygon-connectivity (as Preacher pointed out already) ?
Yes, I'm still totally missing your point ;)
I wrote this import filter, which I want to demonstrate to people. :)
For that I need a big, free 3D WLR (VRML97) model containing faces and lines, as most of the files I now have are NDA material.
I edited a WRL file by hand now :/ Duplicated coordinates and changed the geometry type to an IndexedLineSet. Did the trick, but this works only for small files obviously.
Maybe I'll code something later to add lines to the files, but I'm a bit surprised that all the WRL export filters remove the lines...
Sorry if I don't make much sense atm, I'm pretty stressed out here :) But really big thanks for trying to help, fellow poueteers!
For that I need a big, free 3D WLR (VRML97) model containing faces and lines, as most of the files I now have are NDA material.
I edited a WRL file by hand now :/ Duplicated coordinates and changed the geometry type to an IndexedLineSet. Did the trick, but this works only for small files obviously.
Maybe I'll code something later to add lines to the files, but I'm a bit surprised that all the WRL export filters remove the lines...
Sorry if I don't make much sense atm, I'm pretty stressed out here :) But really big thanks for trying to help, fellow poueteers!
Now I got it :)
Though I'm still wondering why you programmed a filter to remove lines when barely any vrml-file actually contains them...
However, my renderer can save vrml97-files (for debugging reasons).
If that's of any help for you, I can export some stanford meshes or such when I'm back from work.
Though I'm still wondering why you programmed a filter to remove lines when barely any vrml-file actually contains them...
However, my renderer can save vrml97-files (for debugging reasons).
If that's of any help for you, I can export some stanford meshes or such when I'm back from work.