Forum Replies Created
Keep we up to date of your progress.
Are you talking about emissive textures? If it’s the case: I think that the pixels are brights but doesn’t emit light for the moment. Check the blog, I think there’s something talking about.
Thanks for the reply.
10 min after the previous post, I checked the mojo library: image have a texture property
Just loading “image.png” with no shader and set ” waterMaterial.ColorTexture=image.Texture” works nice.
Thanks for your answer
I found a way looking at “Monkey2-v1.1.06/modules/mojo3d/tests/water.monkey2”:
=> I replaced waterMaterial type by PbrMaterial.
=> I removed the normals textures loading and removed the velocity declaration.
=> Changed “waterMaterial.ColorTexture=Texture.ColorTexture( Color.SeaGreen )” by “waterMaterial.ColorTexture=Texture.Load( “image.png”,TextureFlags.WrapST|TextureFlags.FilterMipmap )”
=> Changed “waterMaterial.Roughness=0” by “waterMaterial.RoughnessFactor=0”
I then got a working code wich create a large box with a custom texture of “image.png”.
But applying a texture from an image stay dark in my mind: “how do we get the texture from a code created image? have we to use an image from a file or is there an other way?” I need it to do procedural textural ( e.g. for an animated tv screen )
Hoping my question is not ridiculous, I will think about that and if I really find nothing, then I will check the main forum.
I never used 3d in my codes and i am actually learning it with mojo3d.
But I got a lot of problem, and now, I don’t find the way to apply a texture to a model from a .png image.
Can you make a sample about textures?
Can you send a copy of your code? I have some problems with animations and i didn’t find any samples.