View previous topic :: View next topic |
Author |
Message |
Martialdu44 Member
Joined: 01 Oct 2008 Posts: 8
|
Posted: Wed Oct 01, 2008 1:04 pm Post subject: Extract each polygon to an independent object..... |
|
|
hi this is my first message, i'm french,and i'm using deled lite, so i'm wonderning if it is possible to extract each polygon of my map to an independent object, this is for an export to the Dark Basic engine, where the CSG (Constructive solid geometry) don't work with object who have more than 1 texture.... _________________ if a= 2a=5 then win....
I'm a french user, so please, if i dont speak english correctely, correct me |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Wed Oct 01, 2008 2:17 pm Post subject: |
|
|
Hi there, welcome to the forums!
You can use the Extract tool for polygons, but you would have to extract each polygon individually, which can be quite a task. _________________ Check out Figuro, our online 3D app! More powerful 3D tools for free. |
|
Back to top |
|
|
Martialdu44 Member
Joined: 01 Oct 2008 Posts: 8
|
Posted: Wed Oct 01, 2008 6:10 pm Post subject: |
|
|
And there no solution to automatize the process ?
because i have a lot of maps (withs many polys...), and i dont have the time to do it manualy.... _________________ if a= 2a=5 then win....
I'm a french user, so please, if i dont speak english correctely, correct me |
|
Back to top |
|
|
elementrix DeleD PRO user
Joined: 11 May 2006 Posts: 1300 Location: The Netherlands
|
Posted: Wed Oct 01, 2008 6:27 pm Post subject: |
|
|
If you just want to extract poly's with the same material applied, you can go into the UVeditor, select one face with a texture, and then select all the other face's that appear in the UVeditor, that way you can extract all poly's with the same material.
If you want to extract each poly, then you would need to do it mannually yes, But it's really strange that you have to extract each individual poly _________________ Chickens RULE | www.elementrix.nl |
|
Back to top |
|
|
Mr.Fletcher DeleD PRO user
Joined: 07 Aug 2004 Posts: 1772 Location: Germany
|
Posted: Wed Oct 01, 2008 6:33 pm Post subject: |
|
|
You can write a plugin that does that for you. Or in dark basic before you do the CSG, if you have access to the data.
But it doesn't really make sense to me. I reckon that it will slow everything down if you have 20000 different objects with only one polygon.
You should try to put all texture information of one object in one image file and use only that texture with the object.
Also you can select the polygons that share the same texture and only extract those. There's even a "select my material" command in DeleD. Still complicated enough, but less work than doing it for every single polygon. _________________ Behold! The DeleD Wiki! Please help us expanding it
DeleD on IRC |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Thu Oct 02, 2008 12:42 am Post subject: |
|
|
Sounds like a job for Fik
Plugins->One Object Per Material
That's pretty much how my old DMF loader worked. I have a vertex array for each material, and recreated it with all the polygons of any object that had that material.
however, I didn't need any frustum culling or anything like that. _________________
|
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Oct 02, 2008 9:33 am Post subject: |
|
|
Ok, so what you really need is not one object per polygon, but objects split so they have exactly one material each?
Sounds like very arbitrary functionality just to work around a bug in Dark Basic to me, but... if this is something more people would profit from, I think it should be build directly into the Dark Basic exporter. Other exporters (like the Ogre Mesh exporter, and the Blitz 3D exporter) already do this (not optionally, it is a requirement for these mesh formats). |
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Thu Oct 02, 2008 10:49 am Post subject: |
|
|
This does seem like a candidate for a plugin
However I don't quite see how Splitting either into one poly per object or one object per texture this would help as Martialdu44 said he wants it for dark basic csg and surely that wouldn't work with objects that are full of holes or just one poly ??
Martialdu44 I do own DB pro (haven't used in a while though) if you like to post a link to somewhere I could download your code and the model using I could have a look and see what you do need to get working.
p.s. Still working on bridge one(still not working completely as I would like yet) and completed a couple of others must make thread in plugins with all and keep them updated to latest as any bugs get fixed. |
|
Back to top |
|
|
Martialdu44 Member
Joined: 01 Oct 2008 Posts: 8
|
Posted: Thu Oct 02, 2008 7:21 pm Post subject: |
|
|
thanks for all ansers !!
but a plugin isn't a too strong solution ???
@elementrix : can you explain you about your method ?
i can't select nothing in my UV editor !!!! _________________ if a= 2a=5 then win....
I'm a french user, so please, if i dont speak english correctely, correct me |
|
Back to top |
|
|
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Thu Oct 02, 2008 10:45 pm Post subject: |
|
|
elementrix wrote: |
If you just want to extract poly's with the same material applied, you can go into the UVeditor, select one face with a texture, and then select all the other face's that appear in the UVeditor, that way you can extract all poly's with the same material.
If you want to extract each poly, then you would need to do it mannually yes, But it's really strange that you have to extract each individual poly |
Can't do that though elementrix, if you select the faces in the UVeditor, you get put into Face Mode, which the "extract" option isn't available. If you try to go into polygon mode, everything gets deselected.
Unless if you know of a way to go around that? |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Thu Oct 02, 2008 11:18 pm Post subject: |
|
|
Yeah, there is an option for that, I forget what it's called. _________________
|
|
Back to top |
|
|
Mr.Fletcher DeleD PRO user
Joined: 07 Aug 2004 Posts: 1772 Location: Germany
|
Posted: Thu Oct 02, 2008 11:34 pm Post subject: |
|
|
It's the "Select" in the status bar I think (iirc) _________________ Behold! The DeleD Wiki! Please help us expanding it
DeleD on IRC |
|
Back to top |
|
|
Starnick DeleD PRO user
Joined: 28 Jul 2007 Posts: 611
|
Posted: Fri Oct 03, 2008 12:03 am Post subject: |
|
|
Ah ha I spoke too soon! |
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Fri Oct 03, 2008 12:44 am Post subject: |
|
|
You can do it indirectly as Elementrix says.
1. Four window views.
2. Set one window to Uv.
3. Go to another window and go into polygon mode, select a poly with material on you want.
4. Drag Select all faces that are now shoeing in uv window( will only be one's with that material on).
5. Click top bar of one of the other windows you still in face mode .
6.Now click poly mode and selection stays.
7. Now click extrude
Sounds a lot longer when written than to do. |
|
Back to top |
|
|
elementrix DeleD PRO user
Joined: 11 May 2006 Posts: 1300 Location: The Netherlands
|
Posted: Fri Oct 03, 2008 6:35 am Post subject: |
|
|
Starnick wrote: |
elementrix wrote: |
If you just want to extract poly's with the same material applied, you can go into the UVeditor, select one face with a texture, and then select all the other face's that appear in the UVeditor, that way you can extract all poly's with the same material.
If you want to extract each poly, then you would need to do it mannually yes, But it's really strange that you have to extract each individual poly |
Can't do that though elementrix, if you select the faces in the UVeditor, you get put into Face Mode, which the "extract" option isn't available. If you try to go into polygon mode, everything gets deselected.
Unless if you know of a way to go around that? |
I can go from face mode to polygon mode without any problems they are still selected.
oh wait now I read the rest i see that has already been solved _________________ Chickens RULE | www.elementrix.nl |
|
Back to top |
|
|
|