BASIC

Author Topic: Bug with X_DRAWANIM and X_SPOT_LT  (Read 2166 times)

Offline Snoopy

  • Dr. Type
  • ****
  • Posts: 251
    • View Profile
Bug with X_DRAWANIM and X_SPOT_LT
« on: 2012-Jun-12 »
There is a problem with the interpolation in X_DRAWANIM and X_SPOT_LT in shadow mode.
The interpolation is not correct. It only rendering the keyframes in the stencil buffer.  :(

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1631
  • Particle Hawk
    • View Profile
Re: Bug with X_DRAWANIM and X_SPOT_LT
« Reply #1 on: 2012-Jun-14 »
Im not the one to fix this..but it raises my eye because im trying to debug an issue with lighting, z depth, and a 3d particle engine.

It is possible that the issue isnt X_animation at all, but rather the innate issue that come with opengls lighting and depth issues.
Perhaps you can give much more details and even a sample code showing the problem, and a screenshot so gernot can compare your screen and his.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Snoopy

  • Dr. Type
  • ****
  • Posts: 251
    • View Profile
Re: Bug with X_DRAWANIM and X_SPOT_LT
« Reply #2 on: 2012-Jun-19 »
Thank you for your interest in my problem (you're the one)

Here the program and source code  ;)

[attachment deleted by admin]

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: Bug with X_DRAWANIM and X_SPOT_LT
« Reply #3 on: 2012-Jun-19 »
I can confirm this bug, hope Gernot will have a look at this... and the other points on my long list of bug in 3D engine.

Btw you should have a 2nd look on the parameters for X_SPOT_LT, especially dirx, diry, dirz, these build vector where the light shins along, it not a point.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline Snoopy

  • Dr. Type
  • ****
  • Posts: 251
    • View Profile
Re: Bug with X_DRAWANIM and X_SPOT_LT
« Reply #4 on: 2012-Jun-19 »
Thank for your responses... Effectively hope Gernot(first name of "kitty hello" i suppose ;)) will have a look at this.

Kanonet, I think the parameters dirx, diry and dirz are ignored by the 3d engine in glbasic with a point light source. (cutoff=360)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Bug with X_DRAWANIM and X_SPOT_LT
« Reply #5 on: 2012-Jun-20 »
It's on the list. I hope to find time for all this soon.