Jump to content



Photo
- - - - -

Adjustable rotation of ball image texture to account for table inclination

ball texture ball texture rotation

  • Please log in to reply
5 replies to this topic

#1 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 18 March 2023 - 06:34 AM

@Toxie, I was just looking at the Big Bang Bar VPW release and noticed that the ball texture appears at an unrealistic/odd reflection angle when in cabinet view, desktop looks a little better.

I figured that the reason is that the ball texture does not seem to account for table inclination and the texture always faces in the same direction towards the viewer/camera. You can test this easily by using F6 in the editor, then increasing/decreasing the table inclination. Notice that the ball texture will follow you. This is an issue as when you are looking down on a table from directly above you would expect to see more of the ceiling in the faked reflection of the texture, but instead you still see the horizon line on the top of the ball (ie: windows being incorrectly reflected on top of ball rather than more towards the equator).

Would it be possible to implement a feature where either the ball texture is automatically adjusted to suit the table inclination, or give the user the ability to rotate the ball texture around an axis that is a line though the equator from the left side to the right, until it suits their viewpoint better? (hopefully I got that axis suggestion correct).

Edit: Have now uploaded a video to describe the issue.


Edited by Gravy, 18 March 2023 - 09:43 PM.

Pinball Addict


#2 charley

charley

    Enthusiast

  • Banned
  • PipPipPip
  • 260 posts

  • Flag: United States of America

  • Favorite Pinball: all

Posted 18 March 2023 - 08:07 AM

@Toxie, I was just looking at the Big Bang Bar VPW release and noticed that the ball texture appears at an unrealistic/odd reflection angle when in cabinet view, desktop looks a little better.

I figured that the reason is that the ball texture does not seem to account for table inclination and the texture always faces in the same direction towards the viewer/camera. You can test this easily by using F6 in the editor, then increasing/decreasing the table inclination. Notice that the ball texture will follow you. This is an issue as when you are looking down on a table from directly above you would expect to see more of the ceiling in the faked reflection of the texture, but instead you still see the horizon line on the top of the ball (ie: windows being incorrectly reflected on top of ball rather than more towards the equator).

Would it be possible to implement a feature where either the ball texture is automatically adjusted to suit the table inclination, or give the user the ability to rotate the ball texture around an axis that is a line though the equator from the left side to the right, until it suits their viewpoint better? (hopefully I got that axis suggestion correct).

See the image at https://cdn.vpuniver...4f2b3f13f48.png for an example (check out the captive balls).

im getting an error access denied. 



#3 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 18 March 2023 - 11:43 AM

 

@Toxie, I was just looking at the Big Bang Bar VPW release and noticed that the ball texture appears at an unrealistic/odd reflection angle when in cabinet view, desktop looks a little better.

I figured that the reason is that the ball texture does not seem to account for table inclination and the texture always faces in the same direction towards the viewer/camera. You can test this easily by using F6 in the editor, then increasing/decreasing the table inclination. Notice that the ball texture will follow you. This is an issue as when you are looking down on a table from directly above you would expect to see more of the ceiling in the faked reflection of the texture, but instead you still see the horizon line on the top of the ball (ie: windows being incorrectly reflected on top of ball rather than more towards the equator).

Would it be possible to implement a feature where either the ball texture is automatically adjusted to suit the table inclination, or give the user the ability to rotate the ball texture around an axis that is a line though the equator from the left side to the right, until it suits their viewpoint better? (hopefully I got that axis suggestion correct).

See the image at https://cdn.vpuniver...4f2b3f13f48.png for an example (check out the captive balls).

im getting an error access denied. 

 

Probably can't link directly to an image, have added a video instead.


Edited by Gravy, 18 March 2023 - 09:43 PM.

Pinball Addict


#4 Gravy

Gravy

    Pinball Fan

  • VIP
  • 1,147 posts

  • Flag: Australia

  • Favorite Pinball: Simpsons pinball party



Posted 20 March 2023 - 10:36 PM

Adding an image to better show proposed change.

Attached File  balltexturesuggestion.jpg   31.91KB   1 downloads

 


Pinball Addict


#5 husnain11221

husnain11221

    Neophyte

  • Members
  • Pip
  • 1 posts

  • Flag: India

  • Favorite Pinball: Addams Family

Posted 19 September 2024 - 06:55 AM

I figured that the reason is that the ball texture does not seem to account for table inclination and the texture always faces in the same direction towards the viewer/camera. You can test this easily by using F6 in the editor, then increasing/decreasing the table inclination. Notice that the ball texture will follow you. This is an issue as when you are looking down on a table from directly above you would expect to see more of the ceiling in the faked reflection of the texture, but instead you still see the horizon line on the top of the ball (ie: windows being incorrectly reflected on top of ball rather than more towards the equator). bb racing mod apk
 

 

It sounds like you've identified a key issue with the ball texture not adjusting based on table inclination, which really breaks the immersion. I agree that the reflection should shift depending on the camera angle and the ball’s position in relation to the table, especially when viewed from above. If the texture isn't updating to reflect the correct horizon line, it creates that unrealistic effect where windows or other objects are misplaced.

This seems like something that could be fixed by modifying how the ball shader handles reflections—potentially adding a dynamic reflection layer that adapts to the inclination. Have you tried experimenting with other reflection mapping techniques or tweaking the UV coordinates to see if it resolves the issue?



#6 jpsalas

jpsalas

    Grand Schtroumpf

  • VIP
  • 7,271 posts
  • Location:I'm Spanish, but I live in Oslo (Norway)

  • Flag: Norway

  • Favorite Pinball: I like both new and old, but I guess I prefer modern tables with some rules and goals to achieve.



Posted 19 September 2024 - 03:56 PM

Check the new equirectangular ball from VPX8, for example in my Metallica table, and see how it works.


If you want to check my latest uploads then click on the image below:

 

vp.jpg

 

Next table? A tribute table to Stern's Foo Fighters