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 / Matrix problems with 1024x1024 texture

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 27th Jan 2008 12:08
weirdly enough when i last run the code about 7 monyhs ago so did it work but now does my matrix editor screw it up when you use an 1024 x 1024 texture?
does anyone know off an problem with larger textures in dbp.
the matrix gets untextured thats the problem
cheers and thanks
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 27th Jan 2008 15:12
Insufficient information to help.

Is your matrix texture image 1) a single 1024x1024 texture mapped onto the matrix or 2) a 1024x1024 texture containing a grid of smaller textures?

I've used both before with no problem, but without any code to see it's difficult to know where the problem could be.

TDK_Man

Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 27th Jan 2008 17:26
hi tdk iam dividing it by 8.
------------------------------------------------
make matrix 1, terrainX#,terrainz#,mapX ,mapZ
prepare matrix texture 1,main_ground_texture,8,8
set matrix 1,0,0,1,2,1,0,1
SET MATRIX TRIM 1,0.124,0.124
fill matrix 1,0,1
randomize matrix 1,98
gosub matrix_normals
update matrix 1

----------------------------------
the thing iam thinking about is some kind of memory issue?
as it have worked but dosent anymore.
works fine in the game engine but not in the editor untill i resize the main texture to 512x512.
i run both programs in windowed mode.
and if i run the matrix editor before the engine prg.
so will the engine prg get the same fault.
so there must be something that is left in memory?

Attachments

Login to view attachments
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 27th Jan 2008 17:26 Edited at: 27th Jan 2008 17:29
i havent runed the code for about 7 months because of time issues.
and have checked all the image files as i thought it could be an corrupted image file?

Attachments

Login to view attachments
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 27th Jan 2008 18:26
yust found the problem
apparently when i was experimenting with functions so did i do an function to setup sync rates and screen depths and alot of other stuff.
that screws everything up.
as almost always so is it not dbp but the programer that is the weak part of it all

Login to post a reply

Server time is: 2024-11-25 07:52:46
Your offset time is: 2024-11-25 07:52:46