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 a triangle properly

Author
Message
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 24th Jan 2004 03:00
When I use the make object triangle command and texture the resulting triangle, the texture looks freaked up because the triangle has 3 sides and the texture has 4 sides, thus making it look as if 2 corners of the texture are squeezed into 1 side of the triangle. Is there a way to fix this, using memblocks, or is there a command I don't know about or anything?

Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 24th Jan 2004 12:28
I think you should model a triangle and texture it in a 3d modeling program. Then you can load it in DB. But i think thats not what yer lookin for...

Juzt a dude who likez progging - Me loves RTS games
Travis
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: West Aust.
Posted: 31st Jan 2004 05:53
no theres no command (i think)
what you have to do is make a 'skin' as opposed to a texture
where you allow for over laps ect in the texture
so for your case make the texture in a triangle shape so it ends up how u would want it to look then stretch the top out so it ends up square and when u texture ur triangle it will do as u said and push the top together making it go back to the triangle texture u had to start with (p.s. i dont know how u would stretch the top like that maybe in paint shop or another higher market program)
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 31st Jan 2004 11:32
You could always make a simple triangle in a 3D modeling program, and texture it, then load it in, and it will retain perfect texturing.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 1st Feb 2004 22:12
Yer right jess

Juzt a dude who likez progging - Me loves RTS games

Login to post a reply

Server time is: 2025-05-22 12:13:25
Your offset time is: 2025-05-22 12:13:25