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

SetTextureCoordinates between openBVE and BVE2/4

3 posters

Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty SetTextureCoordinates between openBVE and BVE2/4

Post by LXQt Wed Feb 20, 2019 8:26 pm

I am making a object for BVE,it appeared that the object appeared to be fine in openBVE but in BVE 2/4 its not even though openbve and BVE Trainsim 2/4 are cross compatible
BVE Trainsim:
SetTextureCoordinates between openBVE and BVE2/4  ZYjAMeJ
OpenBVE:
SetTextureCoordinates between openBVE and BVE2/4  Rp1E9Is
I bet that was just my coding skills being not good enough,so can anyone help me?
LXQt
LXQt

Posts : 114
Join date : 2019-02-18
Location : Hong Kong

https://lx862.com

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by ap1991 Wed Feb 20, 2019 10:55 pm

I can't give a technical answer but from personal experience, but, I have always found openBVE to be a lot more forgiving of coding errors.
ap1991
ap1991

Posts : 298
Join date : 2014-07-25
Age : 33
Location : Warwickshire

https://adamp19914.wixsite.com/bvecentral

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by leezer3 Thu Feb 21, 2019 7:45 pm

I'd need to see the object to answer.

Handling of errors varies between openBVE, BVE2 and BVE4.
In general terms, BVE2 / BVE4 will silently ignore a lot of stuff it considerers to be wrong, whereas openBVE will notify and depending on the exact error may attempt to correct it internally.

Two possible alternatives spring to mind, but they're only guesses-
* Misplaced comma where there should be a decimal point
* Some obscure face windings (The ordering of the numbers in the Face statement) sometimes produce different results between openBVE and BVE2 / 4. IIRC most of these are related to adding vertices to cubes / cylinders.

leezer3

Posts : 1978
Join date : 2011-08-24

http://www.bvecornwall.co.uk

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by LXQt Sat Feb 23, 2019 9:16 pm

leezer3 wrote:I'd need to see the object to answer.

Handling of errors varies between openBVE, BVE2 and BVE4.
In general terms, BVE2 / BVE4 will silently ignore a lot of stuff it considerers to be wrong, whereas openBVE will notify and depending on the exact error may attempt to correct it internally.

Two possible alternatives spring to mind, but they're only guesses-
* Misplaced comma where there should be a decimal point
* Some obscure face windings (The ordering of the numbers in the Face statement) sometimes produce different results between openBVE and BVE2 / 4. IIRC most of these are related to adding vertices to cubes / cylinders.
I can't send attachment here since I am a new member,but i can tell you that there's no any Misplaced comma and even if i try to change the order of the number with the vertices,I don't think it helps
LXQt
LXQt

Posts : 114
Join date : 2019-02-18
Location : Hong Kong

https://lx862.com

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by leezer3 Mon Feb 25, 2019 7:34 pm

You should be able to upload somewhere like Mediafire and link to it here.

Alternatively, just paste in the text for the broken face here- It's unlikely to be the texture.

leezer3

Posts : 1978
Join date : 2011-08-24

http://www.bvecornwall.co.uk

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by LXQt Wed Feb 27, 2019 8:38 pm

leezer3 wrote:You should be able to upload somewhere like Mediafire and link to it here.

Alternatively, just paste in the text for the broken face here- It's unlikely to be the texture.
here is one of them:

CreateMeshBuilder
AddVertex,8.5 ,5    ,10,
AddVertex,8.5 ,1  ,10,
AddVertex,8.5  ,1  ,-5,
AddVertex,8.5 ,5    ,-5,
AddFace2,0,1,2,3,
GenerateNormals,
LoadTexture, hom_3.bmp,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,
LXQt
LXQt

Posts : 114
Join date : 2019-02-18
Location : Hong Kong

https://lx862.com

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by leezer3 Thu Feb 28, 2019 1:05 am

I can't reproduce anything with that face.

This strongly suggests it's an interaction between one or more faces in the object, probably caused by a misplaced comma or a spelling mistake in a command.

Without the whole thing, the best I can suggest is to try the offending object in the BVE4 structure viewer, adding one face at a time until it breaks.

leezer3

Posts : 1978
Join date : 2011-08-24

http://www.bvecornwall.co.uk

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by LXQt Fri Mar 08, 2019 1:20 pm

leezer3 wrote:I can't reproduce anything with that face.

This strongly suggests it's an interaction between one or more faces in the object, probably caused by a misplaced comma or a spelling mistake in a command.

Without the whole thing, the best I can suggest is to try the offending object in the BVE4 structure viewer, adding one face at a time until it breaks.
Thanks for the reply,I think its VMware's fault. I got no problem running on an actual XP machine,sorry for wasting your time a little bit but alright it's solved!
LXQt
LXQt

Posts : 114
Join date : 2019-02-18
Location : Hong Kong

https://lx862.com

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

Post by leezer3 Fri Mar 08, 2019 8:00 pm

Yeah, that might be somewhat of a problem.
It'll probably in that case be the graphics drivers as opposed to VMWare itself, but same end result really.

BVE2 / BVE4 rely on the DirectDraw API.
This was deprecated in 2000 (DirectX 7.0), and depending on the drivers, it ranges from anywhere from totally broken to reasonably OK.
On modern kit, nVidia is totally broken, ATI tends to work with some graphical glitches depending on the driver version, and Intel HD graohics seem OK.

leezer3

Posts : 1978
Join date : 2011-08-24

http://www.bvecornwall.co.uk

Back to top Go down

SetTextureCoordinates between openBVE and BVE2/4  Empty Re: SetTextureCoordinates between openBVE and BVE2/4

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