Suggestion Complex polygons?

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
912
Would it be hard to implement so that DrawPoly or DrawPrimitives would allow all kinds of polygons?
 

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
912
Higher order polygons, but I settle for concave polygons.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,165
CX does not triangulate Polygons for you. You have to do it yourself.

EDIT: I have to correct myself here. I am sure i could be possible, but I have currently no time to work on this. And no interest in that feature to be honest. But if you provide the CX code, I am sure it can be added.
 
Last edited:

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
912
Are there any sourceode-examples available that one can use? I'm just starting with 3D and need something simple.
 

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
912
Okay I understand there's no interest. I agree that the focus should be elsewhere.
I'm trying to find a good start with understanding 3D in-depth and am wondering where to begin.
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
852
but I settle for concave polygons.
The Mojo target that I know of that can handle concave polygons is HTML5.
If anything. Read the OpenGL link that Mike has posted and consider looking into the Cerberus GL commands.
 

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
912
If you were to base write a tesselation for Cerberus, should you prefer DrawPoly or DrawPrimitives as the underlaying primitive?
 
Top Bottom