problem of textureshiftyfunction
3 posters
Page 1 of 1
problem of textureshiftyfunction
Sir Chris
Help as I do have a problem of the textureshiftyfunction in the objectviewer of 12 June 2018 yesterday.
my .animated file that has this
textureshiftyfunction=value+1
does not work with an error "ObjectViewer.exe has stopped working Close the program" ?
In my earlier version of the objectviewer this does work with a good result.
In your openbve.exe latest of 12 June 2018 my .animated file with the textureshiftyfunction does remain working.
Good day and night for you
Hijau
Help as I do have a problem of the textureshiftyfunction in the objectviewer of 12 June 2018 yesterday.
my .animated file that has this
textureshiftyfunction=value+1
does not work with an error "ObjectViewer.exe has stopped working Close the program" ?
In my earlier version of the objectviewer this does work with a good result.
In your openbve.exe latest of 12 June 2018 my .animated file with the textureshiftyfunction does remain working.
Good day and night for you
Hijau
HijauKuda- Posts : 102
Join date : 2012-01-18
Re: problem of textureshiftyfunction
Could it be a Syntax error?? Try TextureShiftYFunction = value+1
From the documentation:
These define the directions for the TextureShiftXFunction and TextureShiftYFunction, respectively. The default directions are:
TextureShiftXDirection = 1, 0
TextureShiftYDirection = 0, 1
This means that TextureShiftXFunction will shift the texture right by default, and TextureShiftYFunction down, which is also why TextureShiftXFunction and so on bear their names. If you define other directions, then simply think of the two functions and associated directions as two independent ways to shift textures on the objects.
These define the functions to shift the texture in the respective direction. The texture is shifted by the return value of Formula in texture coordinates. The integer part of the result is ignored, and a fractional part of 0.5 represents moving the texture half way. The SetTextureCoordinate commands in the object file define the coordinates, which are then added the outcome of these formulas.
From the documentation:
These define the directions for the TextureShiftXFunction and TextureShiftYFunction, respectively. The default directions are:
TextureShiftXDirection = 1, 0
TextureShiftYDirection = 0, 1
This means that TextureShiftXFunction will shift the texture right by default, and TextureShiftYFunction down, which is also why TextureShiftXFunction and so on bear their names. If you define other directions, then simply think of the two functions and associated directions as two independent ways to shift textures on the objects.
TextureShiftXFunction = Formula TextureShiftYFunction = Formula |
Re: problem of textureshiftyfunction
Ooops, nope it's a bug (Should never crash in any case)
Having said that though, I'm not sure your function will do what you intend it to.
Your TextureShift function will do the following:
value : Take the value from the previous itineration
+ : Perform a simple addition
1 : Fixed value of 1 (integer)
In practice, this will add 1 to the value every frame, so ~60 a second, until it overflows. (This would probably take several weeks of continuous running depending on the framerate)
Having said that though, I'm not sure your function will do what you intend it to.
Your TextureShift function will do the following:
value : Take the value from the previous itineration
+ : Perform a simple addition
1 : Fixed value of 1 (integer)
In practice, this will add 1 to the value every frame, so ~60 a second, until it overflows. (This would probably take several weeks of continuous running depending on the framerate)
Re: problem of textureshiftyfunction
Fixed stable version uploaded.
Nightly builds should now also be correct again.
Nightly builds should now also be correct again.
Re: problem of textureshiftyfunction
Sir Chris
This is good
I will try your fixed version to morrow
I do use this textureshiftyfunction to rise up the lokomotif vapor smoke
Good day and night for you
Hijau
This is good
I will try your fixed version to morrow
I do use this textureshiftyfunction to rise up the lokomotif vapor smoke
Good day and night for you
Hijau
HijauKuda- Posts : 102
Join date : 2012-01-18
Re: problem of textureshiftyfunction
Sir Chris
Not good for your new objectviewer version of 2018 June 13
Textureshiftyfunction of my problem before is working now without the error closing program
though now other pieces of object are in a wrong position place in the vertical y
Moved mixed up and down. Openbve.exe main is good again in this version with the object display good and objectviewer display not good
Good day and night for you
Hijau
Not good for your new objectviewer version of 2018 June 13
Textureshiftyfunction of my problem before is working now without the error closing program
though now other pieces of object are in a wrong position place in the vertical y
Moved mixed up and down. Openbve.exe main is good again in this version with the object display good and objectviewer display not good
Good day and night for you
Hijau
HijauKuda- Posts : 102
Join date : 2012-01-18
Re: problem of textureshiftyfunction
Ouch
Nailed this one (hopefully!), and a second that's just been reported to me via email.
1.5.3.6 is now up.......
Nailed this one (hopefully!), and a second that's just been reported to me via email.
1.5.3.6 is now up.......
Re: problem of textureshiftyfunction
Sir Chris
This is good!
I did test your version of today 2018 June 14
Objectviewer does display good and does not error or mix up vertical y objects
And openbve.exe does display good
I am happy!
Good day and night for you
Hijau
This is good!
I did test your version of today 2018 June 14
Objectviewer does display good and does not error or mix up vertical y objects
And openbve.exe does display good
I am happy!
Good day and night for you
Hijau
HijauKuda- Posts : 102
Join date : 2012-01-18
Similar topics
» Problem With Add-ons
» GPU Problem/Question
» Missing File Function?
» Problem with documentation?
» problem with 7z files
» GPU Problem/Question
» Missing File Function?
» Problem with documentation?
» problem with 7z files
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum