BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

problem of textureshiftyfunction

3 posters

Go down

problem of textureshiftyfunction  Empty problem of textureshiftyfunction

Post by HijauKuda Wed Jun 13, 2018 10:46 am

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

HijauKuda

Posts : 102
Join date : 2012-01-18

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by graymac Wed Jun 13, 2018 2:43 pm

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.

TextureShiftXFunction = Formula
TextureShiftYFunction = Formula
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.
graymac
graymac

Posts : 2134
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by leezer3 Wed Jun 13, 2018 3:50 pm

Ooops, nope it's a bug (Should never crash in any case) Sad

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)

leezer3

Posts : 1959
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by leezer3 Wed Jun 13, 2018 4:01 pm

Fixed stable version uploaded.

Nightly builds should now also be correct again.

leezer3

Posts : 1959
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by HijauKuda Thu Jun 14, 2018 12:09 am

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

HijauKuda

Posts : 102
Join date : 2012-01-18

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by HijauKuda Thu Jun 14, 2018 11:58 am

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

HijauKuda

Posts : 102
Join date : 2012-01-18

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by leezer3 Thu Jun 14, 2018 4:21 pm

Ouch Sad

Nailed this one (hopefully!), and a second that's just been reported to me via email.

1.5.3.6 is now up.......

leezer3

Posts : 1959
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by HijauKuda Thu Jun 14, 2018 6:25 pm

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

HijauKuda

Posts : 102
Join date : 2012-01-18

Back to top Go down

problem of textureshiftyfunction  Empty Re: problem of textureshiftyfunction

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum