T2D 1.2 force 16Bit
by AltiMario · in iTorque 2D · 04/21/2010 (7:36 am) · 4 replies
Hi all,
I've writed all parameters to force the iphone to see the 16-bit images but does not work.
Can anyone help me?
I have the PRO version so I can make changes even iTGB side engine.
and...
I've writed all parameters to force the iphone to see the 16-bit images but does not work.
Can anyone help me?
I have the PRO version so I can make changes even iTGB side engine.
//on defaultPrefs.cs $pref::iPhone::ForcePalletedBMPsTo16Bit = true; $pref::iPhone::ForcePalletedPNGsTo16Bit = true;
and...
//on commonConfig.xml <TorqueGameConfiguration> <Company>xxxxxxx</Company> <GameName>xxxxxxxx</GameName> <Resolution>480 320 16</Resolution> <FullScreen>false</FullScreen> <CommonVer>114</CommonVer> <ConsoleKey>tilde</ConsoleKey> <ScreenShotKey>p</ScreenShotKey> <FullscreenKey>alt enter</FullscreenKey> <UsesNetwork>1</UsesNetwork> <UsesAudio>1</UsesAudio> <DefaultScene>~/data/levels/initialScreen.t2d</DefaultScene> <StatusBarType>BlackTranslucent</StatusBarType> <StatusBarHidden>1</StatusBarHidden> <ScreenOrientation>Landscape</ScreenOrientation> <ScreenUpsideDown>0</ScreenUpsideDown> <ScreenAutoRotate>0</ScreenAutoRotate> <Force16Bit>1</Force16Bit> <MultiTouch>1</MultiTouch> <Platform></Platform> <BuildOption></BuildOption> <XcodeOption></XcodeOption> </TorqueGameConfiguration>
#2
04/21/2010 (8:32 am)
force16bit parameter work with iTGB 1.2?
#3
I am not sure if it does work, I started with iTGB from the begining but did not do much with the first two versions.
Maybe someone who uses/used 1.2 could answer this.
04/21/2010 (8:56 am)
EdoardoI am not sure if it does work, I started with iTGB from the begining but did not do much with the first two versions.
Maybe someone who uses/used 1.2 could answer this.
#4
04/21/2010 (9:33 am)
it will work only if the other settigns are fine too including the one in the project settings of xcode
Torque 3D Owner Dean Parker
Serendip Games
The last line in the code needs to be set to...
force16bit = "1";
new t2dImageMapDatablock(engineImageMap) { imageName = "~/data/images/engine.png"; imageMode = "CELL"; frameCount = "-1"; filterMode = "SMOOTH"; filterPad = "0"; preferPerf = "1"; cellRowOrder = "1"; cellOffsetX = "0"; cellOffsetY = "0"; cellStrideX = "0"; cellStrideY = "0"; cellCountX = "16"; cellCountY = "2"; cellWidth = "32"; cellHeight = "128"; preload = "0"; allowUnload = "1"; compressPVR = "0"; optimised = "0"; force16bit = "1"; };