User Tools

Site Tools


proton:win_3dapp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
proton:win_3dapp [2010/10/29 13:00] – created sethproton:win_3dapp [2010/12/15 01:46] seth
Line 2: Line 2:
 This app combines the features of the previous apps with the powerful 3D engine [[http://irrlicht.sourceforge.net/|Irrlicht]]. This app combines the features of the previous apps with the powerful 3D engine [[http://irrlicht.sourceforge.net/|Irrlicht]].
  
-integrated it over a couple days [[http://www.codedojo.com/?p=440|about a year ago]], so it's based on V1.6, not the absolute latest version. (up to 1.71 now)  If I use it in a "real" project I will probably update and clean it up a bit.+Seth integrated it over a couple days [[http://www.codedojo.com/?p=440|about a year ago]], so it's based on V1.6, not the absolute latest version. (up to 1.71 now)  Seth is planning to update it soon.
  
 Key points about how I integrated it: Key points about how I integrated it:
Line 16: Line 16:
  
 However, I don't mind too much, because it means for games that don't require 3D, Irrlicht doesn't have to be included at all. (RTBareBones and RTSimpleApp examples don't include a single Irrlicht file) However, I don't mind too much, because it means for games that don't require 3D, Irrlicht doesn't have to be included at all. (RTBareBones and RTSimpleApp examples don't include a single Irrlicht file)
 +
 +====You built RTBareBones and RTSimpleAPP, right?====
 +This tutorial assumes you already did [[proton:win_setup|this one]], and [[proton:win_setup2|this one]].  At least skim them or you won't know about building resources!
  
 ====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:
  
-<code cpp>+<code>
 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