Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => Topic started by: lupaz on 2022-01-26, 17:13:47

Title: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: lupaz on 2022-01-26, 17:13:47
If you could, please add a checkbox in the CoronaBitmap to use the aspect ratio of the incoming bitmaps.
This can be useful when using Triplanar mapping, since triplanar doesn't allow to use a UVW map modifier.

Thank you.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: hurrycat on 2022-01-26, 17:52:15
+1
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: claudyo on 2023-05-05, 10:32:49
Ok, so this feature which is called "Mapping Source" exists in Vray since Vray Next came out, it bugs me why it hasn't been implemented in corona yet. It's such a time saving and I'm sure it will be widely appreciated by everyone. Ondra please add it :D.
Thanks

Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: romullus on 2023-05-05, 11:07:50
First of all, please don't try to hijack old topic with unrelated requests, you should create new topic for it instead. Second, Ondra is on parental leave, so your request will have to wait for at least a year before even be considered :D
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: maru on 2023-05-05, 16:22:43
Hey, don't worry, Ondra has an army of clones and they are already writing code for this feature.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: Basshunter on 2023-05-05, 17:30:29
+1
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: NazarVitkovskyi on 2023-05-10, 14:56:10
Hello @lupaz

could you please provide some use cases when having a checkbox for controlling the aspect ratio of bitmaps can be useful? Or maybe some examples?
Generally, please give us more information about your request :)
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: lupaz on 2023-05-12, 21:16:37
Hello @lupaz

could you please provide some use cases when having a checkbox for controlling the aspect ratio of bitmaps can be useful? Or maybe some examples?
Generally, please give us more information about your request :)

It was a while ago, but here there's a video I just made to show when this could be helpful.
With a texture that is not 1:1, triplanar squishes it to fit in a square. Right? Maybe I'm missing something, so take it with a grain of salt.

Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: romullus on 2023-05-13, 10:29:35
I think you are missing the fact that the only reason why your brick texture looks correct with classic mapping and not with the triplanar, is because your box's mapping is already stretched and when you combine it with also stretched texture, those effects happen to cancel each other in this specific instance. But if you'd apply the same texture to the box that is twice as tall as it is wide, you'd see that now classic mapping is stretching the texture even more than triplanar and you'd need to address this by adjusting either mapping of the box, or tiling of the texture (ideally you want to do both).

I'm not arguing against your request, actually i support it - option to "squarify" a texture with a single mouse click would be nice thing to have, it's just this has nothing to do with triplanar, like you're trying to show in the video.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: lupaz on 2023-05-13, 15:54:13
I think you are missing the fact that the only reason why your brick texture looks correct

Thanks.
It was a quick test. I wasn't showing how the texture without the triplanar looks correct. I was showing how with triplanar it gets squared. For this test you can diregard how the texture looks without triplanar. It doesn't really matter.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: Basshunter on 2023-05-13, 18:03:21
it's just this has nothing to do with triplanar
I think it has, since triplanar node assumes the texture is squared and because of that it appears distorted. An option to set the width and height of the texture would solve the problem.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: lupaz on 2023-05-13, 18:11:44
An option to set the width and height of the texture would solve the problem.
Why not just a simple checkbox "respect aspect ratio"?
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: Basshunter on 2023-05-13, 18:18:20
An option to set the width and height of the texture would solve the problem.
Why not just a simple checkbox "respect aspect ratio"?

I agree. It'd be even better if that option was checked by default
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: romullus on 2023-05-13, 23:17:44
The problem is in the bitmap node, not in triplanar and that's where you should fix it. Original request to acquire texture's aspect ratio in the Corona bitmap node would be correct approach to the issue (yes, that wouldn't help if you want to use 3ds Max bitmap, but look at it as additional motivation to switch to Cbitmap whenever it's possible ;]).

An option to set the width and height of the texture would solve the problem.

That would be worst solution, because you would ALWAYS need to change two parameters instead of one, even if your texture is square. Essentially you are asking to add more mouse clicks to do the same job.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: Basshunter on 2023-05-15, 02:07:30
That would be worst solution, because you would ALWAYS need to change two parameters instead of one, even if your texture is square. Essentially you are asking to add more mouse clicks to do the same job.
I think you're right
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: NazarVitkovskyi on 2023-05-17, 14:31:16
(Internal ID=451658696)
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: lupaz on 2023-09-08, 19:17:02
I'd like to bring this up again. Hopefully it can make it for version 11.
Thanks.
Title: Re: CoronaBitmap: Check box to acquire bitmap's aspect ratio
Post by: lupaz on 2024-04-10, 15:36:54
Any news on this? Thanks.