Jump to content

Transparent issue/question


Rick
 Share

Recommended Posts

I have a mesh that I paint a semi-transparent texture on. Depending on the camera angle sometimes I can see another semi-transparent image under it's "feet" and sometimes I can't. I was wondering why this would be? Also, is there a way to make it consistant? Make it so it doesn't matter where the camera is.

 

These 2 pictures show what I mean. This is what I get based on 2 different camera angles.

 

assassin.png

 

 

assassin1.png

I would prefer the above. Even though it's more unrealistic I feel seeing through to the yellow ground effect drowns out the mesh to much.

Link to comment
Share on other sites

You could also use Masterxilo's 3D OpenGL mode, and use a forward rendered transparent mesh.

The benefit is that they are really transparent, and even shadows and post-processing effects can be seen through them (doesn't work with LE's normal transparent meshes, since they are deferred rendered).

The bad thing is that they don't cast shadows, but often you don't even need shadows from transparent meshes.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

So is what you are saying is that I can't get it to look consistent (I honestly don't care which look) with using just LE commands like this? I'm not concerned about shadows. I set castshadows=0 in the mat file and that fixed the shadow issue I was seeing. Now it's just this inconsistent look from different camera angles.

Link to comment
Share on other sites

Just put it in the transparency world.

Then it should always look like:

assassin.png

 

You could also use Masterxilo's 3D OpenGL mode, and use a forward rendered transparent mesh.

The benefit is that they are really transparent, and even shadows and post-processing effects can be seen through them (doesn't work with LE's normal transparent meshes, since they are deferred rendered).

The bad thing is that they don't cast shadows, but often you don't even need shadows from transparent meshes.

Rendering a transparent mesh as usually but in a transparency world rendered over the final image will result in the same without having to code the mesh rendering from scratch.

I'd only use ogl commands directly for helper lines or small, very dynamic meshes that don't require lighting and things like that.

Link to comment
Share on other sites

Just put it in the transparency world.

 

This unit goes from non transparent to transparent any number of times. In fact all the units can be like this. I could probably create all my units in the transparency world and don't make them transparent until I need to, but since they would all be in the transparent world, doesn't that effect picking and/or physics? Would I have to change worlds when I'm expecting a unit to be picked vs say the terrain?

 

Also, I actually was wondering if I could get the other image. The one that doesn't really look correct because you can't see through the bottom part of the object, but that one looks better because the bottom part doesn't get overwhelmed by the yellow selection piece under it.

Link to comment
Share on other sites

Make one copy in the main world and one copy in the transparency world, and hide and show them. If you need a pickable mesh, apply the invisible material to a mesh in the main world.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...