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 Discussion / texture alignment on triangles

Author
Message
Manson
20
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Denmark
Posted: 2nd Jan 2003 03:29
Does anybody know of a way to texture a triangle in a way so that the texture is not aligned to two of the sides?
John H
Retired Moderator
20
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 2nd Jan 2003 04:16
Try the SET OBJECT command and CULL

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Manson
20
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Denmark
Posted: 2nd Jan 2003 13:25
setting the 'cull' values only makes a poly one-way-transparent.

Any other surgestions?
Maybe someone has a function for doing things like this?

John H
Retired Moderator
20
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 2nd Jan 2003 16:28
oh ya lol.Well I guess you could always try duplicating the object and not texturing its duplicate. I dont know if there is a way to not texture one side.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Manson
20
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Denmark
Posted: 2nd Jan 2003 16:38
Oh crap, I wasn't specific enough,,,
Sorry, my bad:

The sides I'm talking about are those that are three of (A,B and C is the usual names)

When you texture a triangle using the 'texture object' command, the image is beeing aligned to the two first of the three sides of the triangle. Can that be avoided?

John H
Retired Moderator
20
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 2nd Jan 2003 16:41
Hmmmmm, so your trying to texture the faces of the triangle? Hmmmmm. I dont know about that, I would suggest texturing a limb- except I think a triangle is considered a full limb. Hmmm, sorry, dunno what to tell ya

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Manson
20
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Denmark
Posted: 2nd Jan 2003 17:37
Does anybody have an idea?
All it takes is either a build-in command or a function using sin and cos to redraw the image,,,
If anybody has knowledge on the matter please speak up!

Login to post a reply

Server time is: 2023-09-30 20:49:10
Your offset time is: 2023-09-30 20:49:10