Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D Shape with Tiled Background Error On Right Face only #5838

Closed
arcadesindo opened this issue Jun 30, 2022 · 6 comments
Closed

3D Shape with Tiled Background Error On Right Face only #5838

arcadesindo opened this issue Jun 30, 2022 · 6 comments
Assignees

Comments

@arcadesindo
Copy link

Problem description

When we try to use the tiled background as the face of the 3D Shape, it was all fine, until it just happened on the Right face. Not quite sure if it was the problem of Tiled Background or 3D Shape, but I think its from the Tiled BG?

Attach a .c3p

3dPlat_bugRightFace3Dshape.zip

Steps to reproduce

  1. Attach Top, Left, Right, Bottom, Front, Back face
  2. Try to resize the 3D Shape

Observed result

image
image

Expected result

The tiled of the Right Face should be symmetric as the Left Face have

More details

First affected release: We've been trying this in r293.3 and also r300, but still has the same issue.

@AshleyScirra AshleyScirra self-assigned this Jun 30, 2022
@AshleyScirra
Copy link
Member

The attached project uses a third-party plugin (3D object). Please provide a project not using any third party addons as per the bug report guidelines.

@arcadesindo
Copy link
Author

@AshleyScirra
Copy link
Member

This is by design: the texture mapping of 3D shape is actually consistent, but in a way that is not ideally suited to a side view platformer. If you hide the front face and set all the side faces to the right face object and then resize the shape, you can see texture mapping works consistently in an anti-clockwise order around the sides.

You can use the Tiled Background properties to adjust the texture mapping though - the object is 180px tall and showing a 128px tiled image, so if you set the Tiled_RightFace property "Image offset X" to 52 it perfectly aligns to the top like you want.

@arcadesindo
Copy link
Author

thanks ashley, but why the right face didn't going the same like the left one when resizing?
3d shape

@AshleyScirra
Copy link
Member

As I said, it's because texture mapping works in an anticlockwise order around the faces.

@arcadesindo
Copy link
Author

so there are no ways other than changing the offset manually?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants