Author Topic: creating an object from FloatBuffer  (Read 5029 times)

Offline raft

  • quad
  • ******
  • Posts: 1986
    • View Profile
    • http://www.aptalkarga.com
Re: creating an object from FloatBuffer
« Reply #15 on: December 28, 2009, 11:43:02 am »
yeah, they seem valid.
min: 0.005225
max: 0.996512

Offline raft

  • quad
  • ******
  • Posts: 1986
    • View Profile
    • http://www.aptalkarga.com
Re: creating an object from FloatBuffer
« Reply #16 on: December 28, 2009, 12:23:40 pm »
i've discovered something strange: i flipped the texture vertically with an image editor. i expected the result will be same as (u, 1-v) but it isnt. it's also different from (1-u, v)  ???

Offline raft

  • quad
  • ******
  • Posts: 1986
    • View Profile
    • http://www.aptalkarga.com
Re: creating an object from FloatBuffer
« Reply #17 on: December 28, 2009, 02:46:35 pm »
solved ;D i posted to Ardor3d forums and one said he can generate my screenshot using upper left part of texture (0.5*u, 0.5*v)
and that reminded me calling recreateTextureCoords(). i really forgot these things  :o

here is how it looks now, in SW renderer, without any lights:


r a f t

Offline raft

  • quad
  • ******
  • Posts: 1986
    • View Profile
    • http://www.aptalkarga.com
Re: creating an object from FloatBuffer
« Reply #18 on: February 04, 2010, 03:39:27 pm »
it may help accepting null uv array in new constructor.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11985
    • View Profile
    • http://www.jpct.net
Re: creating an object from FloatBuffer
« Reply #19 on: February 04, 2010, 05:21:27 pm »