Author Topic: Rotate Texture  (Read 3268 times)

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Rotate Texture
« on: March 23, 2007, 12:28:04 pm »
Hi

I would like to create an object with a texture mappling as showen in the image below. Projecting an image from the top onto a plain is no problem but I would like to project it from the side. Can someone please tell me what I am missing?

cheers


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Rotate Texture
« Reply #1 on: March 23, 2007, 04:12:52 pm »
I think you would have to create additional textures that represent the side view. I can't think of a way to derive that view from the actual terrain texture ATM.

Offline Melssj5

  • double
  • *****
  • Posts: 715
    • View Profile
Re: Rotate Texture
« Reply #2 on: March 23, 2007, 04:44:25 pm »
Well, matbe you need to adjust that on your model before exporting it as 3DS. Which 3d modeler are you using?
Nada por ahora

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Re: Rotate Texture
« Reply #3 on: March 23, 2007, 04:55:25 pm »
I am creating the mesh with code. My first attempt was using a plain and just assigning a texture but without finding a way to rotate the texture I have created the mesh myself using u v texture mapping. It is sort of working but I seem to have some rounding errors or some other mistake.

The v coordinate should be the y value of the vertex.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Rotate Texture
« Reply #4 on: March 23, 2007, 05:04:26 pm »
How is this supposed to look? The lines should all be in parallel, i asume?

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Re: Rotate Texture
« Reply #5 on: March 23, 2007, 05:33:44 pm »
Sorry for the lack of explanation. The mistake was that I was giving the bottom of the block a v of 0 even though it had a y<0, hence the error.

Here is the final result which I am very pleased with. I think I am going to be using JPCT a lot more in future.


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Rotate Texture
« Reply #6 on: March 23, 2007, 07:42:21 pm »
Looks nice! What exactly is its purpose? Some kind of scientific visualization?

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Re: Rotate Texture
« Reply #7 on: March 28, 2007, 03:29:15 pm »
No quite :) It's a fruit bowl routered out of a piece of wood.

Soon you will be able to choose your favourate part of the earth and have it turned into a bowl like the one above.

It will be available on http://www.fluidforms.at in the next month.