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 / jpeg or bmp

Author
Message
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 12th Sep 2004 01:16
my problem is this,
I am creating a 1st person virtual town using planes textured with photos of shop fronts, some of these bmp's are a couple of Mb's in size and it is hurting the frames per second rather a lot. I dont want to reduce the resolution of these photos cos when you get close to a "shop" it would just be a pixelated mess, (its already bad enough) would I be better converting to jpeg for a smaller file size or is there something else I could do? maybe two textures for each shop, high and low detail
I currently use
IF OBJECT IN SCREEN(X)=0 THEN HIDE OBJECT X ELSE SHOW OBJECT X
to minimise the damage
I have tried implementing timer based movement but cant seem to get it right, can anyone give a simple working example that I could look at
thanx
rob
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 12th Sep 2004 02:50
Changing to a jpg from a bmp will not increase your framerate because when you load it into the memory, it just takes the form of a bmp (to put it simply). It will take up the same memory. However, I would convert to jpg anyway to save hard drive space. Then you could make three detail levels by scaling the images down in your paint program and saving them. Load all three detail levels and texture your object with one depending on how close to the camera it is. Actually, you could just turn mipmapping on the object, it will create a mipmap, which will create different details for the texture and retexture automatically depending on the camera distance.

Good Luck

Xander Moser - Bolt Software - Firewall
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 12th Sep 2004 20:28
thanx, will try that.

Login to post a reply

Server time is: 2025-05-24 19:06:51
Your offset time is: 2025-05-24 19:06:51