Profile Picture

Transparent Image

Posted By Marcus McCallum 11 Years Ago
Author
Message
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi Marcus,

It is possible to have transparency along with textures, but in order to enable it you have to set the alpha value of the Material’s Duffuse color (SetTransparencyPercent is not doing the job in this case):

surface.FillStyle.MaterialStyle.Diffuse = Color.FromArgb(0X44FFFFFF);

Please let us know if this solves the problem.


Best Regards,
Nevron Support Team



Marcus McCallum
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 29, Visits: 61
Hi,

I have managed to sort part of my problem out. The meshsurfaceseries that I wanted to overlay the second meshsurfaceseries (which had the image) had the "drawflat" set to true. When this was set to false then the meshsurfaceseries was correctly drawn over the second meshsurfaceseries.

What I am still slightly confused about is the transparency on the image does not appear to be working as I state in my original query.

Thanks,

Marcus

Marcus McCallum
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)Junior Member (22 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 29, Visits: 61
Hi,

I am trying to overlay a meshsurfaceseries with another meshsurfaceseries. One of the meshsurfaceseries has an image overlaid on the top. I have used the settransparency to a number of different values and also modified the alpha channel when loading the image, but nothing works and all I see is the image, but without the other meshsurfaceseries overlaid on top of it (see attached figure).

I have looked at the example Mesh Surface - Fill Style and I have loaded the same image into that example. When you modify the transparency in the preview it does what you would expect, but when you then click OK, the image is no different.

Any ideas?

Thanks,

Marcus

PS. I tried to do a search for similar topics, but could not get this to work.

Attachments
Nevron Example.png (158 views, 225.00 KB)


Similar Topics


Reading This Topic