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.

Newcomers DBPro Corner / problem with matrix textures

Author
Message
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 6th Jun 2004 02:45
Ok, im trying to read from "data" and make a matrix from it. Works fine. Then i added a floor texture but the matrix is only texturised (sp?) in the lower left corner.

Heres the code:


Whats wrong? The full source is included... i have a movement problem also if you can figure that out but i try to solve this matrix problem first.

Thanks in advance
Mizi

Dreaming of creating a highly advanced AI mind
UberTuba
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 6th Jun 2004 03:11
i dont think you should be using a m a matrix for that, a plain would do nicely.
also do not use fill matrix for a texture that will be repeated througought the matrix, as prepare matrix texture will fill it with that texture.
however as to why only noe corner is textured im stumped.

I'm Right and Reality is lying
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 6th Jun 2004 03:28
as for now... ill wait with texturasation (sp?)... its easier to debug with a wireframe

thanks anyway

Dreaming of creating a highly advanced AI mind
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Jun 2004 14:27
Try this slightly changed code:



The problem isn't with the texturing of the matrix - it's simply that you didn't make the scale of the matrix and the blocks the same

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Mizipzor
20
Years of Service
User Offline
Joined: 24th May 2004
Location: Sweden
Posted: 6th Jun 2004 14:38
thanks

Dreaming of creating a highly advanced AI mind

Login to post a reply

Server time is: 2024-09-22 12:25:36
Your offset time is: 2024-09-22 12:25:36