cjcliffe / CubicVR

CubicVR 3D Engine, C++ version
http://www.cubicvr.org/
MIT License
80 stars 22 forks source link

Edited cubicvr/source/Texture.cpp via GitHub #11

Closed PH3NIX closed 13 years ago

PH3NIX commented 13 years ago

Added support for direct loading of the Sega Dreamcast PVR (VQ) Compression.

I go by PH3NOM, but that name was already taken here on github :-(

PH3NIX commented 13 years ago

loadpvr: I have written this function from scratch. It is updated from information posted here: http://www.fabiensanglard.net/Mykaruga/tools/segaPVRFormat.txt

To encode pvr-vq textures, I have updated the encoder vqenc to add a standard pvr file header. http://www.megaupload.com/?d=UL7QOSAZ

cjcliffe commented 13 years ago

Looks great, merged -- do you mind if I include your modified VQENC source as a tool in the cubicvr repository as well? Should get that up on a GitHub project as well :)

PH3NIX commented 13 years ago

Sound good. I think it is a good idea to post the tool also.

If there is anything else I can help with on the Dreamcast side of things, let me know!

How far are we from seeing .bsp loading on DC?

cjcliffe commented 13 years ago

BSP should technically load now, it just currently lacks support for loading JPEGs and secondary lightmap blending so it would render all black. I'm using tinyjpeg now so it should be possible to upload the textures it will just be a matter of memory limits.