Forum > C++ > Ipad Retina parallax images

Ipad Retina parallax images

By proudchild Posted 2012-07-11 11:27 Comments 2
proudchild
  • Posts: 19

My design team just screwed me up, in our game, theres a giant non repetitive parallax brackground of a village; which in retina stack up to 4096 in width… how am i suppose to handle this in cocos2d parallax node; if i just load the images it doesnt render right; if i stack two images in a layer, and then add them to parallax node, not only it doesnt render right but also distortch the images on movement…

any insight is helpfull

zhangxm
  • Posts: 2082
  • Location: Xiamen, China

#1 RE: 2012-07-12 09:41

I think 4096 is too large to render.
You can use the codes to get max texture size

CCConfiguration::sharedConfiguration()->getMaxTextureSize()

The usage of parallax background please refer to ParallaxTest.

RogerLleida
  • Posts: 21

#2 RE: 2012-10-26 09:28

hi!
I had the same problem, I had to put big images in the parallax and I converted this images to compressed pvr with a max height and width of 2048px.
But now, I see some performance problems if I put some big images (3 or 4 displayed at the same time) with different ratios.

What is the best way to make a parallax with big images?

Thanks!

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps