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.

Author
Message
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 5th Mar 2003 23:37
I'm trying to texture a matrix textured with this image:


But when I try to texture the matrix, I get this:


They are unevenly spaced.

This is my code:


Does anyone know why it does that?
"All programmers are playwrights and all computers are lousy actors."
-Anon.
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 5th Mar 2003 23:41
I dont think the pics worked. Go here:

http://www34.brinkster.com/andrew11/pics

"All programmers are playwrights and all computers are lousy actors."
-Anon.
klukk
22
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Iceland
Posted: 6th Mar 2003 02:41
Do it like this:



The extra flag at the end of load image tells DBP to load it with the pixel data intact (or something along those lines).

Hope that helps..

- If nothing sticks to teflon, then how do they make teflon stick to the pan???
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 6th Mar 2003 03:26
Thanks! It worked!

I knew it had to be something simple.

"All programmers are playwrights and all computers are lousy actors."
-Anon.
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 6th Mar 2003 03:29
If you are keeping it flat why not use a plain (make object plain) and the texture scaling command (scale object texture) to create the 10x10 texture, this will reduce your display from rendering 100 plains (10x10), to rendering just a single plain which will be much faster.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
andrew11
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 6th Mar 2003 03:45
That worked.
I did this:



Is it really that much faster?

"All programmers are playwrights and all computers are lousy actors."
-Anon.

Login to post a reply

Server time is: 2025-05-18 21:28:15
Your offset time is: 2025-05-18 21:28:15