Jump to content

granskog

Members
  • Posts

    5
  • Joined

  • Last visited

About granskog

  • Birthday 03/11/1993

Profile Information

  • Gender
    Male
  • Location
    Sweden
  • Interests
    Webbdevelopment

granskog's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Wow thanks RaanaW, I feel like a fool now not because of you. But because of my self
  2. But look at this: http://playground.babylonjs.com/#R9NXF#3 I need it to show four pictures of the seahorse in each row, how can I make that? And not a half picture on each side of the ground... So if number is 4 i need four of the picture in each row, if number is 5 I need five and so on up to 11.
  3. Sorry if I was unclear I need a squared ground with squares on it like a chessboard how can i do that but only with one color on the square?
  4. Hi, how can I drag the images so they fits to size of ground, One image is one square. My code for this is: var ground = BABYLON.Mesh.CreateGround("ground", (number*BLOCK_SIZE), (number*BLOCK_SIZE), 1, scene);ground.position.y = BLOCK_SIZE / 2;if(number % 2 === 0){ ground.position.x += BLOCK_SIZE / 2; ground.position.z += BLOCK_SIZE / 2;}var groundMaterial = new BABYLON.StandardMaterial("ground", scene);groundMaterial.emissiveTexture = new BABYLON.Texture("textures/ground.png", scene);groundMaterial.emissiveTexture.uScale = number;groundMaterial.emissiveTexture.vScale = number;ground.material = groundMaterial;Please help me/ Granskog
×
×
  • Create New...