Issue with transition.to

All transition.to is leaving a image trail, please see pic in the link bellow, from the this code:

local box = display.newRect( 0, 0, 150, 50 )
box.strokeWidth = 3
box:setFillColor( 0.5 )
box:setStrokeColor( 1, 0, 0 )
box.x = centerX
box.y = centerY
 transition.to(box, {time=1000, alpha = 1, x = 0, y = 0})

https://www.dropbox.com/s/yirh3633qivhnfr/Capture.PNG?dl=0

Why is that happening, did anything change on transition.to?

Don’t have any issues but looking through your code, i don’t recognize your default coordinates, centerX and centerY.

I think you’re making a coding error (not in the code you’re showing us).  Please make a micro project that we can download and run that demonstrates this issue.
 
It should be no more than:

  1. Clicking ‘more reply options below’.
  2. Then:
    attaching_files.jpg

Also, what exact version of Corona are you running. You always need to tell us this if you are asking a question like this. i.e. What changed… since when, in what version?

Listen. If you’re still working on this, my guess is that you’ve got a loop somewhere running that code over and over at some short interval.

Thus, you’re creating multiple objects that are each being moved by their own transition.* call.

Thanks for the reply, I have stated a new project. And I found something very strange, if I put a background image the issue is gone, if I remove the background image the issue happens again. not sure if this is a bug or a incompatibility with my computer.

In the code I have commented the background image part:

–local back = display.newImageRect( “protoBackX.png”, 720, 1386 )
–back.x = centerX
–back.y = centerY

if I uncomment  it the issue happens.

Thanks.

What version of Corona are you using?

I just ran this in 2018.3297 and get no trail.

Also, just for giggles:

  • Are you running on  Windows or OS X
  • What is the version number of the OS you are running.
  • What kind of machine are you running on.
  • Are you using integrated graphics or a discrete card?
  • Give us specific details on your graphics card/chip make and model.
  • Have you updated your graphics drivers?
  • Are you seeing this on a mobile device or just your desktop?

I’m about to test 2018.3319 and I’ll post back.

Corona 2018.3319 (notes) 2018.06.18 Corona-ApiDocs-2018.3319.zipCorona-2018.3319.msiCorona-2018.3319.dmg

https://developer.coronalabs.com/downloads/daily-builds/

Same result on 2018.3319.  Works like a charm.

To answer my questions to you, I am running:

  • 2018.3319
  • Windows 10 1803 (Build 17134.112)
  • Discrete Video Card GTX 970 Driver Number: 390.65

https://www.youtube.com/watch?v=fEbRbAVH2T0&feature=youtu.be

Here is my computer configuration

  • Corona ver. 2018.3319
  • Windows 10 Version 1803 (Build 17134.112)
  • Discrete Video Card GTX 960A Driver Number: 398.11

I did not try to run in a device yet, but I did create a win application, and it has the same issue.

No need to run on device.  I just wanted to check.

I’m (taking a risk and) updating to driver 398.11 to get us both into as similar a setup as possible.

Post back in a bit.

I am now running driver 398.11 and still just fine.

  • What version of OpenGL are you running?

Using GLView(http://realtech-vr.com/admin/glview) I see that I am running: OpenGL 4.6; We need 2.1 or higher.

  • Have you modified any of your Graphics card settings or are you running plain Jane default settings?

  • When you installed your Graphics drivers did you use the ‘clean install’ option or just an update while retaining old settings?

Beyond that I am at a loss.  You should not be seeing this issue.

Thanks for all the help I found out what the issue is, the OpenGL driver was using the integrated graphics card Intel HD graphics 530, instead of the GTX 960A. So I changed the settings under the Nvidea control panel -> manage 3d settings -> Global Settings -> preferred graphics processor -> selected the Nvidea and all works fine now.

Thanks for the help.

Sweet.  Yeah, integrated graphics seem to have a number of issues.  Glad you got this worked out.

Don’t have any issues but looking through your code, i don’t recognize your default coordinates, centerX and centerY.

I think you’re making a coding error (not in the code you’re showing us).  Please make a micro project that we can download and run that demonstrates this issue.
 
It should be no more than:

  1. Clicking ‘more reply options below’.
  2. Then:
    attaching_files.jpg

Also, what exact version of Corona are you running. You always need to tell us this if you are asking a question like this. i.e. What changed… since when, in what version?

Listen. If you’re still working on this, my guess is that you’ve got a loop somewhere running that code over and over at some short interval.

Thus, you’re creating multiple objects that are each being moved by their own transition.* call.

Thanks for the reply, I have stated a new project. And I found something very strange, if I put a background image the issue is gone, if I remove the background image the issue happens again. not sure if this is a bug or a incompatibility with my computer.

In the code I have commented the background image part:

–local back = display.newImageRect( “protoBackX.png”, 720, 1386 )
–back.x = centerX
–back.y = centerY

if I uncomment  it the issue happens.

Thanks.

What version of Corona are you using?

I just ran this in 2018.3297 and get no trail.

Also, just for giggles:

  • Are you running on  Windows or OS X
  • What is the version number of the OS you are running.
  • What kind of machine are you running on.
  • Are you using integrated graphics or a discrete card?
  • Give us specific details on your graphics card/chip make and model.
  • Have you updated your graphics drivers?
  • Are you seeing this on a mobile device or just your desktop?

I’m about to test 2018.3319 and I’ll post back.

Corona 2018.3319 (notes) 2018.06.18 Corona-ApiDocs-2018.3319.zipCorona-2018.3319.msiCorona-2018.3319.dmg

https://developer.coronalabs.com/downloads/daily-builds/

Same result on 2018.3319.  Works like a charm.

To answer my questions to you, I am running:

  • 2018.3319
  • Windows 10 1803 (Build 17134.112)
  • Discrete Video Card GTX 970 Driver Number: 390.65

https://www.youtube.com/watch?v=fEbRbAVH2T0&feature=youtu.be

Here is my computer configuration

  • Corona ver. 2018.3319
  • Windows 10 Version 1803 (Build 17134.112)
  • Discrete Video Card GTX 960A Driver Number: 398.11

I did not try to run in a device yet, but I did create a win application, and it has the same issue.

No need to run on device.  I just wanted to check.

I’m (taking a risk and) updating to driver 398.11 to get us both into as similar a setup as possible.

Post back in a bit.