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

Apply textures #9

Open
Sulig opened this issue Nov 11, 2024 · 3 comments
Open

Apply textures #9

Sulig opened this issue Nov 11, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested

Comments

@Sulig
Copy link
Owner

Sulig commented Nov 11, 2024

No description provided.

@Sulig Sulig converted this from a draft issue Nov 11, 2024
@Sulig Sulig self-assigned this Nov 11, 2024
@Sulig Sulig moved this from Todo to In Progress in Cub3D fieldview Nov 11, 2024
@Sulig Sulig added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Nov 20, 2024
@Sulig
Copy link
Owner Author

Sulig commented Nov 20, 2024

Apply textures ~ IN PROGRESS ~

  • Issue p2 -> The texture to apply it is not been asigned correctly.

~ Idea for apply diferent textures:

// Now i have these into drawcast function //
mlx_resize_image(img_rays[r], scale, lineH + lineO);
img_rays[r]->instances[0].x = START_PX + r * scale;
img_rays[r]->instances[0].y = (SCR_HEIGHT / 2) - (lineH + lineO) / 2;

~ To change the texture, maybe i will need:

  • [] img_rays_n
  • [] img_rays_s
  • [] img_rays_e
  • [] img_rays_w

And make them ->instances[0].*enabled // or disabled


@Sulig
Copy link
Owner Author

Sulig commented Dec 3, 2024

I found a solution. FINALLY!!!
Now i'm testing diferent textures and window scale and see what happens!

~ See the textured version actually working in "my-work" branch

@Sulig Sulig removed bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Dec 18, 2024
@Sulig Sulig closed this as completed Dec 18, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Cub3D fieldview Dec 18, 2024
@Sulig Sulig moved this from Done to In Progress in Cub3D fieldview Jan 24, 2025
@Sulig
Copy link
Owner Author

Sulig commented Jan 24, 2025

Cuando te acercas a la pared, la textura se deforma, siendo mas ancha de lo que realmente es.

La textura debería escalarse en vez de deformarse

@Sulig Sulig reopened this Jan 24, 2025
@Sulig Sulig added enhancement New feature or request help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested
Projects
Status: In Progress
Development

No branches or pull requests

1 participant