FSDeveloper Community

Go Back   FSDeveloper Community > Other > Tools programming

Tools programming Use this forum to discuss anything related to creating tools for addon developers

Reply
 
Thread Tools Display Modes
  #1  
Old 16 Feb 2012, 05:21
Buite Buite is offline
  france
Join Date: Sep 2011
Posts: 10
Polygon concave

Is FS2004 able to use concave Polygon?

All my convex polygon are good in TmfViewer but all my concave polygon are bad, so I think probably FS2004 doesn't use concave Polygon.
Reply With Quote
  #2  
Old 16 Feb 2012, 08:04
Buite Buite is offline
  france
Join Date: Sep 2011
Posts: 10
It's ok I've fund my problem.
Reply With Quote
  #3  
Old 16 Feb 2012, 08:20
hcornea's Avatar
hcornea hcornea is offline
  australia
Location: Australia
Join Date: Apr 2007
Posts: 2,139
Always good to share the solution, having asked a question.

It might just help someone else.

I'm still unsure about what convex vs concave polygons might be.


Sent from my mobile .. words substituted by iPhone at will.
__________________
All of my apparent expertise is a product of The Dunning-Kruger Effect
Reply With Quote
  #4  
Old 16 Feb 2012, 10:23
Golf-HotelDelta Golf-HotelDelta is offline
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,928
Quote:
Originally Posted by hcornea View Post
I'm still unsure about what convex vs concave polygons might be.
Think of a "V" shape (concave) versus an "O" shape (convex).
__________________
George
Reply With Quote
  #5  
Old 16 Feb 2012, 12:29
Buite Buite is offline
  france
Join Date: Sep 2011
Posts: 10
I had just forgive one point, so I hadn't the right number of point and TmFViewer want the right point's number.
Reply With Quote
  #6  
Old 16 Feb 2012, 16:00
hcornea's Avatar
hcornea hcornea is offline
  australia
Location: Australia
Join Date: Apr 2007
Posts: 2,139
Quote:
Originally Posted by Golf-HotelDelta View Post
Think of a "V" shape (concave) versus an "O" shape (convex).
Yes, I believe I know what the words mean, having more than a rudimentary understanding of optics (!) just not sure how they relate to land polygons (which in my brain are either sloped or flat -- this may, of course, be an FSX thing)
__________________
All of my apparent expertise is a product of The Dunning-Kruger Effect
Reply With Quote
  #7  
Old 16 Feb 2012, 17:36
rhumbaflappy rhumbaflappy is offline
  us-wisconsin
Location: Elkhorn
Join Date: Jun 2004
Posts: 2,264
All polys in FS2004 should be convex, otherwise the edges of the poly might fold over on itself. Ideally, all polys would be triangles, thereby forcing convexity.

http://en.wikipedia.org/wiki/Convex_...ambiguation%29

Dick
__________________
visit http://www.ludowise.x10host.com/
Reply With Quote
  #8  
Old 16 Feb 2012, 20:20
hcornea's Avatar
hcornea hcornea is offline
  australia
Location: Australia
Join Date: Apr 2007
Posts: 2,139
Interesting Dick. I guess I had considered all poly's to be flat / triangulated things.

Since you can only define an "edge" i hadn't really considered any other shape.


Sent from my mobile .. words substituted by iPhone at will.
__________________
All of my apparent expertise is a product of The Dunning-Kruger Effect
Reply With Quote
  #9  
Old 17 Feb 2012, 03:03
Golf-HotelDelta Golf-HotelDelta is offline
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,928
In FSX, vector polygons need be neither flat nor convex.
__________________
George
Reply With Quote
  #10  
Old 17 Feb 2012, 04:06
hcornea's Avatar
hcornea hcornea is offline
  australia
Location: Australia
Join Date: Apr 2007
Posts: 2,139
So ... a concave polygon is defined by having a point lower than its two neighbouring points ... the induced depression producing (at least in theory) a concavity.

Hmm ... it is a moot point for me as I don't develop for FS9 at all.

It seems to me that this is the only concave shape that you could define by edge-vertices alone.
__________________
All of my apparent expertise is a product of The Dunning-Kruger Effect
Reply With Quote
  #11  
Old 17 Feb 2012, 09:32
rhumbaflappy rhumbaflappy is offline
  us-wisconsin
Location: Elkhorn
Join Date: Jun 2004
Posts: 2,264
Concavity was quite an issue when drawing VTP or LWM polys for FS9. Luis Sa spent a bit of time coming up with code in SBuilder to triangulate the polys so they would not have concave shapes. I don't believe Luis' code is 100% all the time. FS9 doesn't allow holes either. I do note that there are some default concave shapes in the default LWM polys... but nothing complicated. The assembly code doesn't prevent it, but the display engine can get "confused" by it.

In FSX, Shp2Vec handles the code, and does a great job of eliminating the problem.

Dick
__________________
visit http://www.ludowise.x10host.com/

Last edited by rhumbaflappy; 17 Feb 2012 at 09:37.
Reply With Quote
  #12  
Old 17 Feb 2012, 09:41
Golf-HotelDelta Golf-HotelDelta is offline
  unitedkingdom
Location: Harton Village
Join Date: Dec 2004
Posts: 7,928
Quote:
Originally Posted by hcornea View Post
So ... a concave polygon is defined by having a point lower than its two neighbouring points ... the induced depression producing (at least in theory) a concavity.
No.

Quote:
It seems to me that this is the only concave shape that you could define by edge-vertices alone.
How about this top-down view? It is a 'concave' shape with different heights at each vertex.

__________________
George
Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FSX] polygon wizard layman's confusion robystar ModelConverterX 5 05 Dec 2011 13:37
[FSXA] Landclass Polygon flattens too much mmann FSX terrain 2 25 Nov 2011 13:32
GMax ground polygon "flatten" darren s GMax and 3DS Max 16 14 Mar 2011 23:56
Polyline vs Polygon Mac FSX KML 11 23 Jun 2007 13:42
FS2002 polygon animation Shagster22 GMax and 3DS Max 2 17 Mar 2006 07:29


All times are GMT -4. The time now is 21:22.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.