Creating a poly with tile image inside

magic

Active member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
Messages
165
Hi all,

For 2D game: Do you have any suggestions on how to fill the polygon with a tile image?

poly.jpg
 
Last edited:

magic

Active member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
Messages
165
I prefer Mojo, but its ok to go for Mojo2
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,167
In mojo a Polygone can not be texture.
In mojo2 you can. But I am uncertain if you can achieve the textural effect, repeating texture, you want.
 

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
919
I'm thinking maybe you could use multiplication blend or a shader to mask normal draw operations?
Holzkopf I know have tried this kind of things before using Mojo2 here in the forum.
 

Jimmy

Active member
3rd Party Module Dev
Tutorial Author
Joined
Jan 2, 2020
Messages
919
Otherwise you could check this code out don't know who made it originally but it might be interesting to you.
 

Attachments

  • example.zip
    12.9 KB · Views: 14

magic

Active member
3rd Party Module Dev
3rd Party Tool Dev
Joined
Mar 5, 2018
Messages
165
In mojo2 you can. But I am uncertain if you can achieve the textural effect, repeating texture, you want.
Tq Mike. I could probably repeat the texture by code.

Otherwise you could check this code out don't know who made it originally but it might be interesting to you.
This definitely helps me to figure it out.

I'm thinking maybe you could use multiplication blend or a shader to mask normal draw operations?
Holzkopf I know have tried this kind of things before using Mojo2 here in the forum.
Oh Yes, I could try Holzkopf module Thank you for pointing me in the right direction
 
Top Bottom