Material3D extension (textures, color and transparency)

Here’s a small extension to manipulate color and transparency of 3D objects:

I tried adding support for “metalness” and “roughness” (found in Three js material properties), but it didn’t work in GDevelop.

Download and demo:

6 Likes

​A new version (v1.1) has been released. It adds the following features:

  • loading textures from resource files
  • loading textures from URLs
  • texture wrapping modes - wrapS (horizontal) and wrapT (vertical)
  • texture repeating - X (horizontal) and Y (vertical)
  • texture offset in percentage - X (horizontal) and Y (vertical)

Download and demo on the same link (1st post)

3 Likes

this is awesome keep up the good work

1 Like

this will be really useful
now 3d can be added to my engine i was having problems with 3d textures

1 Like

Thank you! I wanted to use space ships from the asset store, and there is 11 of them in 5 different colors. So instead of adding 55 models to my game, I can now add 11 space ships and just change textures to change colors.

Next, I will try to add video textures.

1 Like

Hi, good job!
I’m trying to capture the view of a camera to make a dynamic texture. I’m going round in circles, do you have a solution? Thanks

woah, hey— mind if i expand upon this extension?

Depending on what you intend to do with it, it might be better to send me an updated version (with a short description of what was changed) as I do intend to continue developing it (when work and life let me do it), unless you want to make something completely different out of it

I ended up making a expanding upon the extension that i was working on prior to Material3D. I took a look into Material3D to see exactly what I was doing wrong, a showcase of the extension can be found here

Hasn’t been uploaded yet

Hi!

Oh! Impressively, truly!

Well done.

Xierra

1 Like

Very cool, thanks for your extension!
Would be great if it will be built-in one day (especially opacity and color) and doesn’t have to be found randomly in the forum.

Unfortunately it is always applied to all instances, even if a second instance has a different animation with a different object in it with its own material.

Maybe it is possible, in addition to the Tint(color addition), to completely replace the material with the Color? Then coloring would be possible without the original material must be completely white.
Very helpful for a mouseover effect or something.

Would an action be possible to remove a previously loaded texture and see the original again?

Maybe an opacity condition would be nice.
Maybe in the 0-255 format to fit the 2D one.

For example, the player wants to place a building model in the scene. It should initially be completely blue, when it overlaps an existing one it should become red and 0.5 transparent, and when it is built, it should have its original texture.
Currently it is only possible for all buildings in the scene to become dark brown and transparent if two overlap.
But ya I understand the limitations and think I will still need 3 animations or extra objects per model for this.

1 Like

A new version (v1.2) has just been released which solves this problem! It will now manipulate materials only of the object instance that you’ve selected previously.

Also, I’ve added support for video textures!

Online demo and download in the first post. Release notes here:

2 Likes