proton:win_3dapp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
proton:win_3dapp [2010/10/29 13:00] – created 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 16: | Line 16: | ||
However, I don't mind too much, because it means for games that don't require 3D, Irrlicht doesn' | However, I don't mind too much, because it means for games that don't require 3D, Irrlicht doesn' | ||
+ | |||
+ | ====You built RTBareBones and RTSimpleAPP, | ||
+ | This tutorial assumes you already did [[proton: | ||
====Compiling RT3DApp on Windows==== | ====Compiling RT3DApp on Windows==== | ||
Line 24: | 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. | ||
Line 91: | Line 94: | ||
It also loads a separate .b3d file for the collision data, this lets you simplify it and make it so trees and things are smoother to navigate around. | It also loads a separate .b3d file for the collision data, this lets you simplify it and make it so trees and things are smoother to navigate around. | ||
- | Hmm, I probably should put up the .max file of the house scene as well as an example for 3DSMax users, bug me if you need it. :) | + | Hmm, I probably should put up the .max file of the house scene as an example for 3DSMax users, bug me if you need it. :) |
====Does this mean I can pop out a 3d game now?==== | ====Does this mean I can pop out a 3d game now?==== |
proton/win_3dapp.txt · Last modified: 2010/12/22 03:35 by seth