Skip to main content
gamedev.net
🔒 Locked

light map textures

Started by Marius Jun 17, 2002 at 12:21 PM 2 replies 500+ views
Original Post
Marius
Marius
I''m almost done with the using of genesis BSP file. I have some problems mapping the lightmap textures because the lightmaps textures are not allways aligned on power of 2. I have textures tehre that are 5x8 5x10 etc. I''m windering what algorithm i have to adopt to preconvert them in power of 2 bitmaps. First aproach that I have taken was to bring the values to closest greater power of 2. so for 5x3 I get 8x4. Then the problem I have I how to spread the pixels from the 5x3 matrix to 8x4 matrix. If I do-it interpolating the adiacent pixels is a lot of work. If I use the nearest, wich one i have to duplicate? For example on colum 1 I have R-G-B (3 pixelx) how to I expnd them on 4 sized storage RRGB RGGB or RGBB Thanks.
MCO
SwSh
SwSh
what do you mean by a "genesis bsp file"?
If you''re working with normal q3bsp-files, you gotta see the tutorials on www.gametutorials.com
Have fun!

===========================
UNKNOWN caused an invalid page fault in module unknown at 0000:bff80eb6
: win98 with multiple sclerose
Marius
Marius
Is not q3bsp is a genesis bsp
check it at:
http://www.genesis3d.com/
and my test at
http://members.rogers.com/chisan7180/
MCO
Marius
Marius
Found it:
gluScaleImage

Thanks anyway.



MCO

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.