[Logo]
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing  
[Register] Register / 
[Login] Login 
triangle draw  XML
Forum Index » Alternativa3D 5
Author Message
wartoghex


Joined: 01/12/2008 20:43:00
Messages: 21
Offline

how can i draw 3d triangle for roof ?
mike


Joined: 01/06/2008 00:00:06
Messages: 786
Offline

Could you explain your question in more detail?
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
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

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

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.
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

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
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.
wolf

[Avatar]

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.
wartoghex


Joined: 01/12/2008 20:43:00
Messages: 21
Offline

Thanx Anton Volkov. But i have also not drawing triangle
wolf

[Avatar]

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
wartoghex


Joined: 01/12/2008 20:43:00
Messages: 21
Offline

But there isn't 3d triangle i have trying but have nothing.
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?



wartoghex


Joined: 01/12/2008 20:43:00
Messages: 21
Offline

i must have triangle. for gable roof and hipped roof
 
Forum Index » Alternativa3D 5
Go to:   
Powered by JForum 2.1.8 © JForum Team