Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Can anyone help me?

Author
Message
deti
23
Years of Service
User Offline
Joined: 18th Sep 2002
Location:
Posted: 14th Nov 2003 12:04
Hi,

i have a polygon.
the polygon has 4 vertices with the points :
v1.x1; v1.y1; v1.z1
v2.x2; v2.y2; v2.z2
v3.x3; v3.y3; v3.z3
v4.x4; v4.y4; v4.z4

the polygon has a texture with UV values are p.u ; p.v coords.

Can i draw this polygon in dbp ?


Sorry for my bad english
las6
23
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Finland
Posted: 14th Nov 2003 12:23 Edited at: 14th Nov 2003 12:25
Well, yes and no.
No because DBP thinks polygons as triangles.
and Yes, because it is possible, using two triangles.

You can use the crappy ole make object triangle command. at least you get fast results. Although the texturing might not work.

But what you should really look into is memblocks. This is what you really need. It's a large topic, and I have no code here at work, so I'm hoping that someone else can help you here.

Keyboard not detected. Press F1 to continue.

Login to post a reply

Server time is: 2026-07-26 14:31:08
Your offset time is: 2026-07-26 14:31:08