clic to reload the forum home - Cliquez pour recharger le forum
The homepage Blog in englishLe blog de la page d'accueilVisit the english language forum!Allez directement au forum françaisGo to the gallery! - Allez visiter la galerie !The files to download - textures, softwares, etc.Les fichiers à télécharger : textures, logiciels, etc.3D and 2D challenges!Come and talk together in realtime - Venez tous discuter ensemble !About Polyloop.netA propos de Polyloop.net
Go Back   Polyloop - 3D & 2D Forums > English > Modeling - Sculpting

Modeling - Sculpting Dedicated forum to all the modeling questions & comments, from boxmodeling, edge modeling, assembly of shapes, etc. to sculpting.

Reply
 
LinkBack Thread Tools Display Modes
Old 30th December 2006, 23:14   #1 (permalink)
Vertex
 
pavroza's Avatar
 
Join Date: Dec 2006
Posts: 5
Quad to triangles

Hi All,

I've just downloaded Hexagon 2.1 and giving it a try. It looks very nice by the way.

My question is:

Can I convert a FLAT quad into 2 triangles? ONLY TWO triangles I mean.

In the "Vertex Modelling" tools:
I've found the "Diamond tesselation" that converts quads to diamonds...
I've found the "Triangle tesselation" that converts quads to 4 triangles, NOT 2 triangles...aghh...

And in the "Utilities" section:
I've found a tool to "Triangulate non planar facets"...NOT MY CASE!!
and another one to "Triangulate n-gons" , that triangulates facets with
5 or more vertices, but NOT quads

The tools I've mentioned before create lots of triangles I don't need to
convert simple 3D models to triangles and use then in real time programs.

Thanks in advance,
pavroza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st December 2006, 07:48   #2 (permalink)
Polygurbs
 
Couerl's Avatar
 
Join Date: Jul 2005
Location: Denver
Posts: 1,301
Send a message via Yahoo to Couerl
I'm curious, why woud you want to convert all your nice clean quads into triangles?

The obvious way to me would be to export as an .obj and import it to whatever you are going to import it to? :|
Couerl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st December 2006, 10:06   #3 (permalink)
Booh!
 
Piem's Avatar
 
Join Date: May 2003
Location: Rennes/fr
Posts: 6,644
Send a message via MSN to Piem
There is at least one reason ..Maxwell-Render. (it doesn't support real quads..too bad )

It could be nice to export tris, at leisure.

And also, it could be nice to export dxf as quads, because those particular quads are read as tris by Maxwell
__________________
- Sheik Yerbouti -
Let love the Noise

technimesh.com


Last edited by Piem; 31st December 2006 at 12:16. Reason: Sig
Piem is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st December 2006, 10:57   #4 (permalink)
are
AKA RamPackWobble
 
are's Avatar
 
Join Date: Dec 2005
Location: Anglesey, North Wales, UK
Posts: 216
Try the decimate tool in utilities tab but set for 1.00 - my quick tests show that it appears to work ?
Attached Thumbnails
Click image for larger version

Name:	decimate.jpg
Views:	34
Size:	36.9 KB
ID:	17050  

Last edited by are; 31st December 2006 at 11:06. Reason: added picture
are is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st December 2006, 12:53   #5 (permalink)
Vertex
 
pavroza's Avatar
 
Join Date: Dec 2006
Posts: 5
Hi, thank you for your replies.

Yes, it looks like "decimantion" with 1.0 values could do that task. It makes
triangles for all quads in an object. I would prefer all the triangles to be generated the same way for all quads (always from the upper left corner to the lower right corner of the quad or from the upper right corner to the lower left corner) but it could be ok. Thanks again!

As regards the previous question about why I wanted triangles and not
quads:

I want my models to use triangles because I want to make 3D models for
real-time applications (mostly video-games and simulation).
Quads are a "compact" way of transferring information to the video card but they also have a big problem: many 3D engines need triangles.

Non-flat quads (when the 4 points are not located into a single plane) ,
or concave quads (when two edges make angles bigger than 180) coud generate visualization artifacts wrong colour distribution or not be seen at all (low level APIs like OpenGL require to tesselate non-convex shapes)

And finally...what's the best shape to approximate the shape of a triangle??
a quad? or a triangle? hehehee (just joking).
Triangles are equivalent to pixels in 2D, the minimal shape from what you
can build every object you can imagine.

Perhaps my needs are a bit specific, I don't make nice organic models with
subdivision surfaces

Well, thanks again to everybody!
pavroza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st December 2006, 13:17   #6 (permalink)
Always learning new stuff
 
Thomas's Avatar
 
Join Date: Jul 2002
Location: Merignac, France
Posts: 11,319
Send a message via ICQ to Thomas Send a message via MSN to Thomas
Quote:
Originally Posted by pavroza View Post
I would prefer all the triangles to be generated the same way for all quads (always from the upper left corner to the lower right corner of the quad or from the upper right corner to the lower left corner) but it could be ok.
Yes, all the cut should be in the same way, you are true, but to answer to your comment about the '"upper left corner to the lower right corner" : how the software can know where is the first corner to start (I mean upper left corner). your eyes are seeing it, but the software don't have eyes are us ;)
Then, all of this to tell that having all the triangulation in the same way is easy, but always in the same direction is almost impossible
__________________
Polyloop owner & Administrator - no support by PM or email.
Polyloop
[EN/FR]
- Meuuh [FR +16 ans] - Totyo [FR] - Pixologic [JOB] - Le ZBlog [JOB] - La3dpourlesnuls [FR]
Thomas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31st December 2006, 14:41   #7 (permalink)
Vertex
 
pavroza's Avatar
 
Join Date: Dec 2006
Posts: 5
Yes, you're right, a computer has no "eyes" to see what's "up" or "down", although I don't know if the inner data structures of hexagon order the vertices in a consistent way that would allow to "classify" the vertices and make a coherent quad to triangles decomposition.

To reply that question we should be able to take a look at the source code of Hexagon (but Hexagon is not open source...so....) hehehehe...

A developer of hexagon could give a good answer. Sure!.

I've seen programs that have options to "flip" the triangle decomposition of quads too, perhaps that's an option for future Hexagon's versions (if any).

Non-coherent quad to triangle decomposition is good in some cases,
when you want to get nicer images under certain conditions.
See the book "Real Time Rendering" pages 269-274, 1st Edition by Tomas Moller and Eric Haines . ISBN 1-56881-101-2 , published by AK Peters.

Coherent quad to triangle decompositions is good in other like storing the
information in a compact way to render it extremly fast.
pavroza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1st January 2007, 03:49   #8 (permalink)
Now, I learn animation
 
medeamajic's Avatar
 
Join Date: Sep 2005
Posts: 1,028
Great info guys. I found this thread to be intersting. I did not know games needed to have trianlges. I want to get into gaming but it will have to wait until next year sometime. It looks like Hexagon should work for gaming.

Have any of you made any video games? Did you use Carrara, Hexagon, Lightwave, 3DS Max or Maya?
medeamajic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1st January 2007, 06:05   #9 (permalink)
Vertex
 
pavroza's Avatar
 
Join Date: Dec 2006
Posts: 5
Yes, I have worked some years ago for Ubi Soft, as videogames programmer.
Now I work making the visual software of simulators (military and non military) and software tools to help to program this kind of software.

As regards videogames and simulators (or any kind of real-time 3d graphics)
triangles are the basic primitive for all kind of models. Quads too if your
3D engine can use them and you take care of non-flat and non-convex quads.

But perhaps this subject falls out of the original subject of this thread, and we should start a new one to talk about that, and not drive the users of the forum crazy hehehehe.
pavroza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1st January 2007, 06:19   #10 (permalink)
SILO abuser
 
LoneGunman's Avatar
 
Join Date: Jan 2006
Location: Louisville, KY USA
Posts: 556
Quote:
Originally Posted by pavroza View Post

...I've seen programs that have options to "flip" the triangle decomposition of quads too, perhaps that's an option for future Hexagon's versions (if any)...
Hmmm, I was under impression that any 3D modeling software can do just that, if you do not like direction, just flip normals, triangulate, and then flip normals again, beauty of it you can do it for entire object or selected part of the mesh...

But, again, I might be wrong (been there before)
__________________
My missions are not impossible, I just make them look that way
LoneGunman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1st January 2007, 11:54   #11 (permalink)
Extrusion
 
Shonner's Avatar
 
Join Date: Apr 2004
Posts: 190
Quote:
Originally Posted by pavroza View Post
Can I convert a FLAT quad into 2 triangles? ONLY TWO triangles I mean.
Export your model in 3DS format.
__________________
Shonner
Shonner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1st January 2007, 14:02   #12 (permalink)
Vertex
 
pavroza's Avatar
 
Join Date: Dec 2006
Posts: 5
Thank you for all your advices
pavroza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1st January 2007, 16:39   #13 (permalink)
are
AKA RamPackWobble
 
are's Avatar
 
Join Date: Dec 2005
Location: Anglesey, North Wales, UK
Posts: 216
I know silo has a "spin edge" function which might be worth looking at ?

after the decimation you can always (backspace) delete any edges that you wish to flow in the other direction and then connect the correct points (hotkey x). Might take too long though ?
are is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 2nd January 2007, 19:30   #14 (permalink)
stu
 
laughingnome's Avatar
 
Join Date: Mar 2004
Posts: 909
Silo 2 also has subdivide which converts quads to tris

stu
__________________
just trying to cut down the pain threshold


AMD2.4 dualcore 4 gig ram, 9400GT ,WinXP Home
laughingnome is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT +2. The time now is 04:01.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Polyloop - 3D & 2D Community Forum - © Thomas Roussel