Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Extract each polygon to an independent object.....
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition
View previous topic :: View next topic  
Author Message
Martialdu44
Member


Joined: 01 Oct 2008
Posts: 8

PostPosted: Wed Oct 01, 2008 1:04 pm    Post subject: Extract each polygon to an independent object..... Reply with quote

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
View user's profile Send private message
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Wed Oct 01, 2008 2:17 pm    Post subject: Reply with quote

Hi there, welcome to the forums! Smile

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
View user's profile Send private message Send e-mail Visit poster's website
Martialdu44
Member


Joined: 01 Oct 2008
Posts: 8

PostPosted: Wed Oct 01, 2008 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Wed Oct 01, 2008 6:27 pm    Post subject: Reply with quote

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 Shocked
_________________
Chickens RULE | www.elementrix.nl
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mr.Fletcher
DeleD PRO user


Joined: 07 Aug 2004
Posts: 1772
Location: Germany

PostPosted: Wed Oct 01, 2008 6:33 pm    Post subject: Reply with quote

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 Smile
DeleD on IRC
Back to top
View user's profile Send private message
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Thu Oct 02, 2008 12:42 am    Post subject: Reply with quote

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. Laughing
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Thu Oct 02, 2008 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Thu Oct 02, 2008 10:49 am    Post subject: Reply with quote

This does seem like a candidate for a plugin Very Happy
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
View user's profile Send private message
Martialdu44
Member


Joined: 01 Oct 2008
Posts: 8

PostPosted: Thu Oct 02, 2008 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Thu Oct 02, 2008 10:45 pm    Post subject: Reply with quote

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 Shocked


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
View user's profile Send private message Visit poster's website AIM Address
Daaark
DeleD PRO user


Joined: 01 Sep 2004
Posts: 2696
Location: Ottawa, Canada

PostPosted: Thu Oct 02, 2008 11:18 pm    Post subject: Reply with quote

Yeah, there is an option for that, I forget what it's called.
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mr.Fletcher
DeleD PRO user


Joined: 07 Aug 2004
Posts: 1772
Location: Germany

PostPosted: Thu Oct 02, 2008 11:34 pm    Post subject: Reply with quote

It's the "Select" in the status bar I think (iirc)
_________________
Behold! The DeleD Wiki! Please help us expanding it Smile
DeleD on IRC
Back to top
View user's profile Send private message
Starnick
DeleD PRO user


Joined: 28 Jul 2007
Posts: 611

PostPosted: Fri Oct 03, 2008 12:03 am    Post subject: Reply with quote

Ah ha I spoke too soon!
Back to top
View user's profile Send private message Visit poster's website AIM Address
fik
Member


Joined: 11 Oct 2006
Posts: 303

PostPosted: Fri Oct 03, 2008 12:44 am    Post subject: Reply with quote

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 Very Happy

Sounds a lot longer when written than to do.
Back to top
View user's profile Send private message
elementrix
DeleD PRO user


Joined: 11 May 2006
Posts: 1300
Location: The Netherlands

PostPosted: Fri Oct 03, 2008 6:35 am    Post subject: Reply with quote

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 Shocked


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 Confused they are still selected.

oh wait now I read the rest i see that has already been solved Wink
_________________
Chickens RULE | www.elementrix.nl
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Community Edition All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum