Game Development Community

GBitmap In Order to Extrude miplevel, bitmap...

by James Reue · in Torque Game Engine · 12/13/2001 (10:23 pm) · 2 replies

I made a gun in 3dstudio max 4. Used a jpg 210X210 for the texture. I exported to dts. When i try to import into engine i get:
GBitmap::GBitmap: In Order to Extrude miplevel, bitmap w/h must be pow2

I get the impression it is saying the image needs to be a power of 2. Well if my math skilz serve me correctly, 210 is a power of 2. Help.

If i dont use a texture, the model comes in correctly, but a light blue..

The actual texture is 210x210 but i cropped it in 3dstudio max. is this a no-no?

help

#1
12/13/2001 (11:31 pm)
Your math skills deceive you. What you need is a power of two, rather than a multiple of two. For that size texture you'd need to either go up to 256x256, or down to 128x128.
#2
12/13/2001 (11:42 pm)
power of 2, not divisible my 2.

width and height must be some 2^n where n>0 (and usually n<=8)

2, 4, 8, 16, 32, 64, 128, 256, 512, ...

--Rick