proton:win_3dapp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proton:win_3dapp [2010/11/07 11:03] – seth | proton:win_3dapp [2010/12/22 03:35] (current) – seth | ||
---|---|---|---|
Line 2: | Line 2: | ||
This app combines the features of the previous apps with the powerful 3D engine [[http:// | This app combines the features of the previous apps with the powerful 3D engine [[http:// | ||
- | I integrated it over a couple days [[http:// | + | It's based on the Irrlicht GLES 1.7.1 beta branch. |
Key points about how I integrated it: | Key points about how I integrated it: | ||
* I don't use any of Irrlicht' | * I don't use any of Irrlicht' | ||
* I added a custom texture type so it could read my .rttex format, including pvrct. (PowerVR compressed textures that iOS stuff uses) | * I added a custom texture type so it could read my .rttex format, including pvrct. (PowerVR compressed textures that iOS stuff uses) | ||
- | * It supports only two renderers, GL and GLES V1.X. | + | * It supports only two renderers, GL and GLES V1.X. |
* It is able to load texture formats that Proton can't, including .jpg and .png directly | * It is able to load texture formats that Proton can't, including .jpg and .png directly | ||
* You can use Proton' | * You can use Proton' | ||
Line 18: | Line 18: | ||
====You built RTBareBones and RTSimpleAPP, | ====You built RTBareBones and RTSimpleAPP, | ||
- | This tutorial assumes you already did [[proton: | + | This tutorial assumes you already did [[proton: |
====Compiling RT3DApp on Windows==== | ====Compiling RT3DApp on Windows==== | ||
Line 27: | Line 27: | ||
This cryptic line in the batch file does most of the compressing: | This cryptic line in the batch file does most of the compressing: | ||
- | < | + | < |
for /r %%f in (*.bmp *.png *.jpg *.tga) do ..\%PACK_EXE% -flipv -mipmaps -stretch -pvrt4444 %%f | for /r %%f in (*.bmp *.png *.jpg *.tga) do ..\%PACK_EXE% -flipv -mipmaps -stretch -pvrt4444 %%f | ||
- | </cpp> | + | </code> |
- | It's saying turn everything into 4444 raw files, stretch them to be power of two, and flip them vertically. | + | It's saying turn everything into 4444 raw files, stretch them to be power of two, and flip them vertically. It also compresses the final product with zlib, the filesizes of an .rttex are comparable to .png. |
These textures will load on anything. | These textures will load on anything. |
proton/win_3dapp.txt · Last modified: 2010/12/22 03:35 by seth