pouët.net

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?
added on the 2008-09-08 16:30:29 by raer raer
to clarify. I do NOT want another/additional mesh, but a set of lines.
added on the 2008-09-08 16:33:35 by raer raer
just use linux lol
added on the 2008-09-08 16:37:06 by kusma kusma
Use a PNG texture with solid lines, transparency gaps and fake it. :)
It's been done before.
added on the 2008-09-08 16:47:53 by TomS4wy3R TomS4wy3R
like this ?
added on the 2008-09-08 17:00:20 by hfr hfr
;)

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!
added on the 2008-09-08 17:01:03 by raer raer
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
added on the 2008-09-08 17:07:37 by Preacher Preacher
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.
added on the 2008-09-08 17:16:30 by TomS4wy3R TomS4wy3R
lazy-san: Found this, but the script creates an actual mesh, no lines, at least when I save it to a VRML97/.WRL file.
added on the 2008-09-08 18:42:53 by raer raer
Please don't feed the Kusmas:
BB Image
added on the 2008-09-08 18:59:48 by Marq Marq
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. :)
added on the 2008-09-08 19:11:31 by TomS4wy3R TomS4wy3R
Will try it sawyer, thanks!
added on the 2008-09-08 19:46:18 by raer raer
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?
added on the 2008-09-09 08:19:38 by hfr hfr
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...
added on the 2008-09-09 10:29:53 by raer raer
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 ;)
added on the 2008-09-09 12:43:15 by hfr hfr
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!
added on the 2008-09-09 13:21:20 by raer raer
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.
added on the 2008-09-09 15:41:19 by hfr hfr

login