| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 18:40:18
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
how can i draw 3d triangle for roof ?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 18:53:26
|
mike
Joined: 01/06/2008 00:00:06
Messages: 786
Offline
|
Could you explain your question in more detail?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 19:02:06
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
i am drawing building with planes and boxes. But i haven't draw roof
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 19:08:39
|
mike
Joined: 01/06/2008 00:00:06
Messages: 786
Offline
|
Oh, I see. Have you seen this tutorial? It shows how to create faces using API methods.
This message was edited 1 time. Last update was at 13/12/2008 19:09:05
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 19:46:11
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
i see that but it isn't my wish
i want to draw triangle
This message was edited 1 time. Last update was at 13/12/2008 19:46:32
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 19:55:08
|
mike
Joined: 01/06/2008 00:00:06
Messages: 786
Offline
|
There's no such primitive object as a triangle in the library. If you want a class, which draws triangles with given parameters, you have to write it by yourself.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 19:56:23
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
i am new on ac3 where can i found it ?
This message was edited 1 time. Last update was at 13/12/2008 20:10:39
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 21:36:52
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
http://epikdizayn.com/proje/
i have designed this but houses not have a roof
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 13/12/2008 23:30:21
|
cshoults
Joined: 10/07/2008 22:26:01
Messages: 62
Offline
|
I've found that you can create a polygon with just about any number of points you want and it works fine. Take a look at the following page, and view source.
http://ww.battletech-live.net/battlefield
In the source, look at anubisBase.as. Each mech I add, consists entirely of triangles. All you need to know is the coordinates for the individual vertices and the order in which they are placed. For now, a mech is created of a number of parts. Each part has multiple triangles. Each triangle is added to an array and a surface and texture are applied to each array. Later on, every triangle will have it's own texture so that I can perform correct alignment.
You can probably do just about anything you can imagine.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 14/12/2008 03:22:59
|
wolf
![[Avatar]](/images/avatar/b3f0c7f6bb763af1be91d9e74eabfeb199dc1f1f.jpg)
Joined: 31/05/2008 23:19:38
Messages: 1521
Offline
|
Berk xxL, I saw your link, and I have to say that setting a mobility of the ground to -1 will allow to avoid gaps.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 14/12/2008 20:04:46
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
Thanx Anton Volkov. But i have also not drawing triangle
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 15/12/2008 05:19:39
|
wolf
![[Avatar]](/images/avatar/b3f0c7f6bb763af1be91d9e74eabfeb199dc1f1f.jpg)
Joined: 31/05/2008 23:19:38
Messages: 1521
Offline
|
Berk, it's very simple:
All mesh methods are described here:
http://help.alternativaplatform.com/en/client/alternativa/engine3d/core/Mesh.html
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 15/12/2008 13:18:38
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
But there isn't 3d triangle i have trying but have nothing.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 15/12/2008 18:22:11
|
cshoults
Joined: 10/07/2008 22:26:01
Messages: 62
Offline
|
Ok. So far, you have several buildings. Very nice wooden doors by the way.
To my eye, the buildings have the look of office buildings. If that's your intent, there's nothing wrong with a flat roof. What shape do you want roofs to be?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 15/12/2008 18:32:32
|
wartoghex
Joined: 01/12/2008 20:43:00
Messages: 21
Offline
|
i must have triangle. for gable roof and hipped roof
|
|
|
 |
|
|